create new tag
, view all tags
Resources about building a firewall in Linux -- can be done just using a script.

See AboutThesePages.



Civileme says (Re: [newbie] good linux firewall?; 23 Jul 2002):

Mandrake has a wonderful standalone firewall called SNF, but it requires a dedicated machine to stand between the internet interface and the local network running nothing but SNF. This sort of "border firewall" is also available as "smoothwal", a separate product, and esmith gateway, and probably as the linux Router Project in one of its many forms.

If you want a firewall on your own machine, open a terminal and


to get into privileged mode then


will cause InteractiveBastille to be spelled out

and <return> will run it and you can learn about firewalling as you choose your rules to set it up.

You may want to edit /etc/security/limits.conf to keep from being gigged about files too big. It has a rather low limit, which is activated by setting up the firewall.


Example Firewall Scripts



from Rob Gillen:

BTW, if you are running a simple in-house network where you aren't overly concerned about internal attacks, you could just allow all local TCP packets through your firewall. You probably will want to block all connections to X (port 6000) from the external world though. Something like this will allow everything on your LAN to pass through the firewall.

  INTIF=eth1                                # network interface connected to your LAN
  INTNET=               # network associated with your LAN
  /sbin/iptables -A INPUT -i $INTIF -s $INTNET -j ACCEPT
  /sbin/iptables -A INPUT -s $INTNET -j DROP        # dump anything else claiming to be on LAN

Testing Your Firewall

Some sites to help you test your firewall:

Recommended by Others


  • RandyKramer - 18 Apr 2002
  • <If you edit this page, add your name here, move this to the next line>

Page Ratings

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2002-07-30 - RandyKramer
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by PerlCopyright 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding WikiLearn? WebBottomBar">Send feedback
See TWiki's New Look