I've been trying to create a setup where a client connects to a server, and then exposes its local subnet (say 192.168.0.0/24) to the server. This is what I've attempted so far:
- I've tried using a TUN setup with various route settings, but that didn't seem to work (maybe I'm not setting the routes properly).
- I've tried a TAP setup but even though it connects, and the client and server see each-other, I can not get traffic to other devices on the client subnet from the server, and it also broke IPv6 networking on the server completely.
- I've also tried setting up a tunnel-within-a-tunnel, where the client connects to the server via a TUN, and then opens a TAP connection over the TUN. :lol: That sounded promising in the beginning but I couldn't get the TAP to connect (I didn't wanna bridge it to the eth0 device to avoid breaking IPv6 like described above).
I like fiddling with the setup myself and seeing what happens, so I'm by no means requesting a tutorial, but I'd be happy to be pointed in the right direction of how to get this to work.