SSTP VPN Server macOS

AnKiT KaMbOj
1 min readApr 3, 2024

--

sstp-client-macos

On macOS, using the Homebrew package manager, you can create an SSTP connection to the <your_router_name> router running the SSTP VPN server.

Run the terminal and install the sstp-client package:

brew update
brew install sstp-client

Then run the following command in the terminal:

sudo /usr/local/sbin/sstpc — cert-warn — tls-ext — user <login> — password <password> <name of the router> usepeerdns require-mschap-v2 noauth noipdefault noccp refuse-eap refuse-pap refuse-mschap

Here is an example of an sstp connection to a router with the domain name myname.example.com for the user sstp01 and the password sstp001:

sudo /usr/local/sbin/sstpc — cert-warn — tls-ext — user sstp01 — password sstp001 myname.example.com usepeerdns require-mschap-v2 noauth noipdefault noccp refuse-eap refuse-pap refuse-mschap

If the ‘defaultroute’ option is added, all traffic will be routed through the VPN tunnel.
Use the — log-stderr — log-level 4 option to enable extra logging and connection logging.

In some scenarios on the VPN client side you need to add a static route of the following type

sudo route -n add 192.168.1.0/24 192.168.1.1

to access local network hosts behind the router.

On iPad and iPhone mobile devices, use the SSTP Connect app.

--

--

AnKiT KaMbOj
AnKiT KaMbOj

No responses yet