How Do I Enable Iptables in Linux?
Contents

How do I enable iptables?

Once configuration is updated type the following service command at a shell prompt:

  1. To start firewall from a shell enter: # chkconfig iptables on. # service iptables start.
  2. To stop firewall, enter: # service iptables stop.
  3. To restart firewall, enter: # service iptables restart.

15 янв. 2014 г.

How do you check if iptables is enabled in Linux?

You can, however, easily check the status of iptables with the command systemctl status iptables. service or maybe just the service iptables status command — depending on your Linux distribution.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest