From owner-freebsd-questions@FreeBSD.ORG Thu Aug 11 03:44:06 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 1592E16A41F for ; Thu, 11 Aug 2005 03:44:06 +0000 (GMT) (envelope-from perikillo@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96AA943D46 for ; Thu, 11 Aug 2005 03:44:05 +0000 (GMT) (envelope-from perikillo@gmail.com) Received: by rproxy.gmail.com with SMTP id f1so234085rne for ; Wed, 10 Aug 2005 20:44:04 -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=MBna98XyWdn3LP6wDrHkRocDZbnhdkvbT8VZzDt/AAvONGaviKUlA70YcFbwVH/O0j7Ut7aMOL8utMOXD/2fpDwjWPOh19dqVE0OKF5YJUyTCKhdSI1IG+Rqiu7HCgG3OXXdlnb9ejsIGOZvdCM279xA2+ll2OjdlNWI5ryhwto= Received: by 10.38.13.68 with SMTP id 68mr492657rnm; Wed, 10 Aug 2005 20:44:04 -0700 (PDT) Received: by 10.38.98.73 with HTTP; Wed, 10 Aug 2005 20:44:04 -0700 (PDT) Message-ID: <51d7a51605081020443f808813@mail.gmail.com> Date: Wed, 10 Aug 2005 20:44:04 -0700 From: perikillo To: freebsd-questions@freebsd.org In-Reply-To: <44ll3kmpgc.fsf@be-well.ilk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <51d7a5160507312022404fcb05@mail.gmail.com> <44ll3kmpgc.fsf@be-well.ilk.org> 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 03:44:06 -0000 On 02 Aug 2005 09:35:31 -0400, Lowell Gilbert wrote: > perikillo writes: >=20 > > 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. >=20 > Set the HTTP_PROXY environment variable. > See "man 3 fetch". >=20 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 ava= il- able for passing the authentication data. The first method is by usin= g 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?=20 Thanks in advanced.