V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ge2009
V2EX  ›  问与答

Mac 下,IPSec 的 VPN 有没办法分流

  •  
  •   ge2009 · 2014-08-20 08:20:28 +08:00 · 10227 次点击
    这是一个创建于 3537 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在PPTP的VPN下可以用chnroutes分流,但最近刚买的VPN UNLIMITED 连接后为IPSec,无法使用chnroutes,有没其他办法可以实现VPN国内外分流,谢谢!
    5 条回复    2016-10-28 00:48:36 +08:00
    emdoe
        1
    emdoe  
       2014-08-28 00:36:29 +08:00 via Android
    同问,求解答
    emdoe
        2
    emdoe  
       2014-08-28 15:09:40 +08:00   ❤️ 4
    解决方法如下:
    下载这个 chnroutes.py : https://github.com/ranmocy/chnroutes/blob/master/chnroutes.py (在此感谢 github 的 ranmocy)
    终端下执行:python chnroutes.py -p mac -t ipsec
    再手动执行 phase1-up.sh 即可(记得 sudo )
    ge2009
        3
    ge2009  
    OP
       2014-08-29 14:00:43 +08:00
    @emdoe 实测确实可以,多谢分享!!
    txl263
        4
    txl263  
       2015-06-26 20:17:00 +08:00
    搜了半天还是转到这里找到啦
    mckelvin
        5
    mckelvin  
       2016-10-28 00:48:36 +08:00   ❤️ 1
    搜了半天也没找到一劳永逸的方法。写了个但文件脚本,以 daemon 的方式后台运行,做 /etc/ppp/ip-up 和 /etc/ppp/ip-down 该做的工作。

    https://gist.github.com/mckelvin/0428e05015b6fce6c7f62d47e570508b
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1484 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 17:32 · PVG 01:32 · LAX 10:32 · JFK 13:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.