morphinewan
V2EX  ›  macOS

[求助]VPN拨号后,为什么没有执行/etc/ppp/ip-up 或者ip-down脚本

  •  
  •   morphinewan · Apr 6, 2012 · 9659 views
    This topic created in 5217 days ago, the information mentioned may be changed or developed.
    脚本本身应该没错,单独执行是可以的。

    类似于以下内容

    #!/bin/sh
    route add 172.16.0.0 172.16.64.1 -netmask 255.255.0.0
    route add 192.168.0.0 172.16.64.1 -netmask 255.255.0.0
    1 replies    1970-01-01 08:00:00 +08:00
    Cofyc
        1
    Cofyc  
       Apr 6, 2012
    使用绝对路径 /sbin/route 试试。

    脚本不是以当前用户身份执行的,执行环境不一致。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1072 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 18:09 · PVG 02:09 · LAX 11:09 · JFK 14:09
    ♥ Do have faith in what you're doing.