原文:http://blog.csdn.net/force_eagle/article/details/7164485


对于只针对部分网站翻墙的童鞋比较有用:)! 记得将VPN设置为不替换默认网关!



#!/bin/sh names="www.google.com www.blogspot.com" gw=192.168.100.10 for name in $names; do address=`nslookup ${name} |grep Address |awk '{print $2}'|grep -v '#53'|xargs echo` echo "#Add $name route for $address" for addr in $address; do echo "route add $addr mask 255.255.255.255 $gw" done done




作者:force_eagle 发表于2011-12-30 11:33:36 原文链接



--
Posted By GFW BLOG 功夫网与翻墙 to GFW BLOG(功夫网与翻墙) at 1/02/2012 05:10:00 PM

--
1、翻墙利器赛风3下载地址: http://dld.bz/caonima326http://dld.bz/caonima745/
2、我们的订阅地址:http://feeds2.feedburner.com/chinagfwblog
3、停止订阅,请发邮件到
[email protected]
翻越防火长城,你可以到达世界上的每一个角落。(Across the Great Firewall, you can reach every corner in 
the world.)

回复