LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   SSH VPN - Routing (https://www.linuxquestions.org/questions/linux-networking-3/ssh-vpn-routing-928895/)

protube 02-11-2012 09:45 PM

SSH VPN - Routing
 
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

sys64738 02-15-2012 03:27 AM

Hi
that seems to be a routing problem.
Post your routing table (client and server).
To do that:
Code:

route -n


All times are GMT -5. The time now is 08:59 AM.