一直在用,好东西.
用在Windows + OpenVPN下
手工指定了本地网关. 因为虚拟网卡,无线有线,有时候不正确
设置成了永久路由.重启也没关系了.
以前加载到openvpn配置文件中,报错,而且每次连接都执行一遍.
http://dl.dropbox.com/u/1553969/mod_cnroute.7z (2012/5/1前有效)
需要修改成本地网关
------------------------------------------
@
echo off
#for /F "tokens=3" %%* in ('route print ^| findstr "\<0.0.0.0\>"') do set "gw=%%*"
set "gw=192.168.1.1"
ipconfig /flushdns
route -p add 203.69.113.0 mask 255.255.255.0 %gw% metric 5
route -p add 1.12.0.0 mask 255.252.0.0 %gw% metric 5
route -p add 1.24.0.0 mask 255.248.0.0 %gw% metric 5
route -p add 1.45.0.0 mask 255.255.0.0 %gw% metric 5
route -p add 1.48.0.0 mask 255.254.0.0 %gw% metric 5
route -p add 1.51.0.0 mask 255.255.0.0 %gw% metric 5
route -p add 1.56.0.0 mask 255.248.0.0 %gw% metric 5
route -p add 1.68.0.0 mask 255.252.0.0 %gw% metric 5
.........