From owner-freebsd-questions@FreeBSD.ORG Fri Dec 8 21:31:33 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 5F65516A416 for ; Fri, 8 Dec 2006 21:31:33 +0000 (UTC) (envelope-from walkingshadow@grummel.net) Received: from mail1.bytemine.net (mat.bytemine.net [193.41.144.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id E349343C9D for ; Fri, 8 Dec 2006 21:30:31 +0000 (GMT) (envelope-from walkingshadow@grummel.net) Received: from 4be54-4-82-234-154-189.fbx.proxad.net ([82.234.154.189]:7413 helo=mailsvr.my.domain) by mail1.bytemine.net with esmtpa (Exim 4.62) (envelope-from ) id 1Gsn0t-0004P3-VB; Fri, 08 Dec 2006 22:12:12 +0100 Received: from localhost (localhost [127.0.0.1]) by mailsvr.my.domain (Postfix) with ESMTP id EE71F456BB; Fri, 8 Dec 2006 22:12:05 +0100 (CET) Received: from mailsvr.my.domain ([127.0.0.1]) by localhost (mailsvr.my.domain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09687-02; Fri, 8 Dec 2006 22:11:24 +0100 (CET) Received: from localhost (unknown [192.168.0.11]) by mailsvr.my.domain (Postfix) with ESMTP id 2268145756; Fri, 8 Dec 2006 13:13:26 +0100 (CET) Date: Fri, 8 Dec 2006 13:13:20 +0100 From: Jona Joachim To: =?UTF-8?B?5byg6Z+h5q2m?= Message-ID: <20061208131320.1d01d7c3@localhost> In-Reply-To: <1165559159.8140.5.camel@joe.realss.com> References: <1165559159.8140.5.camel@joe.realss.com> X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.10.6; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: amavisd-new at my.domain 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 21:31:33 -0000 On Fri, 08 Dec 2006 14:25:59 +0800 =E5=BC=A0=E9=9F=A1=E6=AD=A6 wrote: > Hello. My office use this method to access wikipedia behind the great > firewall of China: >=20 > 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 >=20 > So my computer become a 'proxy'. >=20 > The trouble is I have to keep the ssh running there. The 'proxy' will > not automatically set up next time I reboot my computer. You can put the command into /etc/rc.local for it to be executed at boot time. Jona