From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JENcf-000486-9x for garchives@archives.gentoo.org; Mon, 14 Jan 2008 11:36:57 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A90B5E09AD; Mon, 14 Jan 2008 11:36:30 +0000 (UTC) Received: from dcnode-02.unlimitedmail.net (unknown [212.145.239.58]) by pigeon.gentoo.org (Postfix) with ESMTP id 88087E09AB for ; Mon, 14 Jan 2008 11:36:29 +0000 (UTC) Received: from ppp.zz ([137.204.208.98]) (authenticated bits=0) by dcnode-02.unlimitedmail.net (8.14.2/8.14.0) with ESMTP id m0EBaFm2009221 for ; Mon, 14 Jan 2008 12:36:16 +0100 From: Etaoin Shrdlu To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] SSH tunnel With Portage Date: Mon, 14 Jan 2008 12:51:52 +0100 User-Agent: KMail/1.9.7 References: <200801141214.27087.shrdlu@unlimitedmail.org> In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801141251.52371.shrdlu@unlimitedmail.org> X-UnlimitedMail-MailScanner-From: shrdlu@unlimitedmail.org X-Spam-Status: No X-Archives-Salt: 97cb3482-54b5-49de-ba51-601cd224cd99 X-Archives-Hash: b50175eca12da033f82f7b444569a9a2 On Monday 14 January 2008, Elyahou ITTAH wrote: > Ok, ;) > > My Network have a Squid Proxy who allow only some ports like 80 443... Ok, so you should be able to use # export http_proxy="proxyname or address" # emerge-webrsync To use the already existing proxy in your network. If you insist on using your tunnel, read on. > Putty is configurated to connect to a box i have in an other place, it > allow to make a SSH Tunnel who create a socks proxy at localhost:8080. So you're forwarding port 8080 on the putty (windows) box to port 1080 on the remote box, where a SOCKS server is listening on that port, correct? I'm not sure whether putty allows non-local connections to forwarded ports by default, if this is not the case you'll need to enable that option. > Putty listen to this port and send all the frames passing the 443 of > the SQUID proxy to my exterior box. How do you do that? > I wan't to configure Portage to > use this SOCK proxy at localhost:8080 "localhost", IIUC, is a windows box, and portage is running on another (linux, on the same network) box. So, at a minimum, you'll need to use "a.b.c.d:8080" as a SOCKS server, where a.b.c.s is the IP address of the windows putty box. Assuming you have a SOCKS server at "a.b.c.d:8080" (albeit through a tunnel, but the apps don't know that), then you need to use some socksifying utility for emerge, since (AFAIK) it does not support SOCKS out of the box. So, something like # socksify emerge --sync should work (though I have not tested it). socksify is part of net-proxy/dante. Of course, you need to specify the SOCKS proxy at a.b.c.d port 8080 in the /etc/socks/socks.conf configuration file (I don't remember the exact syntax to do that right now, but it should be quite intuitive). -- gentoo-user@lists.gentoo.org mailing list