Skip to content
TrySitePrice

Restart Iptables Firewall On A CentOS Linux Server

Best/Tutorial

You can restart the Iptables firewall on a CentOS Linux server by executing the following steps:

  1. Stop the Iptables firewall service:

    $ sudo service iptables stop

  2. Flush all current Iptables rules:

    $ sudo iptables -F

  3. Start the Iptables firewall service:

    $ sudo service iptables start

rnAlternatively, you can restart the Iptables firewall service by executing the following command:

$ sudo service iptables restart

Note: If you made any changes to the Iptables firewall configuration, make sure to save those changes before restarting the firewall service. You can use the following command to save the current Iptables firewall configuration:

$ sudo service iptables save