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!

How to forward port 2082 > 2083

Discussion in 'General Discussion' started by gayan, Jun 21, 2009.

  1. gayan

    gayan Member

    Joined:
    Jun 21, 2009
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    51
    Hello guys,

    My first post here at cpanel, and this is cos i'm now a proud owner cpanel vps :)

    Anyways, my question is how do i forward the unsecure 2082/2086 ports to the secure 2083/2087 ports.

    I have already done the server tweaking so that /cpanel and /whm etc gets forwarded to the secure ports.

    BTW i have noted that when i use http://domain.tld:2083 cpanel would automatically redirect to https, so just a port redirect/forward would be enough.

    Can anyone help?

    Thanks
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If someone types :2082 directly, there is no setting to redirect them to :2083. You would need to configure your firewall to do this.
     
  3. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    400
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
    This can be done with the firewall but I don't suggest it. It's best to use the proper redirection setup in WHM Tweak Settings to avoid warnings when accessing it
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I thought about that too, but the settings in Tweak Settings do not impact when a user types :2082 directly. They only affect when a user types example.com/cpanel etc.
     
  5. TapanB

    TapanB Active Member

    Joined:
    Nov 29, 2004
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    156
    Hi,

    I would like an answer for this too.

    Thanks.
     
  6. feldon27

    feldon27 Well-Known Member

    Joined:
    Mar 12, 2003
    Messages:
    122
    Likes Received:
    14
    Trophy Points:
    168
    Location:
    Houston, TX
    Seems like an addition to the Apache directives would fix this. I just have no idea where to put these changes.

    Code:
    RewriteCond %{SERVER_PORT} ^2082$
    RewriteRule .* https://%{SERVER_NAME}\:2083%{REQUEST_URI} [R,L]
     
  7. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    720
    Likes Received:
    123
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Are you referring to these options in WHM > Tweak Settings

    Always redirect to SSL [?]
    Always redirect users to the SSL/TLS ports and certificate hostname when visiting /cpanel, /webmail, etc.

    Require SSL [?]
    Require SSL for all remote logins to cPanel, WHM, and Webmail. Recommended.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You can enable the following option under the "Security" tab in "WHM >> Tweak Settings":

    "Require SSL"

    This requires SSL for all remote logins to cPanel, WHM, Webmail and DAV.

    Thank you.
     
    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