1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Web access to multiple downstream layers of routers?

Discussion in 'Tomato Firmware' started by backwoodsman, May 3, 2012.

  1. backwoodsman

    backwoodsman Addicted to LI Member

    I know there has to be a way to do this, but I can't seem to figure it out. Say Router A is an access point, Router B is connected to A, Router C is connected to B, etc:

    A --> B --> C ...

    And I'm connected to A. I can get to B, but not to to C. What do I need to do to get to Router C?
     
  2. backwoodsman

    backwoodsman Addicted to LI Member

    No replies yet. Is there really no way to do this? I thought I was just missing something simple.

    How about an SNMP tool that can report basic stats and change settings? Does something like that exist?
     
  3. gutsman7

    gutsman7 Networkin' Nut Member

    I achived this some time ago it went like this.
    1- main router running tomato connected to modem no wireless encrytion, dhcp of 50-100.
    2- second router running dd-wrt set as a wireless client to main router.
    3- third router running linksys firmware set as a 2nd gateway with encyption and different ssid connected to second router via cat5.
     
  4. backwoodsman

    backwoodsman Addicted to LI Member

    Thanks for the reply, but maybe I need to provide a little more detail of what I need to do:

    Say Router A is 192.168.1.1. I'm on a computer connected to A. Router B is also connected to A, and has an IP of 192.168.1.50 from A. I can get to B by plugging 192.168.1.50:8080 into a browser.

    But here's the problem. B is on its own subnet, say 192.168.2.1. C is connected to B with an IP of 192.168.2.50. So, how do I get to Router C from my computer that's connected to A?
     
  5. BHTeam

    BHTeam LI Guru Member

    Provide more info!
    From where comes the internet connection?
    Which router is running the DHCP?
    How are they connected in terms of LAN WAN ports? I am assuming that we are talking about home routers not Cisco Enterprise solutions, so there is a difference between the ports and their use.
    The answer to your connection is:
    Router C WAN port to the internet
    Router C LAN port1 to Router B LAN port1
    Router B LAN port2 to Router A LAN port1
    Router A LAN port2 to PC
    Router C runs the DHCP on the LAN segment
    Router A and B have disabled their DHCP servers
    All clients are using the DHCP from Router C

    If your question was about something entirely different, Ask again with DETAILS :)
     
  6. Monk E. Boy

    Monk E. Boy Network Guru Member

    This is trivial to do if you have the LAN ports of routers A, B, & C tied together via ethernet (even powerline networking will work). Make them all part of the same network, only run one DHCP server on the router with the WAN port connected to the internet (technically you could run it on any of them but you'd have to make the default gateway be the IP address router with the WAN connection).

    e.g. Router 1 is 192.168.0.1, Router 2 is 192.168.0.2, Router 3 is 192.168.0.3, all connected via ethernet LAN ports, with DHCP enabled on Router 1, WAN connected to internet on WAN port of Router 1, all Routers configured to use the same wireless network name, security settings, and passkey.
     
  7. backwoodsman

    backwoodsman Addicted to LI Member

    Guys, thanks for the replies.

    BHTeam, it's actually the other way around; Router A is connected to the internet, B connects to A, C connects to B, etc. This is just an example; my system is much more complex than this. Yes, these are ordinary routers, some running Tomato and some running DD-WRT.

    I realize it would solve the problem if everything were in the same subnet getting DHCP from Router A. But there are a couple reasons why that's not a good solution, so I want to avoid it if possible.

    Here's what I need to do:

    Say Router A is 192.168.1.1. I'm on a computer connected as a client to A. Router B is also connected as a client to A, and has an IP of 192.168.1.50 from A. I can get to B's web interface by plugging 192.168.1.50:8080 into a browser.

    Router B has its own subnet, say 192.168.2.1. Router C is connected as a client to B, with an IP of 192.168.2.50 from A.

    So, how do I get to Router C's web interface from my computer connected to Router A? If I try to go to 192.168.2.50:8080, it tries to connect but times out. Telnet gets the same result.
     
  8. BHTeam

    BHTeam LI Guru Member

    Hello backwoodsman.
    So your problem is that your PC is in a different subnet than Router C. Your network card has address 192.168.1.52 and mask 255.255.255.0. This means that your subnet is from 192.168.1.0 to 255. Router C is on 192.168.2.0/24 subnet.

    If I was going to do this setup it should go like this:
    [​IMG]

    Router A will be accessed by 192.168.1.1:80
    Router B will be accessed by 192.168.1.XXX:80
    Router C is bit more complex. IT goes like this:
    Router B has enabled SSHd on the WAN side. You open with putty a tunnel to Router B.
    In putty you type:
    Host to connect to: IP address of Router B (192.168.1.XXX)
    Port 22
    GO to Connection -> SSH -> Tunnels sub menu in Putty.
    Source port 3000
    Dynamic option selected
    Add this settings with the add button.
    Go back to the Session menu and hit connect.
    Type in your user and password for the Router B.
    Now open FireFox. Go to Options -> Advanced -> Network -> Settings -> Manually configure Proxy -> SOCKS Host
    Type in: localhost
    Port: 3000
    Hit OK
    Now you can open IP addresses from subnet 2.
    You can open Router B address 192.168.2.1
    You can open Router C address 192.168.2.XXX

    This way you can access the WEB interface of router C.

    That way you will have two entirely separated subnetz.

    OR

    You can try to enable the SSH and make the tunneling with your current configuration.

    Try and tell what happens.

    Cheers!
     
  9. waeking

    waeking Networkin' Nut Member

    It may be as easy as adding this to

    Router C
    route add 192.168.1.0 255.255.255.0 192.168.2.50

    Router A

    route add 192.168.2.0 255.255.255.0 192.168.1.50
    route add 192.168.3.0 255.255.255.0 192.168.1.50

    Router B

    route add 192.168.3.0 255.255.255.0 192.168.2.50
     
  10. BHTeam

    BHTeam LI Guru Member

    Yes it can,
    but who wants to be easy :D ;)
     

Share This Page