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.

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:
    1
    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:
    1
    cPanel Access Level:
    Root Administrator
    can u please, try

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

    ?
     
Loading...

Share This Page