Connecting two routers, one w/ VPN and other local

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page Previous  1, 2
Author Message
chercm
DD-WRT Novice


Joined: 01 Apr 2012
Posts: 34

PostPosted: Tue Apr 10, 2012 11:27    Post subject: Reply with quote
rob1802 wrote:
Here is an example of how you could set it up. Just see my comments so that you allocate the right IP as the numbers I gave are examples only.

Set the VPN Router as:

IP address - 192.168.199.50
(This has to be outside the IP range allocated by the 1st Router, I set my 1st router to start allocating IP addresses from 100, so 50 will never cause conflict)

Subnet Mask - 255.255.255.0
(Always set it to this number by default)

Gateway - 192.168.199.20
(This must be the 1st router's IP address)

Local DNS - 0.0.0.0
(Always set it to this number by default)

Set the Local (1st) Router to be as:

IP address - 192.168.199.20
(Same as Gateway on VPN Router)

Subnet Mask - 255.255.255.0
(Always set it to this number by default)

Gateway - 192.168.199.20
(This must be the 1st router's IP address)

Local DNS - 0.0.0.0
(Always set it to this number by default)



I tried this before but the VPN did not route through the VPN gateway resulting that I got 2 gateways in the routing table and from Netflix kept getting the error your location is not supported
Sponsor
chercm
DD-WRT Novice


Joined: 01 Apr 2012
Posts: 34

PostPosted: Tue Apr 10, 2012 14:06    Post subject: Reply with quote
i tried on the solution but the 2nd router still connected to the strongvpn via the trace route but the computer connected to it are still connected to the isp ip address in Singapore

please advice
rob1802
DD-WRT Novice


Joined: 09 Apr 2012
Posts: 4

PostPosted: Fri Apr 13, 2012 4:42    Post subject: Reply with quote
1) Have you wired the two routers correctly? I know it sounds obvious but make sure you have them wired 100% correct.

Router 1 (local ISP) WAN Port connected to Modem
Router 2 (VPN) WAN Port connected to LAN port on Router 1

2) What IP ranges have you set for each router?
For example
Router 1 (IP Range 192.168.199.100 - 192.168.199.150)
Router 2 (IP Range 192.168.199.200 - 192.168.199.250)
This needs to be setup to ensure you are always on the correct network

3) What IP address range is your PC in?
It has to be in the IP Range of Router 2 (for example between 192.168.199.200 - 192.168.199.250) otherwise if it is in in the Router 1 IP range it will run through the Router 1 ISP)

4) Are you able to access both routers from the one PC? (can you access both routers configuration pages without re-wiring your connection)?
If not then there is a networking configuration issue with one of your routers which has nothing to do with Strong VPN.

5) Are both set under Advanced Routing, Operating Mode = "Gateway"?

6) If you connect Router 2 (VPN) direct to the modem are you then based in the US (I always use the StrongVPN website IP location to confirm this)
chercm
DD-WRT Novice


Joined: 01 Apr 2012
Posts: 34

PostPosted: Fri Apr 13, 2012 5:26    Post subject: Reply with quote
rob1802 wrote:
1) Have you wired the two routers correctly? I know it sounds obvious but make sure you have them wired 100% correct.

Router 1 (local ISP) WAN Port connected to Modem
Router 2 (VPN) WAN Port connected to LAN port on Router 1 - done

2) What IP ranges have you set for each router?
For example
Router 1 (IP Range 192.168.199.100 - 192.168.199.150)
Router 2 (IP Range 192.168.199.200 - 192.168.199.250)
This needs to be setup to ensure you are always on the correct network

3) What IP address range is your PC in?
It has to be in the IP Range of Router 2 (for example between 192.168.199.200 - 192.168.199.250) otherwise if it is in in the Router 1 IP range it will run through the Router 1 ISP)

4) Are you able to access both routers from the one PC? (can you access both routers configuration pages without re-wiring your connection)?
If not then there is a networking configuration issue with one of your routers which has nothing to do with Strong VPN.

