How to connect two routers ?

moadhia

Honorable
Nov 29, 2013
10
0
10,510
I have two routers, one has dd-wrt flashed on it (router A) and another router with a manufacturers firmware (router B). I have one ISP connection which I connect to router B. I want to make router A connect to a VPN server so anyone joining router A would be part of that VPN, meanwhile anyone connecting to router B would just have 'naked' access to the internet via the ISP. Is there a way to have a setup like that ? And router A and B will be sharing the same ISP connection. So graphically something like this

router A(VPN) --> router B --> WAN
 
Solution
I run a very similar setup at home (though I use a server as the VPN client, not DD-WRT), with a "secure" network on one router sitting behind a "guest" network which connects to my ISP. Depending on the VPN, you will probably just need to forward ports.

1. Connect router A's WAN port to your Internet line (ditch router B for now). Get the VPN working.
2. Connect router B's WAN port to the Internet..
3. Connect router A's WAN port to one of router B's LAN ports.
4. On router B, assign router A a static IP address.
5. Confirm router A is on that static IP address (ping it from router B's LAN).
6. Find what ports your VPN needs forwarded, and forward them on router B to router A's static IP.

There's a chance your VPN won't need any...
I run a very similar setup at home (though I use a server as the VPN client, not DD-WRT), with a "secure" network on one router sitting behind a "guest" network which connects to my ISP. Depending on the VPN, you will probably just need to forward ports.

1. Connect router A's WAN port to your Internet line (ditch router B for now). Get the VPN working.
2. Connect router B's WAN port to the Internet..
3. Connect router A's WAN port to one of router B's LAN ports.
4. On router B, assign router A a static IP address.
5. Confirm router A is on that static IP address (ping it from router B's LAN).
6. Find what ports your VPN needs forwarded, and forward them on router B to router A's static IP.

There's a chance your VPN won't need any ports forwarded (unless someone outside is trying to connect to the VPN in your home network). So you may just want to try and see if the VPN works after step 3.
 
Solution