How to route only certain LAN devices over VPN to the WAN

2 posts / 0 new
Last post
bigbigblue
bigbigblue's picture
How to route only certain LAN devices over VPN to the WAN

Hi All,

I have an R7000 with Firmware: DD-WRT v3.0-r30700M kongac (09/27/16). I have successfully set up Openvpn to route traffic through the VPN.

I have a dozen or so devices on the LAN, two of which are assigned static IP adddresses (and I have triple checked they do have the expected IP addresses assigned), the rest of the devices use DHCP. I want the 2 devices with the static IPs to route over the VPN and all other devices to route around it.

After many hours of reading on the net and following tutorials, and having tried at least 10 different ways of achieving this, I have got to the point where either I give up, or ask for help, so here I am asking for help ;-)

The below is the simplest method I tried and which I was convinced should work.....

With 'vanilla' Openvpn (no 'additional config' all LAN ips route over the VPN as expected.

I then added 'route-nopull' to the 'Additional config' and as expected all LAN IPs then went around the VPN. All good so far.

I then added one of the static IP addresses of the 2 devices I want to route over the VPN to the 'Policy based Routing' as follows:

192.168.0.110/32

I saved the changes, applied them and even rebooted the Router, expecting 192.168.0/110 to route via the VPN and all others to go around the VPN, but instead ALL of the LAN devices now route over the VPN :-(

I am not sure why this is not working and would greatly apporeciate any and all help in getting this to work.

Thanks

bigbigblue
bigbigblue's picture
Well,

Well,

It appears my method works. I re-installed the firware with a reset of the nvram, reconfigures, did exactly what I did before and bing... it worked. Go figure!