Disable a Firewall In Red Hat Enterprise Linux

Q. How do I disable a firewall in RedHat Enterprise Linux / RHEL?

Advertisement

A. A Linux firewall is an integrated collection of security measures designed to prevent unauthorized electronic access to a networked computer system. Red hat Linux kernel has firewall called iptables. It can be disabled by typing following command (login as root user):
# service iptables stop
To turn it on type the following command:
# service iptables start
To disable firewall permanently, enter:
# chkconfig iptables off
# service iptables stop

🥺 Was this helpful? Please add a comment to show your appreciation or feedback.

nixCrat Tux Pixel Penguin
Hi! 🤠
I'm Vivek Gite, and I write about Linux, macOS, Unix, IT, programming, infosec, and open source. Subscribe to my RSS feed or email newsletter for updates.

2 comments… add one
  • Kigwaman Jan 26, 2012 @ 9:40

    Thanks for this stuff.

  • ravi Jun 1, 2012 @ 8:32

    Hi
    iptables stop command :- chkconfig iptables off

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site admin.