5) Are both set under Advanced Routing, Operating Mode = "Gateway"?

6) If you connect Router 2 (VPN) direct to the modem are you then based in the US (I always use the StrongVPN website IP location to confirm this)



2) first router: 192.168.1.1
DHCP : 192.168.1.2 - 20

second router : 192.168.1.21
Gateway : 192.168.1.1

pc ip: 192.168.23
gateway : 192.168.1.21
DNS : 192.168.1.1

4) yes i can access

5) Are both set under Advanced Routing, Operating Mode = "Gateway"? yes it is on the gateway

6) If you connect Router 2 (VPN) direct to the modem are you then based in the US (I always use the StrongVPN website IP location to confirm this) yes i am correct on the strongvpn and the traceroutes shows it but in the routing table that is 2 gateway present and when i go to the strongvpn , it is still showing as Singapore not US.
rob1802
DD-WRT Novice


Joined: 09 Apr 2012
Posts: 4

PostPosted: Fri Apr 13, 2012 12:51    Post subject: Reply with quote
There is one major difference between your setup and mine based on your response.

I kept both router's IP addresses outside of my IP ranges. In the case of yours I would change the DHCP start number for Router 1 to be 192.168.1.3 instead of 2.
Then I would set the VPN router IP address to be 192.168.1.2
Therefore your routers will have 192.168.1.1 and 192.168.1.2 and then Router 1 will start allocating IP addresses from 192.168.1.3.

This is how mine is setup.

The other issue around not being able to have the correct location when going directly from Router 2 to the Modem to Strong VPN I would talk directly with StrongVPN as this is something they will be able to resolve over their support chat line (which I have found to be very helpful).
chercm
DD-WRT Novice


Joined: 01 Apr 2012
Posts: 34

PostPosted: Fri Apr 13, 2012 13:25    Post subject: Reply with quote
rob1802 wrote:
There is one major difference between your setup and mine based on your response.

I kept both router's IP addresses outside of my IP ranges. In the case of yours I would change the DHCP start number for Router 1 to be 192.168.1.3 instead of 2.
Then I would set the VPN router IP address to be 192.168.1.2
Therefore your routers will have 192.168.1.1 and 192.168.1.2 and then Router 1 will start allocating IP addresses from 192.168.1.3.

This is how mine is setup.

The other issue around not being able to have the correct location when going directly from Router 2 to the Modem to Strong VPN I would talk directly with StrongVPN as this is something they will be able to resolve over their support chat line (which I have found to be very helpful).


they are requesting me to setup a 2 subnet one which i think a lot of ppl are having the same issue
sandywatson33
DD-WRT Novice


Joined: 03 May 2012
Posts: 1

PostPosted: Thu May 03, 2012 14:46    Post subject: Reply with quote
First of all, access the setup page of router site.
Take wan IP address from Gateway option to start VPN setup.
Check the status and note the IP address from Local Network option.
IP address must be different of both routers. Note the IP address of local router. After verifying the setting, configure Local router settings.
jenbcute
DD-WRT Novice


Joined: 24 Apr 2018
Posts: 1

PostPosted: Tue Apr 24, 2018 10:25    Post subject: Reply with quote
I don't understand why you couldn't just use two separate ethernet ports on the modem?

I'm no expert, by far! Just interested in setting my network up just like this & keep seeing that's a big issue for people trying this! Maybe it would just create a different issue or cause it to not work at all?

I'm going to try it though!
buffalo0207
DD-WRT User


Joined: 30 Apr 2014
Posts: 147
Location: UK

PostPosted: Tue Apr 24, 2018 12:34    Post subject: Reply with quote
I also use two routers - one as my main router (R9000) for FULL speeds and a R8500 as my main VPN using the OpenVPN GUI. Both on different subnets, both give out their own IP addresses, and can still linked to each other...


DDWRT Multiple subnets.doc
 Description:

Download
 Filename:  DDWRT Multiple subnets.doc
 Filesize:  91 KB
 Downloaded:  135 Time(s)

Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions 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 can attach files in this forum
You can download files in this forum