Kingslayer
New Around Here
This tutorial will teach you how to set up a dual-router configuration with a dedicated VPN router behind another router (the primary router). This will work with any VPN-enabled router firmware, including DD-WRT, ASUSWRT (including Merlin), and Tomato.
We will be using what is known as LAN-to-WAN router cascading, where each router is on a separate subnet.
This is an incredibly popular home network setup because it allows you:
Below is a diagram of the home network structure we are going to create. Traffic is encrypted by the VPN router and flows through the primary router to the modem/internet. All devices connected to the #2 (VPN) Router will use the VPN tunnel.
All devices connected to the #1 (primary) Router will use your normal internet connection.
Part 1: Setup the Primary Router
There is only minimal setup required on the main router because it is not actually doing anything besides passing on the already-encrypted traffic from the VPN router.
You can use virtually any router in the world if it supports “VPN-Passthrough” (which most modern routers do).
In my setup there are 2 routers an Asus RT-AC68U White (Router #1) and a second Asus RT-AC68U Black (Router #2). Both run the asuswrt-merlin firmware. And BOTH are configured as Routers.
Asuswrt-Merlin Link: https://www.asuswrt-merlin.net/
Log into your first Router (for Asus users 192.168.1.1) and Enable VPN-Passthrough. On Asus may vary between different firmware’s: Click on „WAN“, then „NAT Passthrough“ and enable these options. (Picture 1)
The primary router 192.168.1.1 for simplicity. The second router can be given the IP of 192.168.1.2 on your static manual assignment. This will show up as the WAN IP on the second router as well.
Go to LAN then DHCP-Server and set a manually assigned Ip for your Router #2. (Picture 2)
The second router will then be given its own built in IP's from a pool of IP's let us call this 192.168.2.1 The only downside to this is that all devices on 192.168.2.1 will be able to communicate to 192.168.1.1,
but none of the devices on 192.168.1.1 will be able to talk to devices on 192.168.2.1. You can resolve this issue with static route on router 1. For this, go to LAN then Route and enter your Route (Depends which Subnets you use). (Picture 3)
This was all the Setup you need to do on Router #1. Now, of too Router #2.
Part 2: Setup the Secondary Router
In this section, we will change the subnet of the VPN router, so that it does not overlap with the primary router. We also need to enable DHCP,
so the VPN router hands out IP addresses to devices that connect to it. Go to LAN and then LAN IP and set the IP of the router. (Picture 4)
After that, click on DHCP Server and set the IP-Range that the Secondary Router gives. (Picture 5)
After that, you need to configure the DNS-Server, and this varies for the VPN-Provider you use. Just check their website - I really recommend AirVPN. Their DNS is “10.4.0.1” Secondary does not matter just use OpenDNS or something. (Picture 6)
Almost done. Now we just need to setup the VPN. You need a .opvn Profile. I am here using AirVPN config generator. And I turned IPV6 off because I have disabled it on my router.
The Last step is just uploading the .opvn to your Router #2. I did not enable any options just upload and turn on. (Picture 7)
Cable Setup is very easy just connect LAN* on Router #1 with WAN of Router #2 and select "Automatic IP" for the WAN-type of Router #2.
Proof: I am not in Germany nor the Netherlands and I can ping devices from Subnet 192.168.1.xxx
I hope this helps and I'am sorry if there is any ****ty english.
We will be using what is known as LAN-to-WAN router cascading, where each router is on a separate subnet.
This is an incredibly popular home network setup because it allows you:
- to access VPN and Non-VPN connections,
- to switch devices to/from the VPN simply by switching networks,
- to connect devices like an Xbox, a PS4, a fire stick, or a Chromecast to a VPN, and
- to apply/add more insulation of VPN network (double NAT = greater security).
Below is a diagram of the home network structure we are going to create. Traffic is encrypted by the VPN router and flows through the primary router to the modem/internet. All devices connected to the #2 (VPN) Router will use the VPN tunnel.
All devices connected to the #1 (primary) Router will use your normal internet connection.
Part 1: Setup the Primary Router
There is only minimal setup required on the main router because it is not actually doing anything besides passing on the already-encrypted traffic from the VPN router.
You can use virtually any router in the world if it supports “VPN-Passthrough” (which most modern routers do).
In my setup there are 2 routers an Asus RT-AC68U White (Router #1) and a second Asus RT-AC68U Black (Router #2). Both run the asuswrt-merlin firmware. And BOTH are configured as Routers.
Asuswrt-Merlin Link: https://www.asuswrt-merlin.net/
Log into your first Router (for Asus users 192.168.1.1) and Enable VPN-Passthrough. On Asus may vary between different firmware’s: Click on „WAN“, then „NAT Passthrough“ and enable these options. (Picture 1)
The primary router 192.168.1.1 for simplicity. The second router can be given the IP of 192.168.1.2 on your static manual assignment. This will show up as the WAN IP on the second router as well.
Go to LAN then DHCP-Server and set a manually assigned Ip for your Router #2. (Picture 2)
The second router will then be given its own built in IP's from a pool of IP's let us call this 192.168.2.1 The only downside to this is that all devices on 192.168.2.1 will be able to communicate to 192.168.1.1,
but none of the devices on 192.168.1.1 will be able to talk to devices on 192.168.2.1. You can resolve this issue with static route on router 1. For this, go to LAN then Route and enter your Route (Depends which Subnets you use). (Picture 3)
This was all the Setup you need to do on Router #1. Now, of too Router #2.
Part 2: Setup the Secondary Router
In this section, we will change the subnet of the VPN router, so that it does not overlap with the primary router. We also need to enable DHCP,
so the VPN router hands out IP addresses to devices that connect to it. Go to LAN and then LAN IP and set the IP of the router. (Picture 4)
After that, click on DHCP Server and set the IP-Range that the Secondary Router gives. (Picture 5)
After that, you need to configure the DNS-Server, and this varies for the VPN-Provider you use. Just check their website - I really recommend AirVPN. Their DNS is “10.4.0.1” Secondary does not matter just use OpenDNS or something. (Picture 6)
Almost done. Now we just need to setup the VPN. You need a .opvn Profile. I am here using AirVPN config generator. And I turned IPV6 off because I have disabled it on my router.
The Last step is just uploading the .opvn to your Router #2. I did not enable any options just upload and turn on. (Picture 7)
Cable Setup is very easy just connect LAN* on Router #1 with WAN of Router #2 and select "Automatic IP" for the WAN-type of Router #2.
Proof: I am not in Germany nor the Netherlands and I can ping devices from Subnet 192.168.1.xxx
I hope this helps and I'am sorry if there is any ****ty english.