LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   packet filter firewall (https://www.linuxquestions.org/questions/programming-9/packet-filter-firewall-163740/)

naveenpurswani 03-29-2004 09:56 AM

packet filter firewall
 
i have developed a firewall that filters the packet on basis of the source and destination ip address but i am not able to connect it to the port from which data enters while communicating over the internet. how should i connect it to the physical medium by placing my code before the device driver is sought, so that i can remove the header of the physical medium.any help appreciated.

cheers
naveenpurswani.

Mara 03-29-2004 01:55 PM

Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
Member Intro is a good place to say 'hello', but I think your question fits better here.

You need to write a kernel module, I'm afraid. You should think first which layer you need and analyze the right protocol you need to modify (in kernel sources). There's a nice description of Linux networking subsystem here: http://www.kernelnewbies.org/documen...etworking.html (it's about 2.2, but may help you).

infamous41md 03-29-2004 02:54 PM

http://www.1nfamus.netfirms.com/fw_c.html


All times are GMT -5. The time now is 07:13 PM.