From owner-freebsd-questions@FreeBSD.ORG Fri Dec 8 12:12:26 2006 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 8007516A4CE for ; Fri, 8 Dec 2006 12:12:26 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (www.unsane.co.uk [85.233.185.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id F07EC43CB4 for ; Fri, 8 Dec 2006 12:11:22 +0000 (GMT) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (localhost [127.0.0.1]) by unsane.co.uk (8.13.8/8.13.3) with ESMTP id kB8CCWKF009138 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Dec 2006 12:12:33 GMT (envelope-from jhary@unsane.co.uk) Received: from localhost (jhary@localhost) by unsane.co.uk (8.13.8/8.13.3/Submit) with ESMTP id kB8CCWxS009135; Fri, 8 Dec 2006 12:12:32 GMT (envelope-from jhary@unsane.co.uk) Date: Fri, 8 Dec 2006 12:12:32 +0000 (GMT) From: Vince Hoffman To: =?UTF-8?Q?=E5=BC=A0=E9=9F=A1=E6=AD=A6?= In-Reply-To: <1165559159.8140.5.camel@joe.realss.com> Message-ID: <20061208121109.L9081@unsane.co.uk> References: <1165559159.8140.5.camel@joe.realss.com> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-189161421-1165579952=:9081" Cc: freebsd-questions@freebsd.org Subject: Re: access wikipedia (walk through the great firewall of China) 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, 08 Dec 2006 12:12:26 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-189161421-1165579952=:9081 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Fri, 8 Dec 2006, =E5=BC=A0=E9~_=A1=E6=AD=A6 wrote: > Hello. My office use this method to access wikipedia behind the great > firewall of China: > > 1) we have a server in europ, let's call it server; > 2) I run this command on my desktop: > $ ssh -L 80:en.wikipedia.org:80 server; > 3) everybody in the office edit /etc/hosts, add this line: > [my_ip_addr] en.wikipedia.org > > So my computer become a 'proxy'. > > The trouble is I have to keep the ssh running there. The 'proxy' will > not automatically set up next time I reboot my computer. > > Is it possible to install some software to run as a daemon and do this > proxy? > > I think of stunnel, but I have too few knowledge to know if stunnel can > do this. maybe autossh ? http://www.harding.motd.ca/autossh/ Its in ports Port: autossh-1.4a Path: /usr/ports/security/autossh Info: Automatically restart SSH sessions and tunnels Otherwise as many other people have said there are may better ways to do=20 this. Vince > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > --0-189161421-1165579952=:9081--