I'm planning to connect a media server (Raspberry pi may be) to 3 separate home networks (with separate subnets). I've researched and found solutions for 2 networks. If it's possible, how do I go about connecting 3 networks to the server? I can keep the server in one of the networks or in totally separate network. Also, the computers/devices should not be able to access devices from other networks. Devices should have access to devices in its own subnet and the server.

  • Setup a VPN server for the network the media server is in, and from the other networks, connect to it via VPN. Then it doesn't matter where the other networks are. – LPChip Nov 12 '18 at 15:25
  • Are they in the same home or different physical locations? What soultion did you find for 2 networks? If it handles two, it should handle more. – HazardousGlitch Nov 12 '18 at 15:52
  • Will that be over the internet? Bcz that will waste a lot of internet bandwidth. I forgot to mention all 3 home networks and server network are nearby. – Himanshu Mehani Nov 12 '18 at 15:52
  • @HazardousGlitch they are in neighboring houses, so they can be connected with Ethernet. The solution I found was connecting both via switch, then route forwarding settings in both the routers. But this method will give all devices access to each other. – Himanshu Mehani Nov 12 '18 at 15:55
  • I meant devices will get access to other networks' devices, which I don't want. – Himanshu Mehani Nov 12 '18 at 16:05

Put a router between the 3 networks. Most routers that aren't bottom-tier are capable of handling multiple networks – be it OpenWRT, a Mikrotik, an ER-X/ER-L, Raspberry Pi, etc.

Each network's existing main router should have a static route for the other two networks, pointing to the 'new' router as the gateway.

Nearly all routers come with firewalls. Edit the firewall rules such that only traffic to your media server is allowed (plus "established" traffic so that replies can go back).

The mechanism doesn't really change much from 2 to higher numbers. (But in all cases, there is the requirement that all networks have unique addresses: you cannot reliably connect two 192.168.1.x/24's together.)

  • Thanks. All three networks have their own internet. So pointing to new router as gateway will prevent internet access, right? I guess firewall is the key here, that should work perfectly. I will have to check firewall supported routers. – Himanshu Mehani Nov 13 '18 at 10:11
  • @HimanshuMehani: Don't point to the new router as the main gateway! Point to the new router as a gateway for the other two networks, nothing more. – grawity Nov 13 '18 at 11:29
  • Would you mind explaining this? – Himanshu Mehani Nov 13 '18 at 12:07
  • That's probably worth its own thread, but in short: routers (and even computers) can have a 'routing table' which lists several different gateways for different destinations. (And that's why the default gateway is called "default gateway".) Most routers let you add custom routes like "192.168.3.xx can be reached via". – grawity Nov 13 '18 at 12:12

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.