- Plesk for Linux
iptables rules are reset after a system reboot on a Plesk for CentOS 7 server.
- firewalld system service is removed or disabled.
The iptables service is not adjusted to restore rules after system reboot.
Re-apply firewall rules in Plesk Firewall (if it is installed):
- Go to Tools & Settings > Firewall > Modify Plesk Firewall rules and click Apply.
Set up iptables to restore rules after a system reboot:
Connect to the Plesk server via SSH.
Install the iptables-services package:
# yum install iptables-services
Disable firewalld, enable iptables system service and start it:
# systemctl stop firewalld
# systemctl disable firewalld
# systemctl enable iptables
# systemctl start iptables
Save the iptables rules:
# service iptables save