Warning: session_start(): open(/var/cpanel/php/sessions/alt-php74/sess_67b560ed8d729b8f8fff7125e4cbebe2, O_RDWR) failed: No such file or directory (2) in /home/xsofthost/public_html/help/wp-content/plugins/accelerated-mobile-pages/includes/redirect.php on line 358

Warning: session_start(): Failed to read session data: files (path: /var/cpanel/php/sessions/alt-php74) in /home/xsofthost/public_html/help/wp-content/plugins/accelerated-mobile-pages/includes/redirect.php on line 358
How to Restart Iptables Firewall On Linux Server - XsoftHost

How to Restart Iptables Firewall On Linux Server

Common reasons require you to restart Iptables firewall Service

Iptables is firewall service that comes and distributed within Linux OS. In most cases you need to restart Iptables firewall service if you made changes to iptables firewall config file .

How To Restart Iptables firewall Service under Linux / UNIX

The following examples using the restart command in case you want to stop the service you can use stop command and use start command to start stopped service.

You have run these command under root/administrator privileges .

Restart Iptables firewall on  Fedora / RHEL / Red Hat/CentOS Linux version 5.x/6.x

To restart an IPv4 iptables based firewall:

service iptables restart

To restart an IPv6 iptables based firewall:

service ip6tables restart

Restart Iptables firewall on  Fedora / RHEL / Red Hat /CentOS Linux version 7.x

To restart an IPv4 iptables based firewall:

systemctl restart  iptables.service

To restart an IPv6 iptables based firewall:

systemctl restart  ip6tables.service

Start/Stop Iptables Firewall Service On Ubuntu Linux

To Stop Iptables Firewall Service On Ubuntu Linux

sudo service ufw stop

To Start Iptables Firewall Service On Ubuntu Linux

sudo service ufw start
Share on facebook
Share on twitter
Share on linkedin
Share on telegram
Share on whatsapp

Related Posts