Results 1 to 9 of 9

Thread: Close port 2096

  1. #1
    Member
    Join Date
    Jun 2008
    Posts
    19

    Default Close port 2096

    How I can disallow vistors to access webmail by closing port 2096 ?

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2004
    Posts
    313
    cPanel/WHM Access Level

    DataCenter Provider

    Default

    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
    NDCHost (ProVPS): Xen VPS / Dedicated / Co-Location
    Contact us for your cPanel Licensing needs! We price match, provide better support, and take care of our customers!

  3. #3
    Member
    Join Date
    Jun 2008
    Posts
    19

    Default

    Quote Originally Posted by garrettp View Post
    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
    This is shell command or what ?

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2004
    Posts
    313
    cPanel/WHM Access Level

    DataCenter Provider

    Default

    Correct, that is a shell command.
    NDCHost (ProVPS): Xen VPS / Dedicated / Co-Location
    Contact us for your cPanel Licensing needs! We price match, provide better support, and take care of our customers!

  5. #5
    Member
    Join Date
    Jun 2008
    Posts
    19

    Default

    Quote Originally Posted by garrettp View Post
    Correct, that is a shell command.
    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. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2004
    Posts
    313
    cPanel/WHM Access Level

    DataCenter Provider

    Default

    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.
    NDCHost (ProVPS): Xen VPS / Dedicated / Co-Location
    Contact us for your cPanel Licensing needs! We price match, provide better support, and take care of our customers!

  7. #7
    Member
    Join Date
    Jun 2008
    Posts
    19

    Default Closing port 2096

    As my prevoius question to close port 2096
    Close port 2096

    This is will block port 2096 in whole server or only one shared account while other shared accounts will be not blocked ?

  8. #8
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    570

    Default Re: Close port 2096

    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.
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Requests

  9. #9
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Close port 2096

    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.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads

  1. PCI Compliance fail - Port 2096
    By handsonhosting in forum Security
    Replies: 3
    Last Post: 08-19-2010, 05:20 PM
  2. Can not access port :2082, 2095, 2096 need help !
    By zuchy in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 10-27-2005, 01:49 AM
  3. Port 2096
    By jackal in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 01-21-2004, 01:51 PM
  4. Close Port
    By xp2u in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 05-14-2003, 01:54 AM
  5. Client Authentication on port 2096 What for?
    By ozzi4648 in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 12-28-2002, 07:14 PM