Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

cPanel resets iptables?

Discussion in 'Security' started by pixelstore, May 23, 2013.

  1. pixelstore

    pixelstore Member

    Joined:
    Jun 6, 2012
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    First I couldn't send email (via apache/php) to an external smtp-server.

    I added the rules in iptables and then it worked. Beautiful, I thought at first. Now it seems like it's reseting itself or something, because suddenly you can't send any emails.

    If I stop iptables, and then starts it again it works. So the rules is saved properly I guess, but along the way it seems like the rules is reseted somehow?

    I'm running CentOS 5.

    Any clue?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,809
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    cPanel does not utilize firewall rules for any options beyond:

    "WHM Home » Security Center » SMTP Restrictions"

    However, firewall rules related to this option would not populate automatically. Do you have a third-party firewall installed that could be modifying the rules?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. pixelstore

    pixelstore Member

    Joined:
    Jun 6, 2012
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Nope, no other firewalls. Strange though that it works again after I restart iptables?
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,809
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Is this a VPS? If so, you may want to consult with your VPS hosting provider to see if rules are modified from the VPS hardware node. You can also try saving the rules via:

    Code:
    # /etc/init.d/iptables save
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice