packet filter firewall

This is a discussion on packet filter firewall within the Linux Programming forums, part of the Platform Specific Boards category; Hey guys, I would like to make a simple packet filter firewall wich can block specific outbound packets. I just ...

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    1

    packet filter firewall

    Hey guys,
    I would like to make a simple packet filter firewall wich can block specific outbound packets.

    I just don't know where to start. I was searching for libraries but all network libraries I found are working on the application layer.

    Does anyone of you know a guide on how to start with a project like this?

    cheers

    E: Ok I found out that I will have to use raw sockets, and I've read a quit good guide about how to use them to send your own protocoll headers, but the guide only said it's possible to use them to change outgoing packets, but not how to do that

    So if someone has an idea or knows a page with good information on that topic, I would appriciate it
    Last edited by dinov; 03-31-2011 at 09:50 AM.

  2. #2
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,689
    Quote Originally Posted by dinov View Post
    Hey guys,
    I would like to make a simple packet filter firewall wich can block specific outbound packets.

    I just don't know where to start. I was searching for libraries but all network libraries I found are working on the application layer.

    Does anyone of you know a guide on how to start with a project like this?

    cheers

    E: Ok I found out that I will have to use raw sockets, and I've read a quit good guide about how to use them to send your own protocoll headers, but the guide only said it's possible to use them to change outgoing packets, but not how to do that

    So if someone has an idea or knows a page with good information on that topic, I would appriciate it
    My first stop would definitely be pf or iptables' source code. You should check it out.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Packet Container Class
    By ChaoticXSinZ in forum C++ Programming
    Replies: 2
    Last Post: 11-01-2010, 01:07 AM
  2. Global Variables
    By Taka in forum C Programming
    Replies: 34
    Last Post: 11-02-2007, 04:25 AM
  3. Packet Filter Using Unix Sockets
    By doraiashok in forum C Programming
    Replies: 3
    Last Post: 12-12-2003, 02:56 PM
  4. Packet Filter / Replacer ?
    By DeepBlackMagic in forum Tech Board
    Replies: 12
    Last Post: 09-17-2003, 06:02 PM
  5. A net packet filter with VC++
    By darcome in forum Windows Programming
    Replies: 0
    Last Post: 11-02-2002, 08:00 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21