I have a remote private network connected to the internet via a Linux gateway. The gateway has the following arrangement:
- eth0 - external IP
- br0 - with eth1, and tap0 devices added to the bridge.
eth1 is the internal network, we'll call it 192.168.0.1. eth1 serves DNS and DHCP. Everything is working perfectly on that internal network, clients get DHCP addresses and DNS works.
Now I want to ether bridge to the remote network from a local site. The local site consists of only two machines on another private network: local gateway and a client machine. So I've run on the local gateway:
ssh -o Tunnel=ethernet -w 0:0 email@example.com
This partially works. There are no errors reported by ssh. The client machine acquires an IP address from the DHCP server 192.168.0.1, and can ping the server and perform DNS lookups however it can't communicate with any other machines on the remote private network (e.g. Remote server).
What do I need to do to tell the local/remote gateway that packets should be forwarded on to relevant remote machines?