Ubuntu: Stat / Stop / Restart Iptables Firewall Service

In Ubuntu, you can manage the iptables firewall service using the following commands:

  1. To check the status of the iptables firewall service:
sudo service iptables status
  1. To stop the iptables firewall service:
sudo service iptables stop
  1. To start the iptables firewall service:
sudo service iptables start
  1. To restart the iptables firewall service:
sudo service iptables restart

Note: In Ubuntu 16.04 and later, the iptables service is replaced by the ufw firewall, so you need to use the ufw commands to manage the firewall.

(https://radiomusical.com/)

Leave a Comment