From owner-freebsd-questions@FreeBSD.ORG Fri Aug 18 14:21:32 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE01C16A4DE for ; Fri, 18 Aug 2006 14:21:32 +0000 (UTC) (envelope-from levchenko.i@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.233]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1217A43D6D for ; Fri, 18 Aug 2006 14:21:20 +0000 (GMT) (envelope-from levchenko.i@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so132508wra for ; Fri, 18 Aug 2006 07:21:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JRIRqS0KJDNI4MtSjqOFoZUzKASmeCpT2Uewlr2Rz0DHahhlhg2sgmLQTI4MQOt/QltXdURwmo2ncYVtmSILe08V8MVeMVTORZET8rbOlR8e9S35kuaor9AKIYU3tYm2iPoTRuBa9v4zAiJvCJ5Gt376JV61waaKYkKLGk+zh8U= Received: by 10.67.93.6 with SMTP id v6mr1779512ugl; Fri, 18 Aug 2006 07:21:18 -0700 (PDT) Received: by 10.66.239.8 with HTTP; Fri, 18 Aug 2006 07:21:18 -0700 (PDT) Message-ID: Date: Fri, 18 Aug 2006 17:21:18 +0300 From: "Ivan Levchenko" To: freebsd-questions@freebsd.org, fysical@gmail.com In-Reply-To: <200608181408.k7IE8AP0017779@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <73d604760608180346p1e7c76c7had6344da2ad05cea@mail.gmail.com> <200608181408.k7IE8AP0017779@lurza.secnetix.de> Cc: Subject: Re: Setting up proxy X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Aug 2006 14:21:32 -0000 fetch will also use the default proxy that is set by the HTTP_PROXY and FTP_PROXY enviroment variables. On 8/18/06, Oliver Fromme wrote: > Viswas Nair wrote: > > I am trying to setup a FBSD 6.1 machine at work. I have an IP addressed by a > > DHCP server. However, to connect to the internet I need to use a proxy. How > > do I configure the system to connect via the proxy? > > > > I cannot use a browser in to do the same because I am presently trying to > > install the window manager and other applications via ports. > > The ports collection uses the fetch(1) tool for retrieving > distfiles (i.e. source code) from the internet via HTTP or > FTP protocols. If you need to use a proxy, add a line like > this to your file /etc/make.conf (create it if it doesn't > exist yet): > > FETCH_ENV= HTTP_PROXY=http://your.proxy.name:port/ > > You have to use the right hostname and port number of the > proxy, of course, for example: > > FETCH_ENV= HTTP_PROXY=http://proxy.internal.net:3128/ > > You must use URL syntax for the proxy. 3128 is the default > port if omitted. The HTTP_PROXY will also be used for FTP, > unless FTP_PROXY is also set. So, if you need different > proxies (or different ports) for FTP and HTTP, you need two > lines, for example: > > FETCH_ENV= HTTP_PROXY=http://http-proxy.internal.net:3128/ > FETCH_ENV+= FTP_PROXY=http://ftp-proxy.internal.net:3129/ > > (Note the "+=" on the second line.) > > Best regards > Oliver > > -- > Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing > Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd > Any opinions expressed in this message may be personal to the author > and may not necessarily reflect the opinions of secnetix in any way. > > "And believe me, as a C++ programmer, I don't hesitate to question > the decisions of language designers. After a decent amount of C++ > exposure, Python's flaws seem ridiculously small." -- Ville Vainio > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- Best Regards, Ivan Levchenko levchenko.i@gmail.com