From owner-freebsd-questions@FreeBSD.ORG Fri Aug 18 14:08:17 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 EABCE16A4DA for ; Fri, 18 Aug 2006 14:08:17 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id E433943D46 for ; Fri, 18 Aug 2006 14:08:16 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (orgfel@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k7IE8ARU017780; Fri, 18 Aug 2006 16:08:15 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k7IE8AP0017779; Fri, 18 Aug 2006 16:08:10 +0200 (CEST) (envelope-from olli) Date: Fri, 18 Aug 2006 16:08:10 +0200 (CEST) Message-Id: <200608181408.k7IE8AP0017779@lurza.secnetix.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG, fysical@gmail.com In-Reply-To: <73d604760608180346p1e7c76c7had6344da2ad05cea@mail.gmail.com> X-Newsgroups: list.freebsd-questions User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 18 Aug 2006 16:08:15 +0200 (CEST) Cc: Subject: Re: Setting up proxy X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@FreeBSD.ORG, fysical@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Aug 2006 14:08:18 -0000 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