我使用了该线程Windows SSTP VPN - connect from Mac中的解决方案以及MAC上的其他十二个VPN客户端。
我只需要:
Port=VPN1-0
Device=WAN Miniport (SSTP)
DEVICE=vpn
PhoneNumber=vpn.company.com
...
我看到在连接到VPN之前,我有26个路由表,而在连接到VPN -76之后。
我可以使用以下命令连接到SSTP VPN:
sudo /usr/local/sbin/sstpc --log-stderr --cert-warn --user me@me.com --password super! vpn.company.com usepeerdns require-mschap-v2 noauth noipdefault defaultroute refuse-eap noccp
但是,当我连接到VPN时,我无法访问互联网。我只能访问VPN背后的资源。
我觉得我传递给此命令的参数之一可以解决我的问题。 我无法隔离哪一个。我也将不胜感激:
答案 0 :(得分:1)
使用node-gyp configure
并将网络手动添加到路由表:
gyp info it worked if it ends with ok
gyp info using node-gyp@6.1.0
gyp info using node@12.13.1 | win32 | x64
gyp info find Python using Python version 3.8.0 found at "...Path to Python"
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
//more error stuff