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.

Close port 2096

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

  1. bwor

    bwor Member

    Joined:
    Jun 15, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    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:
    16
    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
     
  3. bwor

    bwor Member

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

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    Correct, that is a shell command.
     
  5. bwor

    bwor Member

    Joined:
    Jun 15, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    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:
    16
    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.
     
  7. bwor

    bwor Member

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

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
  9. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    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.
     
Loading...

Share This Page