[Lvlug] ssh tunneling problem from meeting

Dann S. Washko dann at thelinuxlink.net
Tue Apr 11 22:20:30 EDT 2006


At the meeting we were talking about tunneling an xterm session from a 
novell netware server securely back to my workstation on my ineternal 
network.  After a bit of research and some playing around, I found out 
the solution.

Here is the setup:

My workstation at home is behind a nat.  At work I connect to a slack 
server behind a NAT that has a public ip address forwarding ports 22, 
25, 80, 443 to that server.  The novell server is on the same network as 
the slack server.  I usually ssh into the slackware server from my 
workstation.  I would then have to telnet to the novell server to have 
it export a terminal session to a specified xserver.

After ssh'ing into the slackware server I issued this command:

ssh -l dann -L 172.29.192.58:6001:192.168.0.1:6000 -N thelinuxlink.net

This opened a tunnel from the slackware server through my nat 
(thelinuxlink.net) and to port 6000 on my home workstation.

I had to specify the bind ip address (172.29.192.58) or it would only 
bind on localhost.

No on my home workstation I then had to allow the internal ip of my nat 
to make connections to the X server.


-- 
Dann S. Washko
The Linux Link Tech Show
Check Us Out Weekly:  Live/Stream/Podcast

      http://tllts.org

The Linux Link Web Radio Portal -  Links to Linux and Technology Shows

     http://www.thelinuxlink.net

get slack (www.slackware.com) and get happy



More information about the Lvlug mailing list