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!

Security

Discussion in 'Security' started by optize, Apr 27, 2005.

  1. optize

    optize Well-Known Member

    Joined:
    Apr 27, 2005
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    166
    Is there a way to only allow certain IPs to access certain ports (like the admin side of CPANEL)?
     
  2. absolutewebhost

    Joined:
    Jul 20, 2004
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Auckland, New Zealand
    Hi Optize,

    You can use IPtables via linux (ssh or direct terminal access if you happen to have it).
    Add this line into your iptables file:

    ---------------------------
    Cut here

    -A INPUT -p tcp -m tcp --syn -s "ip here" --dport "port here" -j ACCEPT

    end cut
    ---------------------------


    Have phun!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. absolutewebhost

    Joined:
    Jul 20, 2004
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Auckland, New Zealand
    Also, forgot to mention your ports: 2087 to restrict access to WHM, or 2082 to restrict access to CPanel.
    Just as a note, if you are running a shared server and you restrict CPanel access your clients are going to have problems accessing their cpanels...
     
    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