Menu
Menu
October 16, 2013

CentOS - Disable Firewall

Categories: 
Published: 16 October 2013 

For whatever reason, sometimes you need to disable the firewall on your CentOS server.
Below is the code necessary that you can run in SSH to disable the firewall.

For IPv4

service iptables save
service iptables stop
chkconfig iptables off

For IPv6

service ip6tables save
service ip6tables stop
chkconfig ip6tables off

Don't Forget if your server is public facing (Ie, has a direct IP, is in the DMZ of a firewall or has lots of port ranges forwarded to it).
It is strongly recommended not to do the above as your opening your server to the entire world.

Ben Maden

Read more posts by Ben
Shares