Disabling iptables firewall on Linux

Iptables is a built-in firewall in most Linux distributions. You might need to disable your iptables firewall on Linux for testing purposes.

About this task

A Linux firewall is a software-based firewall that provides protection between your server (workstation) and damaging content on the Internet or network. When the firewall is enabled, it does not accept HTTP requests from remote sites.

To disable or turn off a Linux iptables IPv4 or IPv6 firewall, type the following commands (you must log in as the root user):

Procedure

  1. # /etc/rc.d/init.d/iptables stop or # /etc/rc.d/init.d/ip6tables stop
  2. # chkconfig iptables off or # chkconfig ip6tables off