Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Aug 2010
    Posts
    3

    Default how can i change port of WHM from 2086 to another port

    Hello


    how can i change port of WHM from 2086 to another port


    thanks for helping


    best regardis

  2. #2
    Registered User
    Join Date
    Aug 2010
    Posts
    3

    Default

    ?????

    i need that information

  3. #3
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by Linux.RedHat View Post
    Hello


    how can i change port of WHM from 2086 to another port


    thanks for helping


    best regardis
    Quote Originally Posted by Linux.RedHat View Post
    ?????

    i need that information
    Is there a specific reason you are needing to change only the non-SSL port for WHM? Are you needing to change any other ports used by cPanel and WHM, including those for access to Webmail or cPanel Web Disk (WebDAV)?

    Out of curiosity, are you only needing to prevent or block access to WHM via its non-SSL port, perhaps to require use of SSL ports?

    It is not currently possible to modify the port numbers used to access WHM; however, if you would like an enhancement making that possible I would consider posting a detailed and constructive feature request in the following forums area where the idea can gain more attention: Feature Requests for cPanel and WHM - cPanel Forums

  4. #4
    Member disappointed's Avatar
    Join Date
    May 2007
    Location
    Houston
    Posts
    12

    Default

    if you just want the port closed and you do not want attacked then you can do this...

    You have to loop it back for cpanel first before closing it to the world or you will have errors and you will get emails about it

    iptables -A INPUT -s xxx.xxx.xxx.xxx -p tcp -m tcp --dport 2087 -j ACCEPT
    iptables -A INPUT -s xxx.xxx.xxx.xxx -p udp -m udp --dport 2087 -j ACCEPT
    iptables -A INPUT -s xxx.xxx.xxx.xxx -p tcp -m tcp --dport 2086 -j ACCEPT
    iptables -A INPUT -s xxx.xxx.xxx.xxx -p udp -m udp --dport 2086 -j ACCEPT

    Place your ip in between this rule so you can get in
    iptables -A INPUT -s 12.96.0.0 -j ACCEPT <-- replace with your ip our you will not be able to use the service
    iptables -A INPUT -s 12.96.0.0 -j ACCEPT <-- Cpanel Corp
    iptables -A INPUT -s 12.96.0.0 -j ACCEPT <-- Your Data Center Tech Support

    iptables -A INPUT -p tcp --dport 2086:2087 -j DROP
    iptables -A INPUT -p udp --dport 2086:2087 -j DROP

    This will block the service to the outside and drop all incoming connections except to cpanel


    xxx.xxx.xxx.xxx = localhost

    so this has to be set to the local host ip what ever your using in your box.

    hey dont forget to save

    /etc/init.d/iptables save

    This would only let you use the service, you might want to put cpanels ips in there as well and your data centers ips too.
    Last edited by disappointed; 08-19-2010 at 06:31 AM.

Similar Threads & Tags
Similar threads

  1. Replies: 6
    Last Post: 07-12-2011, 01:31 AM
  2. Change default cpanel and whm port from 2086 and 2082 to custom port
    By alok86 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-05-2011, 03:01 PM
  3. how to change port 2086 or 2087 (whm)
    By evilc0d3r in forum New User Questions
    Replies: 2
    Last Post: 03-03-2009, 10:00 AM
  4. 2086 port and whm URL
    By ephlox in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-08-2006, 05:02 AM
  5. Port 2086 site name
    By MichaelShanks in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 07-21-2003, 06:36 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube