• product_router, os_drayos4, task_configuration, tech_nat, tech_port_forwarding, tech_https, tech_management_access

Redirect HTTPS Requests to an Internal Server (DrayOS4)

The Vigor Router offers NAT settings, including Port Redirection and Open Ports, which allow for the redirection of connection requests from the WAN to an internal server on the LAN. However, for HTTPS requests that use TCP port 443, a NAT setup alone will not suffice. The router's HTTPS and SSL VPN service port must also be changed, as these functions also listen to TCP port 443 by default and have a higher priority than the NAT settings. This article provides a step-by-step guide on redirecting HTTPS requests to an internal server.

1. Change the port for HTTPS management: Go to System Maintenance >> Management, change HTTP Port from 443 to another number, then click OK to apply.

a screenshot of DrayOS System Maintenance Management settings

2. Change the port for SSL VPN function: Go to SSL VPN >> General Setup, change Port from 443 to another number, then click OK to apply. (For the models that do not support SSL VPN, you may skip this step.)

a screenshot of DrayOS SSL VPN General Setup

3. Now, you can use TCP port for Port Redirection. Go to NAT >> Port Redirection, click on an available index.  

a screenshot of DrayOS Port Redirection profile list

4. Enable the profile, and configure the profile as follows, then click OK to apply:

  1. Mode: Single
  2. Protocol: TCP
  3. Public Port: 443
  4. Private IP: The IP address of the internal server
  5. Private Port: 443
  6. a screenshot of DrayOS Port Redirection settings

    Now, when there are HTTPS requests sent to the router's WAN interface, it will be redirected to the internal server.