- Plesk for Linux
iptables rules getting reset after server reboot on Plesk server with CentOS 7.
"firewalld" system service is removed or disabled.
Firewall rule that allows connection to mail server is present in Plesk.
Firewall rule that allows connection to mail server is missing in iptables after reboot:
# iptables -L -n -v | grep mail.example.com
"iptbables" service is not adjusted to restore rules after system reboot.
1. Re-apply firewall rules in Plesk:
1.1. Login to Plesk.
1.2. Navigate to Plesk > Tools & Settings > Firewall > Modify Plesk Firewall rules and press Apply.
2. Set up iptables to restore its rules after reboot:
2.1. Login to the server over SSH.
2.2. Install "iptables-services" package:
# yum install iptables-services
2.3. Enable iptables as system service and start it:
# systemctl enable iptables
# systemctl start iptables
2.4. Save the iptables rules:
# service iptables save