Configure OpenVPN on openwrt

I have two Wi-Fi networks:
SSID1 (192.168.8.1/24) and SSID2 (192.168.9.1/24).

I set up and started OpenVPN. I created an interface lan_9 that uses WAN, WAN6, and OpenVPN (interface with a static address, Device: tun0).

I need SSID1 to route traffic to my internet provider and SSID2 to route traffic to the VPN server.
I have configured the zones (Network -> Firewall).

Unfortunately, when I start the VPN.
SSID2 does not work internet.

You need policy based routing.

https://openwrt.org/docs/guide-user/network/routing/pbr

1 Like

Coule sir provide some example ?

As the link showed either use the PBR app which has a manual included or do it yourself with netifd :slight_smile:

1 Like