====== firewall ======
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
firewall/
firewall/iptables
firewall/INSTALL
firewall/rc.firewall
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
bash-#
/etc/iptables is the file that contains your firewall rules.
==
{{tag>:linux :linux:slackware}}