From owner-freebsd-questions Fri Nov 2 8:55:18 2001 Delivered-To: freebsd-questions@freebsd.org Received: from patan.sun.com (patan.Sun.COM [192.18.98.43]) by hub.freebsd.org (Postfix) with ESMTP id 5FE6F37B40A for ; Fri, 2 Nov 2001 08:55:13 -0800 (PST) Received: from sunsgp.Singapore.Sun.COM ([129.158.71.3]) by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA21760 for ; Fri, 2 Nov 2001 09:54:56 -0700 (MST) Received: from nutty.singapore.sun.com (nutty [129.158.72.188]) by sunsgp.Singapore.Sun.COM (8.10.2+Sun/8.10.2/ENSMAIL,v2.1p1) with SMTP id fA2Gt9i22159 for ; Sat, 3 Nov 2001 00:55:09 +0800 (SGT) Received: (qmail 26060 invoked by uid 99407); Sat, 3 Nov 2001 00:55:10 +0800 (SGT) Date: Sat, 3 Nov 2001 00:55:10 +0800 From: KT Sin To: Michael Lucas Cc: questions@FreeBSD.ORG Subject: Re: make fetch && socks/FTP proxy? Message-ID: <20011102165506.GA22692@nutty.Singapore.Sun.COM> References: <20011031123151.A69440@blackhelicopters.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011031123151.A69440@blackhelicopters.org> User-Agent: Mutt/1.3.23.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi I'm sitting behind a SOCKS proxy and a web proxy too. The SOCKS server does not permit http traffic, so I am using it for ftp connections and the web proxy for http connections. Below are the script and modification I made so that ports fetching would seamlessly with these proxies. /etc/make.conf: ============== FETCH_CMD=/usr/local/bin/fetch.sh /usr/local/bin/fetch.sh: ======================= #!/bin/sh FETCH="/usr/bin/fetch -A" for i in "$@"; do protocol=`echo ${i} | cut -d: -f1` if [ $protocol = "http" ]; then env http_proxy=http://proxy:8080/ ${FETCH} $i; elif [ $protocol = "ftp" ]; then runsocks ${FETCH} ${i}; else ${FETCH} ${i}; fi done Cheers, kt On Wed, Oct 31, 2001 at 12:31:52PM -0500, Michael Lucas wrote: > Hello, > > I've searched the archives, to no avail. > > I'm sitting behind a SOCKS5 proxy. I can FTP out just fine with > runsocks(1), or point a Web browser to the firewall (a PIX) and use > FTP that way. The browser proxy requires a username & password, while > SOCKS is pretty open. > > Is there any way I can fetch ports automatically from behind this > thing? > > Thanks, > Michael > > > -- > Michael Lucas > mwlucas@blackhelicopters.org > http://www.blackhelicopters.org/~mwlucas/ > Big Scary Daemons: http://www.oreillynet.com/pub/q/Big_Scary_Daemons > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message