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!

Close port 2096

Discussion in 'E-mail Discussion' started by bwor, Jun 17, 2010.

  1. bwor

    bwor Member

    Joined:
    Jun 15, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    51
    How I can disallow vistors to access webmail by closing port 2096 ?
     
  2. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    DataCenter Provider
    If you want to block access to webmail for all users you can just add a firewall rule (note webmail uses two ports: 2095 and 2096 [SSL]):

    Code:
    iptables -A INPUT -p tcp -m tcp --dport 2095:2096 -j DROP
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. bwor

    bwor Member

    Joined:
    Jun 15, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    51
    This is shell command or what ?
     
  4. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    DataCenter Provider
    Correct, that is a shell command.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. bwor

    bwor Member

    Joined:
    Jun 15, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    51
    If I have a shared account only with not allowed shell command, I can use programming for example by php or perl (cgi) or there some option in cpanel to block this port ?
     
  6. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    DataCenter Provider
    If you have only a shared account you will not have access to do something like blocking a port as that is considered a admin-level task. YOu'll have to ask your server administrator to do this for you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. bwor

    bwor Member

    Joined:
    Jun 15, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    51
  8. cPanelDavidN

    cPanelDavidN Integration Developer

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The GNU iptables command is used to block and route traffic on specified ports; it operates against the network packets that traverses the network interface on a server. This program has no concept of applications like WHM & cPanel, or server system environments like accounts.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If you want to block webmail for most users but allow for others and you do have root WHM access, you might consider using WHM > Host Access Control instead. You can allow set IPs to access webmaild (the webmail deamon for cPanel) and deny all other IPs.
     
    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