Quantcast
Need help! Static routes to VPN router - Beyond.ca - Car Forums
Results 1 to 13 of 13

Thread: Need help! Static routes to VPN router

  1. #1
    Join Date
    Oct 2004
    Location
    Mars
    My Ride
    A car, a truck, and a bike
    Posts
    977
    Rep Power
    30

    Default Need help! Static routes to VPN router

    I'm lost and need some help from the gurus on here! I'm trying to set up my VPN router behind my regular router, and I'm really struggling.

    First off the setup is cable modem --> Asus RT-N56U --> Cisco E2500 w/dd-wrt BIG installed running the VPN script from Hidemyass.

    The Asus will remain a local address machine, as its not VPN capable, and I'd like to keep a local anyhow for some devices. It needs to share its connection with the Cisco through its LAN ports. I'm led to believe that this can be done using the "LAN-route" portion of the Asus router. At least it says thats for connecting several routers to the internet behind the Asus using the same connection.

    Problem is, I have no idea what to enter into the fields, they are:

    Network/Host IP, Netmask, Gateway, Metric, and Interface (LAN).

    First things first, the router names are not the same so there is no conflict (Asus is 192.168.1.1, Cisco is 192,168.1.2). The Cisco will see the internet and route if its connected to the modem, as will the Asus, independantly. But if I plug the Cisco into the Asus, the Cisco doesn't even get assigned an address?

    Any advice????
    sig deleted by moderator, click here for info

  2. #2
    Join Date
    Nov 2002
    Location
    Not Aspen
    My Ride
    Two from Freemont
    Posts
    9,807
    Rep Power
    45

    Default

    What DHCP range did you set up in the ASUS?

    Sometimes, the ASUS is set to 192.168.1.1, but the range of IP addresses starts at 192.168.1.50 or something like that.

  3. #3
    Join Date
    Apr 2008
    Location
    calgary
    My Ride
    CLK 55 / 2g Eclipse / EP3
    Posts
    4,422
    Rep Power
    22

    Default

    For starters, my understanding is that the VPN should be right behind the modem, and then the ASUS router after that.

  4. #4
    Join Date
    Aug 2009
    Location
    Alberta
    Posts
    51
    Rep Power
    0

    Default

    The easiest way to do this would be to get a dumb switch plug it into the modem, connect both the wan interfaces of both routers/vpn to the dumb switch. Then connect a cable between the two routers on their inside interfaces and configure some static routes on both routers to route between their inside and VPN user subnets. You would need two public IP addresses though.

    You can do it the way you have it shown if you setup a static NAT translation, disable NAT on the VPN router and setup some static routes. I would go with getting a dumb switch and hooking it up versus trying to set it up behind one another.

  5. #5
    Join Date
    Oct 2004
    Location
    Mars
    My Ride
    A car, a truck, and a bike
    Posts
    977
    Rep Power
    30

    Default

    Originally posted by TimH
    The easiest way to do this would be to get a dumb switch plug it into the modem, connect both the wan interfaces of both routers/vpn to the dumb switch. Then connect a cable between the two routers on their inside interfaces and configure some static routes on both routers to route between their inside and VPN user subnets. You would need two public IP addresses though.

    You can do it the way you have it shown if you setup a static NAT translation, disable NAT on the VPN router and setup some static routes. I would go with getting a dumb switch and hooking it up versus trying to set it up behind one another.
    Hmm, more detail? I'm new to this part of the whole thing...
    sig deleted by moderator, click here for info

  6. #6
    Join Date
    Aug 2009
    Location
    Alberta
    Posts
    51
    Rep Power
    0

    Default

    Here's a quick diagram of what I'm talking about:

    click for larger version
    » Click image for larger version

  7. #7
    Join Date
    Dec 2003
    Location
    NYC
    My Ride
    '09 STi
    Posts
    781
    Rep Power
    21

    Default

    Did you try plugging the WAN port on the Cisco into the LAN port on the Asus? You shouldn't need any static routes then. On the Cisco, you may need to set the LAN subnet to a different one than the WAN.

    I have an Asus RT-N16 router WAN port connected to my cable modem. I have a dd-wrt WRT54GL on the same subnet, with a wire going from the LAN port to the Asus LAN port. I then use static routes on the Asus to push VPN specific traffic to dd-wrt. The dd-wrt vpn router has the Asus IP set as the gateway and local DNS.

    If you want to use the VPN for internet traffic, as far as I know you will have to do what I said in the first paragraph. If you want to use it only for accessing selected subnets on the internet or private network connected on your VPN, do what I said in the second paragraph.

  8. #8
    Join Date
    Apr 2009
    Location
    calgary
    My Ride
    acura TYPE A
    Posts
    398
    Rep Power
    16

    Default

    Im not sure if you want just do Asus RT-N56U with dd-wrt and under WAN set it to connect with VPN and you specify both your WAN and VPN ip settings?

  9. #9
    Join Date
    Oct 2004
    Location
    Mars
    My Ride
    A car, a truck, and a bike
    Posts
    977
    Rep Power
    30

    Default

    Originally posted by thetransporter
    Im not sure if you want just do Asus RT-N56U with dd-wrt and under WAN set it to connect with VPN and you specify both your WAN and VPN ip settings?
    RT-N56U has no dd-wrt support for it....The 66 does...
    sig deleted by moderator, click here for info

  10. #10
    Join Date
    Oct 2004
    Location
    Mars
    My Ride
    A car, a truck, and a bike
    Posts
    977
    Rep Power
    30

    Default

    Originally posted by TimH
    Here's a quick diagram of what I'm talking about:

    click for larger version
    » Click image for larger version
    Ok, so technically I'm part way there....I will get a switch and place that before both routers.....

    They each have their own public IP's set up (see initial post), so that would only leave me still confused as to what needs to be entered in the static route fields.

    If I interpret that diagram correctly, the stuff at the bottom is host IP, subnet mask, and gateway IP...... Interesting that it says 192.168.10.0, because that is another subnet correct? I was trying to put the public IP's in there

    You're a huge help....thanks so far
    sig deleted by moderator, click here for info

  11. #11
    Join Date
    Apr 2009
    Location
    calgary
    My Ride
    acura TYPE A
    Posts
    398
    Rep Power
    16

    Default

    Originally posted by TurboMedic


    RT-N56U has no dd-wrt support for it....The 66 does...
    IM very sorry - mis -read it - thinking it was the same as mine but turns out mine is 66u but its off. turns out the 2200bg (2wire) 8 year old g router gives me double the range.

  12. #12
    Join Date
    Oct 2004
    Location
    Calgary, AB
    My Ride
    08 Mazdaspeed 3
    Posts
    48
    Rep Power
    0

    Default

    My guess is you're trying to achieve this:

    cable modem (same one) --> asus --> local network
    cable modem (same one) --> asus --> cisco w/ dd-wrt --> VPN pool clients

    I'm assuming you want to maintain both of those.

    Asus LAN IP: 192.168.1.1
    Asus network: 192.168.1.0
    Netmask: 255.255.255.0

    Asus WAN IP: set by your ISP via DHCP
    DNS: set by your ISP via DHCP
    Gateway: set by your ISP via DHCP


    Cisco LAN IP: 192.168.10.1
    Cisco network: 192.168.10.0
    Netmask 255.255.255.0

    Cisco WAN IP: 192.168.1.2
    Cisco gateway: 192.168.1.1
    Cisco DNS: 192.168.1.1 (probably not required tho)

    static routes... You shouldn't need them.

    To do what you want you shouldn't require two public IPs or to wire your two routers together. Its the same as having a client comp of your Asus (192.168.1.0/24) and having that comp establish a VPN connection using a VPN app, for example like OpenVPN GUI. What you're doing is establishing that connection using dd-wrt and having clients connected to your Cisco (192.168.10.0/24) not require a VPN app.

    PM me if you need more help.
    Last edited by odin7; 01-21-2013 at 04:39 PM.

  13. #13
    Join Date
    Apr 2003
    Location
    Calgary
    My Ride
    WK2
    Posts
    228
    Rep Power
    0

    Default

    Going to bump this thread. I've been banging my head against the wall for the last week with a similar situation.

    Set up:

    ROUTER 1 (DDWRT)
    WAN IP: set by ISP via DHCP
    DNS: set by ISP via DHCP
    Gateway: set by ISP via DHCP
    LAN IP: 192.168.1.1

    ROUTER 2 (DDWRT)
    LAN IP: 192.168.2.1
    Netmask 255.255.255.0
    WAN IP: 192.168.1.3
    gateway: 192.168.2.1

    I have the OpenVPN client configured for PIA on Router 2, and I can ping clients between the different subnets.

    When VPN is disabled, I am can access the internet from both subnets.

    When VPN is enabled and connected successfully to PIA, I can no longer access the internet from the second subnet (192.168.2.1).

    I have tried various firewall rules - but nothing seemed to work, and I don't completely understand the conditions. Going to read up on IP tables, but hopefully someone here can keep me going in the right direction. Basically, I want all traffic on router 2 to use tun1 route? correct?

Similar Threads

  1. Static IP on Siemens Modem/router from TELUS?

    By benyl in forum Computers, Consoles, and other Electronics
    Replies: 0
    Latest Threads: 10-01-2007, 11:15 AM
  2. FS: Linksys 2.4 GHZ Wireless - G VPN Broadband Router

    By Jro in forum Computer Hardware & Peripherals
    Replies: 1
    Latest Threads: 04-28-2006, 06:01 PM
  3. FS: 2 Moniters / Sound Blaster Live! Card / Linksys Wireless G VPN Router

    By Jro in forum Computer Hardware & Peripherals
    Replies: 5
    Latest Threads: 03-24-2006, 01:00 PM
  4. FS: Linksys WRV54G Wireless G VPN router

    By rage2 in forum Computer Hardware & Peripherals
    Replies: 1
    Latest Threads: 08-23-2005, 01:03 PM
  5. FS: Linksys Wireless-G VPN Router

    By Euro838 in forum Computer Hardware & Peripherals
    Replies: 2
    Latest Threads: 01-28-2005, 11:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •