Joined: 08 Jun 2023 Posts: 104 Location: Essex. England.
Posted: Tue May 20, 2025 6:09 Post subject:
Quote:
Routed selected sources via the WAN
This does the opposite, everything entered in the PBR box will be routed via the WAN and everything
else will be routed via the VPN.
This can be useful if you have only a few IP addresses you want to route via the WAN and is also very
useful if you also run a concurrent WireGuard or OpenVPN server.
DDWRT Wireguard client setup guide by egc, last modified: 2-May-25 page 16
As the WireGuard/OpenVPN server must be using the WAN you can add sport 1194/51820 and now
this port will be using the WAN., e.g.:
sport 1194
You can make it universal (only for recent builds) with for OpenVPN server add to the PBR field:
sport $(nvram get openvpn_port)
For a WireGuard server (if it is the first tunnel you are using as Server) add to the PBR field:
sport $(nvram get oet1_port
sport $(nvram get oet1_port) I think.... sport oet 3 maybe?
Joined: 18 Mar 2014 Posts: 13662 Location: Netherlands
Posted: Tue May 20, 2025 6:26 Post subject:
It depends on the tunnel you are using
if the server is the third tunnel it is oet3
"nvram get oet3_port" will show you the port you are using for the tunnel e.g. 51820 or another value you are using for the listen port of the WireGuard server