From owner-freebsd-questions@FreeBSD.ORG Tue Jul 31 21:20:32 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 005D416A41B for ; Tue, 31 Jul 2007 21:20:31 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id C95E713C4B0 for ; Tue, 31 Jul 2007 21:20:31 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 7588A51910; Tue, 31 Jul 2007 17:20:18 -0400 (EDT) Date: Tue, 31 Jul 2007 22:20:15 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20070731222015.2cfe38ba@gumby.homeunix.com.> In-Reply-To: <46AF7AA4.6040902@custserv.com> References: <46AF7AA4.6040902@custserv.com> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: mark.jacobs@custserv.com Subject: Re: SOCKS V5 proxy for http_proxy Environmental variable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2007 21:20:32 -0000 On Tue, 31 Jul 2007 14:08:36 -0400 Mark Jacobs wrote: > I am attempting to set the http_proxy environmental variable to a > SOCKS 5 proxy server that is really an SSH tunnel to a server outside > the network. When I execute the fetch command it is failing with this > error message; > > bc007776# fetch -v ftp://ftp.gnu.org/gnu/emacs/emacs-22.1.tar.gz > looking up 127.0.0.1 > connecting to 127.0.0.1:8080 > requesting ftp://ftp.gnu.org/gnu/emacs/emacs-22.1.tar.gz > fetch: ftp://ftp.gnu.org/gnu/emacs/emacs-22.1.tar.gz: Unknown error: 0 > > Is this supported? > I don't think so, and if it were, I doubt it would be supported through though the http_proxy variable. Do you not have access to an external http_proxy via the ssh tunnel? That's the way this kind of thing normally works. Failing that, if this is for ports building, you might want to look into using curl instead of fetch in your FETCH_CMD as it appears to support SOCKS 5.