Routing for specific clients with OpenVPN

Hi everyone! I have a router Mikrotik 750g3 with OpenWRT, I have openwrt installed openvpn as a client, right now all clients are routed through the vpn tunnel and I want certain router clients to go through openvpn and others not. I apologize for my English.

You need PBR - Policy-Based Routing. See also vpnbypass package of the same author, however, I can not find the corresponding page.

2 Likes

Both vpnbypass and vpn-policy-routing have been deprecated in 22.03 and snapshots as non-nft compatible in favour of pbr (which is both nft and iptables compatible) and the pbr-iptables package for nft-free use cases.

2 Likes