Struggling a bit here with my Openvpn setup where I would like to route/nat only one of my VLANs throught the Openvpn link.
I (finally) found out that I needed to add route_nopull and route_noexec in order to ignore the routes pushed by my VPN provider, otherwise all traffic was routed through the VPN.
And now, it looks like I need to create a custom route-up script in order to add the VPN route (pushed by the provider) only to the VLAN I want.
Anyone can help with this please ?
My vlan interface is eth0.3 (192.168.2.0/24)
My vpn interface is tun0
The problem with my VPN provider is that it has some kind of round robin dns on the remote server name and each time I connect I get a different server IP and route.
I'm afraid the only way is to use the route-up script where OpenVPN sends the route to the script, and from there create the appropriate routing config for my vlan.