From owner-freebsd-questions@FreeBSD.ORG Thu Aug 11 11:28:51 2005 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 7DB0916A41F for ; Thu, 11 Aug 2005 11:28:51 +0000 (GMT) (envelope-from vdemart1@tin.it) Received: from vsmtp4.tin.it (vsmtp4.tin.it [212.216.176.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15EC143D45 for ; Thu, 11 Aug 2005 11:28:50 +0000 (GMT) (envelope-from vdemart1@tin.it) Received: from [83.225.161.135] (83.225.161.135) by vsmtp4.tin.it (7.2.060.1) (authenticated as vdemart1@tin.it) id 42E79F0D005B09B8 for freebsd-questions@freebsd.org; Thu, 11 Aug 2005 13:28:46 +0200 From: vittorio To: freebsd-questions@freebsd.org Date: Thu, 11 Aug 2005 13:28:23 +0200 User-Agent: KMail/1.8.1 References: <51d7a5160507312022404fcb05@mail.gmail.com> <44ll3kmpgc.fsf@be-well.ilk.org> <51d7a51605081020443f808813@mail.gmail.com> In-Reply-To: <51d7a51605081020443f808813@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200508111328.24224.vdemart1@tin.it> Subject: Re: cannot connect to Internet...http 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: Thu, 11 Aug 2005 11:28:51 -0000 Alle 05:44, gioved=EC 11 agosto 2005, perikillo ha scritto: > On 02 Aug 2005 09:35:31 -0400, Lowell Gilbert > > wrote: > > perikillo writes: > > > In my work, we connect to the internet over one http proxy > > > (squid) running on fedora, with windows(98/2k/xp) we dont have any > > > problem to acces to the outside. I have my user and password, the > > > proxy have the IP: 192.168.1.2 Port 3128 > > > > > > I need to access to the internet to update my system because i > > > only download the mini-iso, and i need to update ports and kernel, i > > > need to install some packages, but went the /stand/sysinstall ask me > > > how i want to connect to the internet i chose HTTP Proxy, them he ask: > > > > > > Please enter the address of the http proxy in this format: > > > hostname: port (the ':port' is optional, default is 3128 ) > > > > > > I give the IP of my proxy: 192.168.1.2, but he dont ask my user and > > > password, and say: > > > > > > "No Such directory: ftp://ftp4.freebsd.org/pub/FreeBSD > > > /snapshots/i386/5.3-RELEASE please check URL and try again" > > > > > > We use one DHCP server with windows that give the IP, i receive the > > > IP, but still cannot connect my freebsd box to the internet, some docs > > > say that if we receive our IP address from some DHCP we dont need to > > > worry about the DNS. I dont have nothing on /etc/resolv.conf > > > > > > Our subnet is W.X.2.Z --> my IP is 192.168.2.22 > > > > > > I forget something?, i need to ask something more to the person is > > > in charge of the Internet access? > > > > > > I really need to setup freebsd, because we need to test some > > > software before next friday. Hope you could help me, thanks. > > > > Set the HTTP_PROXY environment variable. > > See "man 3 fetch". > > Ok, i still have problems connecting my freebsd 5.3 to the outside, > i read man 3 fetch and have this examples: > > **************************** man 3 fetch******************************** > EXAMPLES > To access a proxy server on proxy.example.com port 8080, set the > HTTP_PROXY environment variable in a manner similar to this: > > HTTP_PROXY=3Dhttp://proxy.example.com:8080 > > If the proxy server requires authentication, there are two options > avail- able for passing the authentication data. The first method is by > using the proxy URL: > > HTTP_PROXY=3Dhttp://:@proxy.example.com:8080 > > The second method is by using the HTTP_PROXY_AUTH environment > variable: > > HTTP_PROXY=3Dhttp://proxy.example.com:8080 > HTTP_PROXY_AUTH=3Dbasic:*:: > *************************** end man 3 fetch***************************** > > Them i add this to my /root/.cshrc > > setenv HTTP_PROXY http://myusername:mypassword@192.168.1.2:3128 > setenv http_proxy http://myusername:mypassword@192.168.1.2:3128 > > Where 192.168.1.2 is my internal proxy(squid), that let goes out > side, that proxy is begin the firewall, all running on fedora on the > same box, is my setup correct or i didnt understand well? > > I dont get it, it looks very easy, any tip there? Put FETCH_ENV=3D HTTP_PROXY=3Dhttp://:@proxy.example.com:8080 =46ETCH_ENV=3D FTP_PROXY=3Dhttp://:@proxy.example.com:8080 in file /etc/make.conf It works for me!! Ciao from Rome Vittorio