I can't restart iptables without a reboot

BlueRabbit

Member
Mar 19, 2012
5
0
51
cPanel Access Level
Root Administrator
Code:
#service iptables restart
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Setting chains to policy ACCEPT: filter mangle   [  OK  ]
iptables: Unloading modules:                               [  OK  ]
#service iptables status
iptables: Firewall is not running.

#iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
 
Last edited:

BlueRabbit

Member
Mar 19, 2012
5
0
51
cPanel Access Level
Root Administrator
Code:
# touch /etc/sysconfig/iptables
# service iptables start
# service iptables status
iptables: Firewall modules are not loaded.

[/etc/sysconfig]# ls ip*
ip6tables-config  ipmi  ipmievd  iptables  iptables-config
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello,

Are you running a firewall that is configuring settings in iptables such as CSF or APF?

Code:
whereis csf
whereis apf
If you are, please try disabling or uninstalling it and then trying to start iptables. Of note, iptables is a system level issue that isn't part of cPanel. If you cannot resolve that issue, you may well need to seek the advice of your datacenter, NOC or provider.

Thanks!