From owner-freebsd-questions@FreeBSD.ORG Fri May 18 23:14:02 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 532B316A408 for ; Fri, 18 May 2007 23:14:02 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id 22B8813C489 for ; Fri, 18 May 2007 23:14:02 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) 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 A51105191F for ; Fri, 18 May 2007 19:14:00 -0400 (EDT) Date: Sat, 19 May 2007 00:13:57 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20070519001357.490b5832@gumby.homeunix.com.> In-Reply-To: References: X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: configuring network connection via 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, 18 May 2007 23:14:02 -0000 On Fri, 18 May 2007 01:04:04 +0200 martinko wrote: > Hello, > > I need to plug my company laptop in to different networks many of > which make use of some sort of proxy for accessing the internet. And > every time I face this challenge of changing connection settings of > different applications in many places. This is of course very > inconvenient. > > What I would like to be able to do is to change the connection > settings regarding a proxy in one place and have it affect all my > applications. The traditional way is through environmental variables, but lot of GUI applications wont respect them, and it wouldn't work smoothly without a reboot anyway. I would suggest you use some kind of local proxy, either a full caching http level proxy like squid, or a simple TCP redirection. You can then point your apps at a localhost port, and just reconfigure the proxy. Take a look at the www and net ports for proxies. A lot of applications support automatic proxy discovery, which might be an alternative.