Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jun 2008 00:25:20 -0400
From:      Sahil Tandon <sahil@tandon.net>
To:        Edgardo Nuevo <darknighter@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Portsnap behind proxy squid not update
Message-ID:  <20080622042520.GD10202@shepherd>
In-Reply-To: <a9a1b1c00806212028g57e07938i216ba6f282566fbd@mail.gmail.com>
References:  <a9a1b1c00806212028g57e07938i216ba6f282566fbd@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Edgardo Nuevo <darknighter@gmail.com> wrote:

> I have a proxy (squid) that gives Internet to a set of pcs, one of
> them is a FreeBSD 6.2, when wanting to upgrade ports (
> portsnap fetch)  gives me the messages following:
> 
> PC1 # fetch portsnap

Did you mean (and actually type) 'portsnap fetch'?

[...]

> But I fail to upgrade ports, then modify the
> file. cshrc and leave it well
> # ee. cshrc
> setenv HTTP_PROXY http://10.0.1.1:3128

No need to specify the port in your case; 3128 is default for HTTP_PROXY.  
Does your proxy server require authentication?  If so, you need to specify 
authorization parameters as outlined in man fetch(3).

> setenv FTP_PROXY ftp://10.0.1.1:3128
> setenv FTP_PASSIVE_MODE ftp://10.0.1.1:3128
                  
BTW, although FTP_PASSIVE_MODE is enabled by setting it to anything other 
than 'no', you probably want to set it to something logical like "YES" 
instead of just re-listing the proxy URL. :-)

-- 
Sahil Tandon <sahil@tandon.net>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080622042520.GD10202>