LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 07-15-2007, 03:23 PM   #1
ssherman
LQ Newbie
 
Registered: Jul 2007
Location: Missouri
Distribution: Fedora 4
Posts: 2

Rep: Reputation: 0
Tunneling with ssh


I would like to tunnel the following through a ssh connection on port 119 (telnet, ssh(22), and www) to my home network.

I have the ssh server setup and listening on port 119 and it works fine.

squid is setup to proxy the www which is what I want but how do I setup my linux box to accept the telnet and ssh(22) connections and forward them onto the outside world.

My firewall at work blocks port 22, and 23 so I would like to fire up my ssh connection on 119 and then be able to ssh and telnet any where I want too on my PC at work.

Thanks
Steve
 
Old 07-15-2007, 03:26 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,835

Rep: Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118
what are you actually trying to achieve... you don't proxy ssh with squid... if you want ssh access via a tunnel then just configure a standard tunnel and use it locally to have the packets be sent from the other end of the tunnel.
 
Old 07-15-2007, 09:11 PM   #3
ssherman
LQ Newbie
 
Registered: Jul 2007
Location: Missouri
Distribution: Fedora 4
Posts: 2

Original Poster
Rep: Reputation: 0
I know

I know that I can't use squid for ssh. It is doing my www so that I can browse the internet through the tunnel

I want to be able to ssh and telnet to any internet address from work tunneled through the ssh(119 port) on my server at home.
 
Old 07-16-2007, 02:13 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,835

Rep: Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118
unless you're using a socks proxy, you need to establish a new tunnel for each remote peer connection you wish to establish, e.g. -L1234:somewhere.com:22 -L1235:somewhereelse.com:22
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH tunneling entz Linux - Networking 3 04-04-2007 07:22 AM
tunneling thru ssh c9876543210 Linux - Networking 1 07-21-2005 12:45 AM
X tunneling with SSH phekno Linux - Networking 3 05-31-2005 10:43 AM
SSH tunneling X AzZuM Linux - Security 3 11-27-2004 01:59 AM
Tunneling through SSH rech Slackware 1 11-28-2003 08:21 PM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration