The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I can't restart iptables without a reboot

Discussion in 'General Discussion' started by BlueRabbit, Mar 20, 2012.

  1. BlueRabbit

    BlueRabbit Member

    Joined:
    Mar 19, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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
    
    
     
    #1 BlueRabbit, Mar 20, 2012
    Last edited: Mar 20, 2012
  2. cPanne

    cPanne Member
    Staff Member

    Joined:
    Oct 4, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Cypress, Texas, United States
    cPanel Access Level:
    Website Owner
    Hello,

    What happens if you
    first?

    -Anne
     
  3. BlueRabbit

    BlueRabbit Member

    Joined:
    Mar 19, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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
    
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    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!
     
  5. BlueRabbit

    BlueRabbit Member

    Joined:
    Mar 19, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Code:
    # whereis csf
    csf:
    # whereis apf
    apf: /etc/apf /usr/local/sbin/apf
    
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Please uninstall or entirely disable APF as suggested to see the results.
     
  7. BlueRabbit

    BlueRabbit Member

    Joined:
    Mar 19, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    it's work, thank you very much
     
Loading...

Share This Page