Fully disabling firewall

Support for security such as Firewalls and securing linux
Post Reply
lhouk
Posts: 15
Joined: 2014/03/20 14:46:52

Fully disabling firewall

Post by lhouk » 2014/03/20 14:59:58

I'm trying to disable the system firewall in a shell script. I'm using the commands

Code: Select all

service iptables save
service iptables stop
chkconfig iptables off
service ip6tables save
service ip6tables stop
chkconfig ip6tables off
but when I then run

Code: Select all

system-config-firewall
it shows the firewall as still being active. Is there something else that system-config-firewall does when it disables the firewall, something I should add to my script? Thanks in advance to all who respond.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Fully disabling firewall

Post by avij » 2014/03/20 15:22:48

Use "iptables -L -n -v" (and/or ip6tables) to show the status of your firewall. If the firewall is disabled, there are no firewall rules shown and the default policy for each of INPUT, FORWARD and OUTPUT is ACCEPT.

Post Reply