Date: Sat, 3 Nov 2001 00:55:10 +0800 From: KT Sin <ktsin@acm.org> To: Michael Lucas <mwlucas@blackhelicopters.org> Cc: questions@FreeBSD.ORG Subject: Re: make fetch && socks/FTP proxy? Message-ID: <20011102165506.GA22692@nutty.Singapore.Sun.COM> In-Reply-To: <20011031123151.A69440@blackhelicopters.org> References: <20011031123151.A69440@blackhelicopters.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011102165506.GA22692>