Score:0

multiple shared coonections via VPN and Debian server

sl flag

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:

  1. 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

vidarlo avatar
ar flag
No, we won't. This is a request for learning basic Linux networking. There's books on that topic. It's simply off topic on serverfault for multiple reasons.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.