What connects to internet on both sides?
Cheers,
rsivanandan
Main Topics
Browse All TopicsI can't seem to get a ssh point to point tunnel setup to save my life, can someone explain to me how to get this working?
* I have a SSH Server/Client both Linux that I can connect to across the internet.
* I don't have any tunnel devices in my ifconfig on either computer.
* I have 2 private networks, and we'll use fake real world IP's for examples sake.
* Private network 1 is 192.168.1.0/24 with an example public IP of 1.1.1.1
* Private network 1 is 192.168.11.0/24 with an example public IP of 11.11.11.11
Question part1: How do I make the 2 networks talk via a computer on each end (similar to how a site2site VPN Tunnel would function)
Question part2: Sometimes I might not want everyone on the source side to be able to access the remote network through my local machine so, How can I connect 192.168.11.100 to 192.168.1.0/24?
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
ravenpl:
* I have root access on both sides
* I'm looking for a solution that works via an open ssh port. (aka not openvpn, IPsec, etc)
rsivanandan:
* I'm asking as a generic question. For discussion sakes lets say a simple NAT router with the SSH port forwarded to a machine on the inside.
noci:
I'm specifically trying to get clarification on how to use the ssh -w switch.
man ssh describes it as the following
If You have root and willing to create routed tunnel, therefore refer http://bodhizazen.net/Tuto
Learned somthing today... (I do like IPsec personaly, but can understand other forms can be used too). Tunnels using TCP might misbehave near w.r.t. to expectations from f.e. UDP or SCTP timing etc.).
This is from the OpenSSH (On openBSD) documentation: http://www.kernel-panic.it
Also keep in mind that a tun interface can be opened once, so you might need multiple tun interfaces on the server.
ravenpl's setup it probably better suited for supporting that just add more channel="N" commands & network confirations for those.
Probably needs to use -w 0:any for that too. (I'm going to experiment with this.)
None of these solutions use the -w option like I need though. I found this walk through which is pretty good: http://www.gentoo-wiki.inf
But How do I know what tunnel device/numbers to use. How do you create/del tun# interface devices?
Thanks
The localnumber you can create as you which, you could leave the remote one out..?
The other side needs to have the tun driver loaded though.
The -w {local} will create any local tunnel you need
Leaving out the :{remote} will create a new interface on remote (next free number).
But then you won't know the interface it uses... (at the remote site)
There is no environment variable for it.
So you need to allocate them up front., every tunnels needs it's private number.
and you need to administer them.
Business Accounts
Answer for Membership
by: ravenplPosted on 2009-10-17 at 00:23:29ID: 25595103
You cannot create site to site tunnel with just ssh.
You can use ssh as transport for site to site tunnel - still You need admin rights on both sides to alter the routing table and setup tunnel interfaces.
I would advise easier way with openvpn setup.