而且容易配置。
首先,我们还是用autossh这个利器实现 ssh tunnel,在/etc/rc.local中,加入:
[root@archlinux ~]# cat /etc/rc.local
#!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
#
echo "deadline" > /sys/block/sda/queue/scheduler
## for http(gfw blocked)
# first create a ssh tunnel(socks) then let polipo to talk to this socks proxy.
/usr/bin/autossh -M 20030 -f -N -C -c blowfish -D 127.0.0.1:9999 root@你的服务器IP -p 443 -i /root/server_usa
## for http(gfw blocked)
# first create a ssh tunnel(socks) then let polipo to talk to this socks proxy.
/usr/bin/autossh -M 20030 -f -N -C -c blowfish -D 127.0.0.1:9999 root@你的服务器IP -p 443 -i /root/server_usa
然后配置 polipo
[root@archlinux ~]# cat /etc/polipo/config
proxyAddress = "127.0.0.1" # IPv4 only
proxyName = "polipo.server"
socksParentProxy = "127.0.0.1:9999" // autossh搭建的socks代理
socksProxyType = socks5
chunkHighMark = 50331648
objectHighMark = 16384
diskCacheRoot = "/var/cache/polipo" // 没目录需要手动创建
dnsQueryIPv6 = no
dnsNameServer = "127.0.0.1" // dns指向本地pdnsd服务
配置过程很简单,reboot 后应该就能 看到 本地 127.0.0.1:8123绑定了polipo
ss -ln
LISTEN 0 128 *:8123 *:*
--
Posted By GFW BLOG 功夫网与翻墙 to GFW BLOG(功夫网与翻墙) at 4/12/2012 08:39:00 AM --
1、翻墙利器赛风3下载地址: http://dld.bz/caonima326 ,http://dld.bz/caonima745/
2、我们的订阅地址:http://feeds2.feedburner.com/chinagfwblog
3、停止订阅,请发邮件到
gfw-blog+unsubscribe@googlegroups.com
翻越防火长城,你可以到达世界上的每一个角落。(Across the Great Firewall, you can reach every corner in the world.)
没有评论:
发表评论