iptables do not start - Applying firewall rules: iptables-restore: line * failed

postcd

Well-Known Member
Oct 22, 2010
721
21
68
iptables is started after reboot of VPS. Then i stop it and do:

Code:
# service iptables start
Applying firewall rules: iptables-restore: line 44 failed

Code:
head -n 44 /etc/sysconfig/iptables
...
-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2096 -j ACCEPT
-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT
-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2083 -j ACCEPT
-A cP-Firewall-1-INPUT -p udp -m state --state NEW -m udp --dport 53 -j ACCEPT
COMMIT
Any idea on how to fix please?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
Hello :)

The message you provided indicates an issue with your custom firewall rules. Have you considered using a third-party firewall management utility such as CSF to allow for easier management of your rules?

Thank you.