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.

Security

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

  1. optize

    optize Well-Known Member

    Joined:
    Apr 27, 2005
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    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:
    1
    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!
     
  3. absolutewebhost

    Joined:
    Jul 20, 2004
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    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...
     
Loading...

Share This Page