Hi
SSH VPN [0] seems to be something very neat, but as with anything, issues might appear.
Network 1:
Gateway (Router): 192.168.0.1
Server: 192.168.0.26
Network 2:
Gateway (Router): 192.168.1.24
Client: 192.168.1.216
My tun0 devices are set like ( 10.0.0.100 / 200 ) in the example on the Ubuntu SSH VPN page. Now, performing a ping is not a problem at all, but "integrating" the client from
Network 2 into
Network 1 seems to be more difficult. The only IP-Addresses my client is able to see, are the ones it already knows 10.0.0.100 (Server) & 10.0.0.200 (Client, itself).
By doing
Code:
ip route add 192.168.0.26 via 10.0.0.200
my client is also able to ping the server under 192.168.0.26, but nothing else, like the gateway (router) or another client in
Network 1.
192.168.* and 10.0.* are obliviously complete 2 different networks, the first one "normal" / usual and the other one "private" / VPN.
Now: How to get data from the 10.0.* addresses to the 192.168.* ? And how to set up the routes / devices to tunnel all network traffic from the client through the SSH tunnel on 192.168.0.26 and back (being part of the internal network, surfing in the web, etc.)
Thank you all very much for your help,
protube
[0]
https://help.ubuntu.com/community/SSH_VPN