Joined: 23 Sep 2017 Posts: 229 Location: Swindon, UK
Posted: Sun Sep 24, 2017 14:59 Post subject: VPN Client on Wifi only
Hi
I am a newbie to dd-wrt and have zero linux experience.
I have just bought and configured a Linksys WRT1900ACS with dd-wrt and the vpn client.
It all works perfectly and am very impressed.
What I would love to do is configure it so just the wifi uses the vpn client and anything plugged in via ethernet does not. Alternatively specific ip addresses do not use the vpn client.
Joined: 05 Apr 2017 Posts: 981 Location: Louisiana, USA
Posted: Sun Sep 24, 2017 17:19 Post subject:
Check out Policy Based Routing. You can specify what devices on your network use the VPN Tunnel via IP Address.
*Whatever IP you put in the box will use VPN while all others do not
FIRMWARE:OpenWrt SNAPSHOT r8217-2cc821e / LuCI Master (git-18.276.41146-280dd33) MODEM:ARRIS SURFBoard SB8200 ROUTER:Linksys WRT32X USB NAS:Western Digital BLACK 1 TB Hardrive + Startech USB 3.0 External SATA III Enclosure
Joined: 23 Sep 2017 Posts: 229 Location: Swindon, UK
Posted: Sun Sep 24, 2017 17:35 Post subject:
spuriousoffspring wrote:
Check out Policy Based Routing. You can specify what devices on your network use the VPN Tunnel via IP Address.
*Whatever IP you put in the box will use VPN while all others do not
FIRMWARE:OpenWrt SNAPSHOT r8217-2cc821e / LuCI Master (git-18.276.41146-280dd33) MODEM:ARRIS SURFBoard SB8200 ROUTER:Linksys WRT32X USB NAS:Western Digital BLACK 1 TB Hardrive + Startech USB 3.0 External SATA III Enclosure
FIRMWARE:OpenWrt SNAPSHOT r8217-2cc821e / LuCI Master (git-18.276.41146-280dd33) MODEM:ARRIS SURFBoard SB8200 ROUTER:Linksys WRT32X USB NAS:Western Digital BLACK 1 TB Hardrive + Startech USB 3.0 External SATA III Enclosure
Joined: 23 Sep 2017 Posts: 229 Location: Swindon, UK
Posted: Sun Sep 24, 2017 19:26 Post subject:
spuriousoffspring wrote:
I know that it’s one IP Address per line.
I think the subnet is needed if you want to include a range of IP Addresses.
Thanks again.
I tried the ip address of the pc I am using as:
192.168.1.103
and then as:
192.168.1.103/32
but I could not browse the web afterwards.
Could ping sites but not browse them as it would time out.
This seems to affect all other devices on the network too.
Browsing is just stopped, dead.
FIRMWARE:OpenWrt SNAPSHOT r8217-2cc821e / LuCI Master (git-18.276.41146-280dd33) MODEM:ARRIS SURFBoard SB8200 ROUTER:Linksys WRT32X USB NAS:Western Digital BLACK 1 TB Hardrive + Startech USB 3.0 External SATA III Enclosure
Joined: 23 Sep 2017 Posts: 229 Location: Swindon, UK
Posted: Sun Sep 24, 2017 20:21 Post subject:
Yes I have rebooted the router.
Result is the same
Not sure about a kill switch but i do not think i have one. Did not know it was possible in dd-wrt.
I am using IPVanish.
Without PBR all clients use the vpn and work very well. Am achieving good vpn speeds of 50 Mbps on a 100 Mbps line.
As soon as I enter an ip in PBR that machine cannot browse the web but all other devices can and are going directly through the isp, not via the vpn (so that much is working).
Hope that makes sense.
FIRMWARE:OpenWrt SNAPSHOT r8217-2cc821e / LuCI Master (git-18.276.41146-280dd33) MODEM:ARRIS SURFBoard SB8200 ROUTER:Linksys WRT32X USB NAS:Western Digital BLACK 1 TB Hardrive + Startech USB 3.0 External SATA III Enclosure
Posted: Sun Oct 08, 2017 23:24 Post subject: This worked... but now how to restore a kill switch?
After hours of searching this post did the trick. Thank you so much to everyone who contributed. I tried everything and as soon as I deleted the firewall commands in command shell- I was able to tunnel via VPN only through the IP I set in PBR.
Now I want to know how I can reinstate a auto kill switch on the devices using a VPN?
I'm using Nord VPN and inputed the setup manually via their tutorial.
Joined: 05 Apr 2017 Posts: 981 Location: Louisiana, USA
Posted: Sun Oct 08, 2017 23:29 Post subject: Re: This worked... but now how to restore a kill switch?
Whatsmyip wrote:
After hours of searching this post did the trick. Thank you so much to everyone who contributed. I tried everything and as soon as I deleted the firewall commands in command shell- I was able to tunnel via VPN only through the IP I set in PBR.
Now I want to know how I can reinstate a auto kill switch on the devices using a VPN?
I'm using Nord VPN and inputed the setup manually via their tutorial.
Thank you so much
Check out this topic. Should be what you’re looking for
FIRMWARE:OpenWrt SNAPSHOT r8217-2cc821e / LuCI Master (git-18.276.41146-280dd33) MODEM:ARRIS SURFBoard SB8200 ROUTER:Linksys WRT32X USB NAS:Western Digital BLACK 1 TB Hardrive + Startech USB 3.0 External SATA III Enclosure