ge2009
V2EX  ›  问与答

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

  •  
  •   ge2009 · Aug 20, 2014 · 10974 views
    This topic created in 4296 days ago, the information mentioned may be changed or developed.
    在PPTP的VPN下可以用chnroutes分流,但最近刚买的VPN UNLIMITED 连接后为IPSec,无法使用chnroutes,有没其他办法可以实现VPN国内外分流,谢谢!
    5 replies    2016-10-28 00:48:36 +08:00
    emdoe
        1
    emdoe  
       Aug 28, 2014 via Android
    同问,求解答
    emdoe
        2
    emdoe  
       Aug 28, 2014   ❤️ 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
       Aug 29, 2014
    @emdoe 实测确实可以,多谢分享!!
    txl263
        4
    txl263  
       Jun 26, 2015
    搜了半天还是转到这里找到啦
    mckelvin
        5
    mckelvin  
       Oct 28, 2016   ❤️ 1
    搜了半天也没找到一劳永逸的方法。写了个但文件脚本,以 daemon 的方式后台运行,做 /etc/ppp/ip-up 和 /etc/ppp/ip-down 该做的工作。

    https://gist.github.com/mckelvin/0428e05015b6fce6c7f62d47e570508b
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5819 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 06:50 · PVG 14:50 · LAX 23:50 · JFK 02:50
    ♥ Do have faith in what you're doing.