osx中vpn连接成功后自动添加路由表

在/etc/ppp/ 中新建脚本if-up

#!/bin/sh
/sbin/route add 192.168.101.0/24 -iface ppp0

然后赋予执行权限

sudo chmod a+x if-up

就是这么简单

评论

暂无评论