Please bear my ignorance, I'm learning a lot about networking and debian.
I want to use my Debian server (with multiple lan dongles) to share my vpn (nordvpn) connection to multiple clients in my home network. The ideal setup looks like this:
- Wan router (internet access) dhcp server with ip 192.168.20.1
|
|-Debian eth0 with nordvpn. acting as DHCP server with ip 192.168.0.1
.....|
.....|-Router1 on eth1 of debian acting as bridge 192.168.0.2
...........|-Client1 of Router1 with ip 192.168.0.3
...........|-Client2 of Router1 with ip 192.168.0.5
.....|-Router2 on eth2 of debian acting as bridge ip 192.168.0.6
...........|-Client3 of Router2 with ip 192.168.0.7
...........|-Client4 of Router2 with ip 192.168.0.8
.....|-Router3 on eth3 of debian acting as bridge ip 192.168.0.9
.....|-Router4 on eth4 of debian acting as bridge ip 192.168.0.10
You can see the pattern emerging.
I'm currently able to set up the Routers with working internet using shared connection in the debian server but I need to be able for Client1 to see and ping Client3 and other on my network. The problem is that when sharing connection the server assigns different subnets to each interface (eth1=192.168.10.1, eth2=192.168.20.1 etc).
Ive tried bridging the interfaces and sharing connection to the br0 but no success connecting it to internet, Ive also tried bonding the interfaces without success and my last intent was with DnsMasq and routing but I'm a bit lost at the moment.
So, why Im doing this? I want a machine that is able to share the vpn but also run a plex server, adblocker, samba server and Homebridge for my home, I was able to set up all and the only problem Ive run into is the clients don't see each other.
Any advice, tutorials or pointers on how to do this are appreciated!
Thanks