LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-11-2012, 09:45 PM   #1
protube
LQ Newbie
 
Registered: Feb 2012
Distribution: Arch Linux
Posts: 2

Rep: Reputation: Disabled
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
 
Old 02-15-2012, 03:27 AM   #2
sys64738
Member
 
Registered: May 2008
Location: NRW/Germany
Posts: 105

Rep: Reputation: 30
Hi
that seems to be a routing problem.
Post your routing table (client and server).
To do that:
Code:
route -n
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Vpn Routing Franxez Linux - Server 4 10-08-2009 02:22 PM
PPP-SSH VPN Tunnel Routing Bradfirj92 Linux - Networking 4 05-09-2009 05:39 PM
VPN routing Ipolit Linux - Networking 4 02-08-2007 01:58 AM
VPN routing Ipolit Linux - Networking 1 12-13-2006 10:54 AM
routing and VPN cboyd Linux - Networking 7 12-01-2004 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration