Horas and konnichiwa untuk semua


Command line PPTP on MacOS X
April 18, 2005, 1:43 am
Filed under: notes/General

In order to do PPTP by command line on MacOS X, check the command using “ps -axlww” while PPTP connection is being made from the GUI (“Internet Connection” in Application).

Take out the last part, i.e., “call VPN (PPTP) Configuration”, which I guess is related to the contents of /Library/Preferences/SystemConfiguration/preferences.plist.

Then create /etc/ppp/chap-secrets as follows:

sudo touch /etc/ppp/chap-secrets
sudo chmod 600 /etc/ppp/chap-secrets

And enter “username * password *”, the first asterisk means any server, and second one means any IP (and, of course change username and password accordingly).

Then fire the command.

Reference:
-Accessing a VPN (PPTP) via the command line
-pppd man
-Setting up the PPTP Server on Mac OS X Server 10.2




Follow

Get every new post delivered to your Inbox.