Date: Fri, 18 Aug 2006 17:21:18 +0300 From: "Ivan Levchenko" <levchenko.i@gmail.com> To: freebsd-questions@freebsd.org, fysical@gmail.com Subject: Re: Setting up proxy Message-ID: <e39dd5bb0608180721n2af1b61bh3212bac7865a1229@mail.gmail.com> In-Reply-To: <200608181408.k7IE8AP0017779@lurza.secnetix.de> References: <73d604760608180346p1e7c76c7had6344da2ad05cea@mail.gmail.com> <200608181408.k7IE8AP0017779@lurza.secnetix.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <olli@lurza.secnetix.de> wrote: > Viswas Nair <fysical@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e39dd5bb0608180721n2af1b61bh3212bac7865a1229>