Skip to content

Change default Port

Reconnect to WebUI

  • Open Windows Terminal
  • Use the command: ssh root@<yourIP4> -L 443:<WAN_IP4>:9443

This will open up a tunnel. After that you should be able to reconnect via https://localhost.

Change default Port

We change the default port of OPNsense to a custom one, as we will then forward everything that comes into our WAN input directly to our proxy manager:

  • Go to System > Settings > Administration
  • Change the ‘TCP port’ to 9443
  • Change ‘Alternate Hostnames’ to opnsense.yourdomain.com
  • Hit ‘safe’

Change WAN-Settings

  • Go to Interfaces > WAN > Basic configuration
  • Enable ‘Lock’-Option
  • Hit ‘safe’

Create NAT-Rule

We now also forward the default port from my WAN-Address here.

  • Go to Firewall > NAT > Port Forward
  • Add Rule by clicking the plus-button
  • Enter the following values
  • Hit ‘safe’ and then ‘apply’

NATrule-Settings

Interface - WAN
Destination / Invert - false
Destination - WAN_ADDRESS
Destination port from - http (80)
Destination port to - http (80)
Redirect Target IP - Proxy-Alias (IP: 10.1.2.2)
Redirect Target Port - http (80)