Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 May 2008 01:03:56 +0100
From:      RW <fbsd06@mlists.homeunix.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Freebsd behind a proxy
Message-ID:  <20080523010356.7a875a5a@gumby.homeunix.com.>
In-Reply-To: <004301c8bc18$3f419a00$c500000a@SupportDela>
References:  <004301c8bc18$3f419a00$c500000a@SupportDela>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 22 May 2008 15:29:16 +0100
"Dela Benson Bani" <dbani@watradehub.com> wrote:

> Hi
> 
> i have my FreeBSD behind a squid proxy server and i'm unable to
> connect to the internet.
> 
> Can you help me with where i set the env (FTP_PASSIVE_MODE)variable to
> enable me connect either through the proxy or something that will
> work.
FTP_PASSIVE_MODE wont help, you need to set http_proxy, e.g.:

(for csh, tcsh)
setenv  http_proxy http://squid.example.com:3128

or 
(for sh, bash, ksh, zsh etc)
export http_proxy=http://squid.example.com:3128

I would suggest you put them in /etc/csh.cshrc and  /etc/profile
respectively so they apply to everything.

Any GUI applications, like Firefox, will probably need to be set
individually.

You might conceivably need to set ftp_proxy and the capitalised
versions: HTTP_PROXY and FTP_PROXY, but I think everything should
fall-back to http_proxy.



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