From owner-freebsd-questions@FreeBSD.ORG Sun Jun 22 04:25:33 2008 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 F42381065672 for ; Sun, 22 Jun 2008 04:25:32 +0000 (UTC) (envelope-from sahil@tandon.net) Received: from bulwark.hamla.org (bulwark.hamla.org [69.55.228.210]) by mx1.freebsd.org (Postfix) with ESMTP id ED5E98FC13 for ; Sun, 22 Jun 2008 04:25:32 +0000 (UTC) (envelope-from sahil@tandon.net) Received: from localhost (bulwark [69.55.228.210]) by bulwark.hamla.org (Postfix) with ESMTP id 734991CD4B; Sat, 21 Jun 2008 21:25:32 -0700 (PDT) X-Virus-Scanned: by ClamAV at bulwark.hamla.org Received: from bulwark.hamla.org ([69.55.228.210]) by localhost (bulwark.hamla.org [69.55.228.210]) (amavisd-new, port 10024) with LMTP id N1M4wC7aodv0; Sat, 21 Jun 2008 21:25:22 -0700 (PDT) Date: Sun, 22 Jun 2008 00:25:20 -0400 From: Sahil Tandon To: Edgardo Nuevo Message-ID: <20080622042520.GD10202@shepherd> Mail-Followup-To: Edgardo Nuevo , freebsd-questions@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: freebsd-questions@freebsd.org Subject: Re: Portsnap behind proxy squid not update X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "freebsd-questions@freebsd.org" List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jun 2008 04:25:33 -0000 Edgardo Nuevo 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