so now that you've gotten your system installed, the first thing i like to do is setup a firewall. slackware does not come with a firewall startup script by default, but it comes with all the prerequisites (iptables, something else, and a command in rc.inet2 that starts rc.firewall).

don't worry too much if you don't understand this script… it basically just loads your saved iptables (firewall) settings when it is started, and clears all the rules when it is stopped.

so here is the startup script and a set of basic rules (download here).

now we want to extract the files and put them where they belong (rc.firewall goes in /etc/rc.d/ and iptables goes in /etc/):

bash-# tar -xvjf firewall.tar.bz2
bash-# cd firewall/
bash-# cp rc.firewall /etc/rc.d/
bash-# cp iptables /etc/
bash-# vi INSTALL (if you have any problems)

to start the firewall, type:

bash-# /etc/rc.d/rc.firewall start
Flushing all current rules and user defined chains: Done
Clearing all current rules and user defined chains: Done
Applying iptables firewall rules: Done


/etc/iptables is the file that contains your firewall rules.

linux/slackware/firewall.txt · Last modified: 2006/11/29 02:22 (external edit)
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki