FTP Proxies and Ports

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Oct 7 00:16:46 PDT 2004


On Thu, Oct 07, 2004 at 12:07:59AM +0200, Remko Lodder wrote:
> Bigelow, Andrea L. wrote:

> >I've thus far been unsuccessful with $FTP_PROXY and $HTTP_PROXY in getting
> >fetch to honor my company's FTP proxy. The easiest way to use the proxy is 
> >a
> >URL format: ftp://<username>:<password>@<server>. Is there a way that I can
> >specify that this format be used anytime I want to download and install or
> >update a port? I'm using fetch instead of CVSup. 
 
> I'd needed to set
> ftp_proxy=http://username:password@<proxy>:<prt>
> and
> http_proxy=http://username:password@<proxy>:<prt>
> while using squid.
> Yes there are 2 http's.

For convenience, you can set those variables from within /etc/make.conf:

    FETCH_ENV=   FTP_PROXY=http://username:password@proxy.example.com:3128/ \
                 HTTP_PROXY=http://username:password@proxy.example.com:3128/

You can also use the HTTP_PROXY_AUTH variable where:

    HTTP_PROXY=http://proxy.example.com:3128/
    HTTP_PROXY_AUTH=basic:*:username:password

is equivalent to the previous HTTP_PROXY setting.  In theory that can
let you use other HTTP authorization schemes than basic auth, except
that support for those other schemes has not yet been added to
libfetch.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20041007/61c51b2d/attachment.bin


More information about the freebsd-questions mailing list