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!

IPTABLES Issue, not saving in CentOS 6.2

Discussion in 'Security' started by GeekHostIN, May 12, 2012.

  1. GeekHostIN

    GeekHostIN Registered
    PartnerNOC

    Joined:
    May 12, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Hi,

    I'm using CentOS 6.2 86_64 with CloudLinux and it seems IPTABLES is not saving.

    I am trying to make it that you can only access whm on our main IP of the server. But trying other IPs I can still connect to WHM.

    I have tried

    iptables -A INPUT -s ! xxx.xxx.xxx.xxx -p tcp --dport 2082:2087 -j DROP

    which warns Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`) and after a save I can still access WHM on other IPs

    iptables -A INPUT -s xxx.xxx.xxx.xxx -p tcp --dport 2082:2087 -j DROP

    which no errors but after save I can still reach WHM on that IP.
     
  2. Dr Ahmed

    Dr Ahmed Member

    Joined:
    Mar 22, 2011
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    can u please, try

    iptables -A INPUT ! -s xxx.xxx.xxx.xxx -p tcp --dport 2082:2087 -j DROP

    ?
     
    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