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.

Preventing WHM From altering IPTables

Discussion in 'Security' started by davez0rz, May 27, 2016.

Tags:
  1. davez0rz

    davez0rz Registered

    Joined:
    May 27, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    San Antonio, TX
    cPanel Access Level:
    Root Administrator
    I am implementing my own firewall rules.

    However, cPanel/WHM keeps adding the default "acctboth" chains and rules. In addition to this, rebooting the server clears *ALL* rules, in which cPanel/WHM re-adds theirs.

    It seems my rules have been completely wiped from the configuration for whatever reason.

    How do I stop cPanel/WHM from:
    * Adding it's own rules
    * Flushing iptables on boot and re-adding it's own rules.

    Yes, I saved my rules (# iptables-save;service iptables save).
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know the version of the OS installed on this system? You can check with a command such as:

    Code:
    cat /etc/redhat-release
    There are some changes in CentOS/RHEL 7.x regarding the system firewall management documented at:

    CentOS 7 Firewall Management

    Thank you.
     
Loading...

Share This Page