Page 1 of 1

Router behind router

Posted: Sat Aug 23, 2014 7:55 am
by stephanvn
Hi all,

I created a NAS with my RPI and I have installed samba. When I use a computer that is connected to the same router, I am getting access to the NAS.
This router is only connected to another router. When I want to access the NAS from this router with a computer I am not getting access. How do I get access from this computer to the NAS?

Thanks in advance,Stephan

Re: Router behind router

Posted: Sun Aug 24, 2014 12:26 am
by sprinkmeier

Code: Select all

interwebs
    |
router1 ----- PC1
    |
router2 ----- PC2
    |
Raspberry
It this your setup? PC2 can get to the Raspberry-NAS but not PC1?
I assume the routers are set up for NAT?
You need to make sure that the internal network on the two routers ave unique subnets (everyone uses 192.168.0/24, it's really anoying) and then set up "port forwarding" on router1.
Exactly how to do that depends on the router, time to RTFM..

Re: Router behind router

Posted: Sun Aug 24, 2014 4:42 am
by W. H. Heydt
Some to beware of any time you have one router behind another is to make sure that the "LAN side" of each router uses a different IP block. Not do so results in "double NATting" and the results can be....strange.

In actual practice (and depending on your actual intent), the second router could be bridged or it could be replaced with a switch.

Note that this concern also applies if you have a router whose WAN side is connected to a WiFi hotspot, as that is going to be the LAN side of some other router.