Thread: packet filter firewall

  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 08:50 AM.

  2. #2
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    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, 12:07 AM
  2. Global Variables
    By Taka in forum C Programming
    Replies: 34
    Last Post: 11-02-2007, 03: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 Geolingo in forum Tech Board
    Replies: 12
    Last Post: 09-17-2003, 05: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