Router with VPN client?

Zoom123

Member
Sep 5, 2009
101
0
71
Hello,

I am currently using a VPN service to access certain websites. To do this I have to connect to the VPN server each time I want to access those sites, and then disconnect. I have to do this for every computer on my home network.

Are there any routers with VPN clients that can be configured to direct certain websites through a VPN (but not all)? I had a look at DD-WRT, but its VPN client seems to be either on or off, it doesn't seem to have a way to configure it in the way I want.

Thanks!
 

Sauro

Senior member
May 22, 2004
749
0
71
Yes, but this has to be set up on both ends of the VPN tunnel you wish to create. It's called a site-to-site vpn.
 

Zoom123

Member
Sep 5, 2009
101
0
71
The other side is a VPN Service offering the usual PPTP, OpenVPN etc. I want something that can work with such service.

DD-WRT can do this, but it directs all traffic through the VPN. I want a router that will allow me to place some rules on what traffic should go through the VPN and what should not. Is there such thing?
 

kag

Golden Member
May 21, 2001
1,677
0
76
www.boloxe.com
Zoom123, you'll have to use routes. I'm behind a VPN right now and only connections to certain IPs go through the VPN. Everything else goes through the regular connection. Example:

route add -net 192.168.108.0 netmask 255.255.255.0 metric 0 dev ppp0
route add -net 192.168.108.255 netmask 255.255.255.255 metric 0 dev ppp0

That means traffic to 192.168.108.xxx will go through the ppp0 (VPN) connection.
 

MatthewMaes

Senior member
Sep 25, 2001
408
0
76
kag,

I want to print to a local printer while on VPN. My VPN connection goes through local area connection 2. My local area connection has my 192.168.0.x IP address. How do I direct any activity on 192.168.0.x to skip the VPN?

Thanks kag.

I am trying to figure this out right now so I'll post if I get it working.

To make it easier maybe...192.168.0.18 and .54 are the 2 printers on the network. I am 192.168.0.20

Tried a few things...

route add 192.168.0.18 mask 255.255.255.0 192.168.0.1
returns an error. the route addition failed: the specified mask parameter is invalid. (destination & mask) != destination.

route add 192.168.0.18 mask 255.255.255.0 192.168.0.1 metric 1 if 3
returns an error. the route addition failed: the specified mask parameter is invalid. (destination & mask) != destination.

I chose if 3 based on where my lan network port is located.
 
Last edited: