Random Linux

Linux, video games and web hosting

To disable iptables on a Red Hat server, you can use this command to save the current rules first:

[email protected] [/]# /etc/init.d/iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]

Then, this command turns off the firewall

[email protected] [/]# /etc/init.d/iptables stop
iptables: Setting chains to policy ACCEPT: nat mangle filte[ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]

You can also use this command to disable it when the server boots.

[email protected] [/]# chkconfig iptables off

 

January 27th, 2015

Posted In: How To

Tags: , , , ,

Leave a Comment