From owner-freebsd-questions@FreeBSD.ORG Fri Dec 8 06:27:09 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 46B3916A4FD for ; Fri, 8 Dec 2006 06:27:09 +0000 (UTC) (envelope-from weiwu@sdf.lonestar.org) Received: from bossdog.realss.com (bossdog.realss.com [211.157.108.128]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D63043E22 for ; Fri, 8 Dec 2006 06:24:55 +0000 (GMT) (envelope-from weiwu@sdf.lonestar.org) Received: from localhost (unknown [127.0.0.1]) by bossdog.realss.com (Postfix) with ESMTP id 6017B1C0229 for ; Fri, 8 Dec 2006 14:26:08 +0800 (CST) Received: from bossdog.realss.com ([127.0.0.1]) by localhost (bossdog.realss.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01726-15 for ; Fri, 8 Dec 2006 14:26:07 +0800 (CST) Received: from [218.193.55.195] (unknown [59.57.232.18]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by bossdog.realss.com (Postfix) with ESMTP id 575211C0018 for ; Fri, 8 Dec 2006 14:26:07 +0800 (CST) From: =?UTF-8?Q?=E5=BC=A0=E9=9F=A1=E6=AD=A6?= To: freebsd-questions@freebsd.org Content-Type: text/plain Date: Fri, 08 Dec 2006 14:25:59 +0800 Message-Id: <1165559159.8140.5.camel@joe.realss.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at bossdog.realss.com Subject: 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 06:27:09 -0000 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.