Always VPN on router, send only certain traffic via VPN and rest via wan question

My setup is,
At remote end, I have a raspberry pi running wireguard server.

At local, I have an openwrt router configured with wireguard client connected to above wireguard server.

Any one connected to above router automatically route all traffic via VPN (remote raspberry pi)

Is there a possibility to send only certain traffic via VPN and rest all via normal wan?
For eg, all whatsapp traffic, disney hotstar requests via VPN and rest all (normal YouTube watching, google searches etc.) via wan?

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

1 Like

Thank you. I will read this.
One quick question,
If I set up wireguard client on openwrt and establish connection to wireguard server traffic goes though vpn.
Lets say, temporarily I want to disconnect VPN and send traffic via wan. In that scenario is clicking stop on the vpn interface all needed? or any firewall changes needed too?

It is clicking stop, yes. Also PBR allows you to not enforce VPN, so if you stop the VPN it will default to WAN, if WAN is set as main service gateway

1 Like