Route only one local IP through the VPN Tunnel

How to customize and extend your OpenVPN installation.
Post Reply
Tteg
OpenVpn Newbie
Posts: 1
Joined: Mon Apr 16, 2018 5:19 pm

Route only one local IP through the VPN Tunnel

Post by Tteg » Mon Apr 16, 2018 6:16 pm

Hello,

I have a problem with my configuration. I have one client, with the IP Address 192.168.8.201, and I want just to route this client through the tunnel.
I already was looking some on the internet, and I found out that I should use:

1.) Route-nopull
2.) Route 192.168.8.201 255.255.255.255

To route just this IP. But when I'am using this, I dont have any Internetconnection or LAN connection.
I am running LEDE with OpenVPN, and the VPNunlimited provider. It works so far really good for all clients, but I actually just route this ip through the tunnel.
Does someone know, how this works?
Thanks to all

User avatar
Pippin
OpenVPN Expert
Posts: 342
Joined: Wed Jul 01, 2015 8:03 am

Re: Route only one local IP through the VPN Tunnel

Post by Pippin » Mon Apr 16, 2018 9:40 pm

Yes, route-nopull and then policy routing.
Ask LEDE forum for how to...

Post Reply