I would like to route my Wireguard VPN traffic trough the SSID UniFi-VPN and route the traffic from SSID UniFi-WIFI directly over the WAN interface without the Wireguard VPN but I don't get it to work.
Modem (China Telecom 192.168.1.1) > Edgerouter x (OpenWRT 192.168.2.1) > Unifi nanoHD (On port 2 from my Edgerouter X)
SSID UniFi-WIFI (LAN 192.168.2.0/24)
SSID UniFi-VPN (VLAN20 192.168.3.0/24)
if I connect to the different SSID's then my ip adres changes to an ip from that subnet. My VPN is working now on both subnets.
Now all my internet traffic from both SSID's are going trough the VPN. How do I get the traffic from SSID UniFi-WIFI to bypass the vpn? I tried it with the option in wireguard with Route Allowed IP's and then specify the subnet 192.168.3.0/24 or the ip adres from my laptop 192.168.3.207 but then all internet traffic seems to stop working. Also I tried Luci Policy Routing and specify to route the traffic from the subnet 192.168.2.0/24 trough the WAN interface and the traffic from 192.168.3.0/24 trough the Wireguard interface.But then also the internet traffic seems to stop working. What do I do wrong? Thanks for any help!