In Slackware you can issue
Code:
mingdao@james:~/build/linux-2.6.12.2$ whereis iptables
iptables: /usr/sbin/iptables /usr/lib/iptables /usr/man/man8/iptables.8.gz /usr/share/man/man8/iptables.8.gz
and find out where the app is located.
If you used that
Easy Firewall Generator for IPTables, then you should
change this portion:
Code:
# IPTables Location - adjust if needed
IPT="/sbin/iptables"
IPTS="/sbin/iptables-save"
IPTR="/sbin/iptables-restore"
It says _adjust if needed_ because it was written for RedHat, not
Slackware. You'll need to change it to look like this:
Code:
# IPTables Location - adjust if needed
IPT="/usr/sbin/iptables"
IPTS="/usr/sbin/iptables-save"
IPTR="/usr/sbin/iptables-restore"
If you're using a script like that, you put it in /etc/rc.d/ and you make
it executable by issuing as root "chmod +x rc.firewall" and it will start
at boot.
There is much more than just that little script for a good firewall using
iptables and netfilter. I'd say start by reading
Iptables Tutorial 1.1.19