You may know that windows server VPN often can run on SSTP. Connecting from Windows 10 is pretty easy, but if you have to work remotely from your personal Mac? Mac OS does not support SSTP VPN out of the box.
Asked
Active
Viewed 5.9k times
25
-
Could this be moved to askDifferent? It's a good question and helpful answer. – Danny Staple Jun 30 '21 at 14:09
2 Answers
40
Below is short instruction what to do if you want to connect Windows SSTP VPN from MacOS
Prerequisites: Homebrew installed - see here
Run terminal and install sstp-client
brew update
brew install sstp-client
In order to connect to your SSTP VPN with login and password use the following command line:
sudo /usr/local/sbin/sstpc --log-stderr --cert-warn --user <user> --password <password> <server> usepeerdns require-mschap-v2 noauth noipdefault defaultroute refuse-eap noccp
If you prefer to have UI to start your VPN connection you can use iSstp
https://www.axot.org/2015/03/03/isstp-a-sstp-client-for-mac-osx/

Andrew Pearson
- 317
- 2
- 12

Yury Bondarau
- 847
- 1
- 9
- 20
-
This command line doesn't work for me. After entering my password I get `sudo: /usr/local/sbin/sstpc/sstpc: command not found`. I've asked a question that links to here: [*Connect to SSTP VPN using MAC OS X*](https://stackoverflow.com/questions/45273192/connect-to-sstp-vpn-using-mac-os-x). – RobG Jul 24 '17 at 06:51
-
Looks like it's only one working way to connect last version mac os to SSTP VPN. Who knows how to disconnect after that? Because after even closing console, it continues working, and the only reboot stops it. – Anton Tkachov Jun 14 '18 at 19:17
-
@AntonTkachov I use iSstp as UI and it allows to connect and disconnect from statusbar. – Yury Bondarau Jun 15 '18 at 09:29
-
1Cannot find an option to use certificate instead of user/password. Any help with command line options for this ? – TPAKTOPA Nov 18 '19 at 13:38
-
It works perfectly but when I connect to SSTP I can *only* access VPN resources. How can I fix it? – feedthemachine Jan 03 '20 at 02:32
-
1I run the command above and connect no problem then I dod a [ctrl] c and the VPN connection closed (verified both with ipchicken and saw that my IP was changes) – Barak Jun 10 '20 at 19:37
-
`require-mschap-v2` is an insecure and obsolete directive. Why would that be included? – InterLinked Oct 22 '20 at 10:41
-
The cli worked perfectly on MacOS Big Sur (11.1); I didn't try the UI because the last update was in 2016... – Fernando Ghisi Dec 28 '20 at 17:05
-
@feedthemachine, I'm not a specialist, but you could run some commands to config the routes so the normal traffic could pass out of the VPN connection. For example: $ route add -net 10.0.x.0/24 -interface ppp0 (vpn traffic, defined by the subnet, is going to use this interface) $ route change default 192.168.0.x (network traffic is going to use this gateway by default) - You can read more here: https://gist.github.com/taldanzig/4628573 – Fernando Ghisi Dec 28 '20 at 17:21
1
I hade some problem with this too, so I deleted one /sstpc
and command sudo /usr/local/sbin/sstpc
was correct

Alexander B
- 137
- 2
- 12