Quote:
Originally Posted by Fungusamongus27 Thanks for the help again. I used the firewall script the person told me to copy. However, how do I know if it's activated(the command he gave didn't work). |
What command are you talking about?
If you followed
ALL of the directions, i.e. there is more than one script to install, then the command (given as root):
# /etc/init.d/firewall start
should work.
Note: /etc should have two scripts: firewall.bash and flush_iptables.bash
and /etc/init.d should have one script: firewall
To test if your firewall rules are working, issue the following command:
$ sudo iptables -L
If you get output such as the following, then it is working:
Chain INPUT (policy ACCEPT)
target prot opt source destination
FIREWALL all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
DROP all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain FIREWALL (1 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
TRUSTED all -- anywhere anywhere
DROP all -- anywhere anywhere
Chain TRUSTED (1 references)
target prot opt source destination
-- Tom