From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FRImw-0003SI-Hv for garchives@archives.gentoo.org; Thu, 06 Apr 2006 00:55:54 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k360t8Vx009705; Thu, 6 Apr 2006 00:55:08 GMT Received: from cicero1.cybercity.dk (cicero1.cybercity.dk [212.242.40.4]) by robin.gentoo.org (8.13.6/8.13.5) with ESMTP id k360ofSL031643 for ; Thu, 6 Apr 2006 00:50:41 GMT Received: from user2.cybercity.dk (user2.cybercity.dk [212.242.41.35]) by cicero1.cybercity.dk (Postfix) with ESMTP id 151D46402EE for ; Thu, 6 Apr 2006 02:50:41 +0200 (CEST) Received: from [10.0.0.3] (port78.ds1-abs.adsl.cybercity.dk [212.242.227.17]) by user2.cybercity.dk (Postfix) with ESMTP id E5593286758 for ; Thu, 6 Apr 2006 02:50:40 +0200 (CEST) From: Bo Andresen To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: usenet and web mail Date: Thu, 6 Apr 2006 02:50:58 +0200 User-Agent: KMail/1.9.1 References: <55176.12.16.33.89.1144253296.squirrel@keeliegirl.dyndns.org> <200604060142.40199.bo.andresen@gmail.com> <51678.127.0.0.1.1144283261.squirrel@localhost> In-Reply-To: <51678.127.0.0.1.1144283261.squirrel@localhost> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200604060251.02080.bo.andresen@gmail.com> X-Archives-Salt: d74e16de-2031-4f22-b9f2-ec832a3f7ced X-Archives-Hash: 276ac471e18eb688db9e65e85de9481f On Thursday 06 April 2006 02:27, JimD wrote: > From work I seem to only be able to get to thes ports: [SNIP] > 443 is what I connect to ssh over [SNIP] > I could never figure out how to get ssh tunneling working. So I just have > my firewall forward port 443-> 22, 21->5900, 8080->119... > > The with just forwarding the ports is that I don't get any compression. > > For example, what would be the ssh command to connect from WORK to HOME and > tunnel port 5900 from HOME to WORK so that I can run vnc at WORK to > localhost::5555 and really be connecting to HOME. ssh is listening on port > 443 on HOME. If you can connect to home with a command similar to: # ssh -p 443 user@home.tld And you wish to connect to newsserver.com at port 119 (news) and mailserver.com at port 143 (imap) which can be reached from home then you can create tunnels to those by: # ssh -p 443 user@home -L 119:newsserver.com:119 -L 143:mailserver.com:143 After that you just direct your mail and news clients towards localhost as the servername. One way of doing that is to add: 127.0.0.1 newsserver.com mailserver.com to your /etc/hosts. You can add as many tunnels as you want to the same ssh connection by just specifying more "-L localport:servername_or_ip:port" to the ssh command. Read man ssh for more info on ssh local port forwarding. -- Bo Andresen -- gentoo-user@gentoo.org mailing list