Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Aug 2005 20:44:04 -0700
From:      perikillo <perikillo@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: cannot connect to Internet...http proxy?
Message-ID:  <51d7a51605081020443f808813@mail.gmail.com>
In-Reply-To: <44ll3kmpgc.fsf@be-well.ilk.org>
References:  <51d7a5160507312022404fcb05@mail.gmail.com> <44ll3kmpgc.fsf@be-well.ilk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 02 Aug 2005 09:35:31 -0400, Lowell Gilbert
<freebsd-questions-local@be-well.ilk.org> wrote:
> perikillo <perikillo@gmail.com> 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://<user>:<pwd>@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:*:<user>:<pwd>
*************************** 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51d7a51605081020443f808813>