Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luizpicolo/vpn-pptp-macos
PPTP VPN on macOS Sierra
https://github.com/luizpicolo/vpn-pptp-macos
Last synced: 24 days ago
JSON representation
PPTP VPN on macOS Sierra
- Host: GitHub
- URL: https://github.com/luizpicolo/vpn-pptp-macos
- Owner: luizpicolo
- Created: 2018-06-23T23:49:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-23T21:49:37.000Z (about 6 years ago)
- Last Synced: 2024-10-04T06:22:17.268Z (about 1 month ago)
- Size: 4.88 KB
- Stars: 12
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PPTP VPN on macOS
Apple stopped the support for it’s builtin PPTP VPN client on macOS Sierra, but they kept their libraries, so it’s still possible to create a PPTP VPN connection over command line without using any 3rd party clients, like FlowVPN or Shimo.
I know that PPTP VPN has become outdated and is less secure than other protocols, but in a corporate world you sometimes don’t have a choice.
The following procedure will show how you can create a PPTP VPN on macOS Sierra. It’s based on my own configuration (MPPE-128), so you might have to adapt it to your need.
The procedure is quite simple, you first need to create a file in /etc/ppp/peers with a name that represent your domain, or company, so in my case I will call it vpn.example.com.
$ sudo touch /etc/ppp/peers/vpn.example.com
This file will contain the configuration that pppd daemon will reference and try to connect. Change with your configuration in **remoteaddress**, **user** and **password**
plugin PPTP.ppp
noauth
# logfile /tmp/ppp.log
remoteaddress "vpn.example.com"
user "username"
password "mYS3cUr3P@ssW0rd!"
redialcount 1
redialtimer 5
idle 1800
# mru 1368
# mtu 1368
receive-all
novj 0:0
ipcp-accept-local
ipcp-accept-remote
# noauth
refuse-eap
refuse-pap
refuse-chap-md5
hide-password
mppe-stateless
mppe-128
# require-mppe-128
looplocal
nodetach
# ms-dns 8.8.8.8
usepeerdns
# ipparam gwvpn
defaultroute
debugNow you only need start the pppd daemon with the following command and that’s it.
$ sudo pppd call vpn.example.com
# Test
Tested in:
- Sierra
- MojaveReference: https://malucelli.net/2017/05/16/pptp-vpn-on-macos-sierra/