From owner-freebsd-questions@FreeBSD.ORG Fri May 23 00:15:19 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0A601065670 for ; Fri, 23 May 2008 00:15:19 +0000 (UTC) (envelope-from fbsd06+WG=90d31fc4@mlists.homeunix.com) Received: from turtle-out.mxes.net (turtle-out.mxes.net [216.86.168.191]) by mx1.freebsd.org (Postfix) with ESMTP id A4E5C8FC0C for ; Fri, 23 May 2008 00:15:19 +0000 (UTC) (envelope-from fbsd06+WG=90d31fc4@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by turtle-in.mxes.net (Postfix) with ESMTP id 1BA00163F6C for ; Thu, 22 May 2008 20:04:00 -0400 (EDT) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id AE7D423E3FB for ; Thu, 22 May 2008 20:03:58 -0400 (EDT) Date: Fri, 23 May 2008 01:03:56 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20080523010356.7a875a5a@gumby.homeunix.com.> In-Reply-To: <004301c8bc18$3f419a00$c500000a@SupportDela> References: <004301c8bc18$3f419a00$c500000a@SupportDela> X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Freebsd behind a 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: Fri, 23 May 2008 00:15:19 -0000 On Thu, 22 May 2008 15:29:16 +0100 "Dela Benson Bani" 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.