LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I am in an urgent need of a source code for linux firewall in C. (https://www.linuxquestions.org/questions/linux-newbie-8/i-am-in-an-urgent-need-of-a-source-code-for-linux-firewall-in-c-724652/)

jerinbaby 05-08-2009 07:04 AM

I am in an urgent need of a source code for linux firewall in C.
 
Hi.. Everyone
I am in an urgent need of a source code for linux firewall in C. i dont need any good user interface. i am just intrested in a source code in C language which will block or accept the incomming and outgoing packets according to the user input which he will give by looking at the contents of the packet which mainly includes;

1.Block Pining and UuBlock pining
2.Which r the ports are open
3.Block the ports

These are the require ments for the Linux firewall...

May i get the source code for the this type firewall it is urgent...

URGENT

i92guboj 05-10-2009 12:41 AM

No, it's not urgent.

However, for good or bad the only linux firewall is iptables. The rest of tools are just frontends to iptables. So just go to the home page and feel free to pick the sources yourself:

http://www.iptables.org/

Note that these are just the userland tools. The other half is on your kernel. You need netfilter enabled in your kernel to be able to use them (most distros do that by default, don't worry).


All times are GMT -5. The time now is 02:21 AM.