V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
wzxjohn
V2EX  ›  游戏

最近看到的一个利用路由表+VPN越过Steam DotA2地区限制的方法,但是没有成功,发上来大家讨论讨论

  •  
  •   wzxjohn · 2013-01-26 15:35:51 +08:00 · 3797 次点击
    这是一个创建于 4304 天前的主题,其中的信息可能已经有所发展或是发生改变。
    基本原理是连上VPN之后设置路由表,使只有Steam的地区限制验证流量走VPN,DotA2的客户端流量直接走本地网络连接。之前我测试过在DotA2客户端启动之后断开VPN,确实是可以继续玩的,而且ping很小,所以这个方法理论上是可行的。不过我用这个脚本没有成功,求大神解决。

    @echo off
    for /F "tokens=4" %%* in ('route -p print ^| findstr "\<255.255.255.255\>"') do (set routeadd=%%*)
    echo %routeadd%
    @echo 清理路由表,避免在多网卡上添加发生错误
    pause
    route delete 68.142.91.0
    route delete 68.142.116.0
    route delete 69.28.145.0
    route delete 72.165.61.0
    route delete 81.171.115.0
    route delete 103.28.54.0
    route delete 146.66.152.0
    route delete 205.185.220.0
    route delete 208.64.200.0
    route delete 208.111.133.0
    route delete 208.111.171.0
    route delete 209.197.6.0
    route delete 209.197.20.0
    route delete 209.197.30.0
    route delete 209.197.26.0
    route delete 209.197.29.0

    @echo 请确认您已连接上VPN!
    pause

    route add 68.142.91.0 mask 255.255.255.0 %routeadd%
    route add 68.142.116.0 mask 255.255.255.0 %routeadd%
    route add 69.28.145.0 mask 255.255.255.0 %routeadd%
    route add 72.165.61.0 mask 255.255.255.0 %routeadd%
    route add 81.171.115.0 mask 255.255.255.0 %routeadd%
    route add 146.66.152.0 mask 255.255.255.0 %routeadd%
    route add 205.185.220.0 mask 255.255.255.0 %routeadd%
    route add 208.64.200.0 mask 255.255.255.0 %routeadd%
    route add 208.111.133.0 mask 255.255.255.0 %routeadd%
    route add 208.111.171.0 mask 255.255.255.0 %routeadd%
    route add 209.197.6.0 mask 255.255.255.0 %routeadd%
    route add 209.197.20.0 mask 255.255.255.0 %routeadd%
    route add 209.197.30.0 mask 255.255.255.0 %routeadd%
    route add 209.197.26.0 mask 255.255.255.0 %routeadd%
    route add 209.197.29.0 mask 255.255.255.0 %routeadd%
    2 条回复    1970-01-01 08:00:00 +08:00
    binux
        1
    binux  
       2013-01-26 16:14:36 +08:00
    这东西关键就在路由呗
    然后怎么检测这东西对不对?
    binux
        2
    binux  
       2013-02-04 09:50:26 +08:00
    由于常年挂着VPN,提供一个dota2白名单,自行参照上面的修改成windows的

    route add 103.10.125.0/24 "${OLDGW}" #HK
    route add 146.66.152.0/24 "${OLDGW}" #LUXEMBOURG
    route add 146.66.153.0/24 "${OLDGW}" #LUXEMBOURG
    route add 146.66.154.0/24 "${OLDGW}" #LUXEMBOURG
    route add 146.66.155.0/24 "${OLDGW}" #EUR
    route add 146.66.156.0/23 "${OLDGW}" #SWEDEN
    route add 103.28.54.0/23 "${OLDGW}" #singapore
    route add 208.64.201.0/24 "${OLDGW}" #sea
    route add 208.78.164.0/24 "${OLDGW}" #iad
    route add 209.197.25.0/24 "${OLDGW}" #usa
    route add 209.197.29.0/24 "${OLDGW}" #usa
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2709 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 11:48 · PVG 19:48 · LAX 03:48 · JFK 06:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.