Search My Techie Guy

Monday, July 7, 2014

Linux - How to check, enable & disable the ip firewall (iptables)?

Am running these commands on "Red Hat Enterprise Linux Server release 6.4":

To check current status of the firewall:
# service iptables status

To Start the firewall
# service iptables start

To Stop the firewall
# service iptables stop

To Restart the firewall
# service iptables restart

To check the iptables configuration
# cat /etc/sysconfig/iptables

To edit the iptables configuration
# vi /etc/sysconfig/iptables


No comments: