Firewall

From Organic Design wiki
Revision as of 05:30, 17 November 2009 by Nad (talk | contribs) (switched eth0 and 1)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Info.svg This code is in our Git repository here.

Note: If there is no information in this page about this code and it's a MediaWiki extension, there may be something at mediawiki.org.

This is a basic firewall which works for most Linux distro's. It's based on the Setting up a simple Debian gateway article from debian-administration.org and assumes eth0 to be the internal LAN interface and eth1 the external WAN interface. On Debian based machines, save this script as /etc/network/if-up.d/00-firewall and it will execute whenever the networking starts up.

See also