Shut down your firewall

From Linuxintro
(Redirected from Stop yOur firewAll)

How you shut down your firewall depends on your distribution, so, find out your distribution and proceed accordingly.

SUSE

shut down

rcSuSEfirewall2 stop

check

rcSuSEfirewall2 status

Generic

stop your firewall

To stop your firewall issue

iptables --flush

check

To check if your firewall is running, use the command iptables --list. Here's an output that means your firewall is turned off:

iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

If you look at it, you will find that for all incoming packets ("Chain INPUT" entry above), the policy is set to ACCEPT with no exceptions. The same is true for FORWARD and OUTPUT.