生成解析域名并添加VPN路由脚本

原文: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 原文链接

2 条评论:

匿名 说...

[url=http://www.louboutinmall.co.uk/]louboutin outlet[/url] the Red digital megapixels the found cell phone headset . [url=http://www.vanesabrunosacparis.fr/]http://www.vanesabrunosacparis.fr/[/url] Asjhuaflz [url=http://www.oakleysunglassessforcheap.com/]oakley sunglass bag[/url]
nodevz 599767 [url=http://www.oakleyssunglassessoutlet.com/]oakley sunglass sale[/url] 413645 [url=http://www.cheapsoakleysunglassess.com/]oakley sunglass stores[/url]

匿名 说...

[url=http://www.christianlouboutintosale.co.uk]christian louboutin outlet uk[/url] There's also a risk that fans will be pissed off when there's a BD box for much less money than what they paid for the individual volumes cso they'd have to figure out if a box release would be worth it in that regard. [url=http://www.vanesabrunosacparis.fr/]vanessa bruno Pas Cher[/url] Uaysnziyi [url=http://www.oakleysunglassessforcheap.com/]oakley sunglass[/url]
babssj 853727 [url=http://www.oakleyssunglassessoutlet.com/]cheap oakley sunglass[/url] 902704 [url=http://www.cheapsoakleysunglassess.com/]oakley sunglass stores[/url]