Running 2 OpenVPN Tunnels on Separate Wifi Networks

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
Eddy-Pooh
DD-WRT Novice


Joined: 31 Aug 2020
Posts: 2

PostPosted: Sat Sep 05, 2020 17:20    Post subject: Running 2 OpenVPN Tunnels on Separate Wifi Networks Reply with quote
Hello Everyone,

I am new to DDWRT routers and really enjoying it so far.

I am currently wondering if it is possible to run two OpenVPN tunnels on separate wifi networks.

My current ISP tracks all traffic and sometimes blocks certain sites from time to time (even to their own on occasion :-P), unfortunately it is really annoying when they block sites like Amazon.

Hopefully, if I explain my set-up then my request will become clearer.

I have a Netgear Nighthawk R7800 with the newest Brainslayer Firmware with a line speed of 10mbs - so have to use sparingly.

My wifi networks are routing to their own IP Addresses. (For instance the main will route to 192.10.1.1, the other network to 192.20.1.1 and the guest network to 192.30.1.1)

The Guest Network (192.30.1.1) is running OpenVPN with ExpressVPN to another country. (Unfortunately this is very slow)

What I want to do is to route the secondary network 192.20.1.1 through another OpenVPN tunnel with ExpressVPN inside my country to bypass my ISP from tracking my activity and bypassing the occasional site blocking to Amazon.


The End result being:
192.10.1.1 - Open (No VPN active)
192.20.1.1 - VPN inside my country (Nice and Fast)
192.30.1.1 - VPN outside my country (Currently Running)


Thanks for the help.
Sponsor
eibgrad
DD-WRT Guru


Joined: 18 Sep 2010
Posts: 9157

PostPosted: Sat Sep 05, 2020 17:55    Post subject: Reply with quote
Unfortunately, dd-wrt only supports *one* OpenVPN client in the GUI. To run any additional OpenVPN clients would require manually configuring and running them w/ the CLI (command line interface) and scripting. And at that point, imo, you might as well do *all* your OpenVPN client configuration and management w/ the CLI and scripting. Esp. since it will involve development of your own PBR (policy based routing).

P.S. You could consider an alternative, like FreshTomato, which supports up to three (3) concurrent OpenVPN clients.

EDIT: Correction, I just checked, the Netgear Nighthawk R7800 is Atheros, NOT Broadcom, so FreshTomato is NOT an option. Sad

_________________
ddwrt-ovpn-split-basic.sh (UPDATED!) * ddwrt-ovpn-split-advanced.sh (UPDATED!) * ddwrt-ovpn-client-killswitch.sh * ddwrt-ovpn-client-watchdog.sh * ddwrt-ovpn-remote-access.sh * ddwrt-ovpn-client-backup.sh * ddwrt-mount-usb-drives.sh * ddwrt-blacklist-domains.sh * ddwrt-wol-port-forward.sh * ddwrt-dns-monitor.sh (NEW!)


Last edited by eibgrad on Sat Sep 05, 2020 18:06; edited 1 time in total
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12915
Location: Netherlands

PostPosted: Sat Sep 05, 2020 18:05    Post subject: Reply with quote
Welcome to the forum Smile

If you have not done so read the forum guide lines, link in my signature at the bottom of this post.
This will get you the best possible help.

Latest build can mean a lot of things so please be specific what build are you running?

As you want to route per ip address/subnet, you have to use Policy Based Routing, link in my signature.

You can run a second instance of the OVPN client, but you have to do that manually via the Command Line interface (telnet/putty)

For that is it is "necessary" to have extra storage so if you have not done so attach a USB stick and setup storage for jffs.

Attached an example for running a second instance from the CLI, you have to know your way around OpenVPN and its settings but as you already have a VPN running to ExpressVPN you can look in the existing /tmp/openvpncl/openvpn.conf file for the necessary settings

I must admit it has been a while since I have done it myself so everything is not thoroughly tested, so no guarantees, but such is live Smile

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
SurprisedItWorks
DD-WRT Guru


Joined: 04 Aug 2018
Posts: 1447
Location: Appalachian mountains, USA

PostPosted: Mon Sep 07, 2020 19:13    Post subject: Reply with quote
Another alternative, if you don't mind the expense of a second vpn provider, is to get an account with one of the wireguard providers with which dd-wrt users have had success (e.g. Azire, KeepSolid, Mullvad) and set up a wireguard vpn connection to operate alongside your OpenVPN connection. The OpenVPN system and the wireguard system in dd-wrt are quite separate, and nothing particularly special need be done to run them simultaneously. Set up one, set up the other, and in doing so make sure their PBR specifications are nonoverlapping, so that dd-wrt knows what traffic to send where. That's about it. (I do it here.) See egc's guide at https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324624. (It's in his signature if you lose this link.)
_________________
2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.
Eddy-Pooh
DD-WRT Novice


Joined: 31 Aug 2020
Posts: 2

PostPosted: Wed Sep 09, 2020 6:35    Post subject: Reply with quote
Hello Everyone,

thank you eibgrad, egc and SurprisedItWorks for all your help.

I am running the Brainslayer 07-08-2020 release.

eibgrad,
it is unfortnate that there is not a tomato release for the Netgear.

egc,
I will work through your documentation. Luckily I am always up for a challenge.

SurprisedItWorks,
thank you for the help I will definitely look into this and check the speeds on these providers. It is unfortunately one thing I always need to check in my country. Except for ExpressVPN or NordVPN, you tend to lose a lot of speed. This might have changed in recent years.

Thanks everyone.
SurprisedItWorks
DD-WRT Guru


Joined: 04 Aug 2018
Posts: 1447
Location: Appalachian mountains, USA

PostPosted: Wed Sep 09, 2020 16:24    Post subject: Reply with quote
Eddy-Pooh wrote:
SurprisedItWorks,
thank you for the help I will definitely look into this and check the speeds on these providers. It is unfortunately one thing I always need to check in my country. Except for ExpressVPN or NordVPN, you tend to lose a lot of speed. This might have changed in recent years.

Thanks everyone.

In case you are new to the wireguard/OpenVPN difference, wireguard requires you to commit during config to a single server (actual IP address), but it loads dd-wrt far more lightly and so can typically get to 2x to 3x the maximum OpenVPN speed, given a decently fast server on the other end. Many providers offering wireguard use modifified wireguard protocols that only work with their apps, which is why I mentioned three that dd-wrt users have had success with on their routers. I have learned to love vpn providers that have fewer servers that always work over the usual suspects that have a zillion servers that are often down or overloaded, etc.

I have had great success with AzireVPN (.com) technically, and my chosen servers (I have them on three routers) have always been up and fast (my routers are slower than yours and for download I get 130 to 210 Mbps with a 200 Mbps ISP), but they have few servers. I think they currently have 15 wireguard servers spread across 13 countries -- ca ch de dk es fr nl no ro se th uk us -- and their support, if you have problems or questions, is strictly via ordinary email and can be slow. My experiments with Mullvad (using their phone app) were disappointing, as I found their servers to often be down or slow. KeepSolid is less expensive than either, has many servers, and I have heard no complaints about them. Small sample size though.

_________________
2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum