Interneth -> Router 1 -> Router 2 -> Linux Webserver - How?

Discussion in 'macOS' started by Gethsemane, Oct 9, 2009.

  1. Gethsemane

    Gethsemane MDL Member

    Aug 28, 2009
    116
    1
    10
    Okay I'm trying to solve a router issue. I am connected to another router using wireless client bridge mode on the Linksys to a Verizon Fios Actiontek. I am trying to get dyndns.org to point to my Linux server which is connected to the Linksys. So basically:


    INTERNET -> Router 1-> (Wireless to Client Bridge) Router 2 -> Linux Server

    I can get the internet through Router 2 by setting static IP on linux as 192.168.1.145 and setting ip of router 2 to 192.168.1.50, subnet to 255.255.255.0, gateway to 192.168.1.1 (router 1) and DNS to 192.168.1.1 (router 1).

    I have tried port forwarding from router 1 to router 2 all 80 traffic, but I seem to hit router 2's admin GUI instead of the linux server. I added port 80 to port forwarding on the second router and nothing. Keeps going to router 2's router setup page.

    Any ideas?
     
  2. Gethsemane

    Gethsemane MDL Member

    Aug 28, 2009
    116
    1
    10
    #2 Gethsemane, Oct 9, 2009
    Last edited: Oct 9, 2009
    (OP)
    Well I have the router 2 setup to ip of: 192.168.2.1 however now I cannot connect to router number 2 BUT somehow... i can conntect to my linux webserver. Very weird... my router is connecting to the first router as 192.168.1.50 and when I enter that ip address it forwards me to the webserver:80. I did turn off web GUI access from the router, however my server is directly ran off of router 2 and I can't get to the admin config page for it anymore.
     
  3. Gethsemane

    Gethsemane MDL Member

    Aug 28, 2009
    116
    1
    10
    Nevermind, how stupid of me. Since my router 2 192.168.1.50 is within router 1's subnet, all I had to do was forward from router 1 to the linux server which is still under the same subnet at 192.168.1.150. I'm an idiot :p

    So basically: Internet -> Router 1
    192.168.1.1) -> Router 2(192.168.1.50) -> Webserver(192.168.1.160) is actually Internet-> Router 1(192.168.1.1) -> Webserver(192.168.1.150) (connected to Router 2(192.168.1.1))