Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Accessing a VPN (PPTP) via the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Accessing a VPN (PPTP) via the command line
Authored by: machard on Feb 05, '04 05:15:32PM
Bit if a newbie herem but I'm trying to get my buddys mac on to his vpn so he can ditch the pc that his company gave him... I've got all the info pluggrd into internet connect and I always get "authentication failed". after looking into the log file it reads:

PPTP connecting to server 'AAA.BBB.CCC.DDD'
PPTP connection established.
Using interface ppp0
Connect: ppp0 <--> socket[34:17]
MS-CHAPv2 mutual authentication failed.
Remote message: 46b44ca0e36d0b949d31a3df9b463c422607$
Connection terminated.
PPTP disconnecting...
PPTP disconnected
Anyone have any idea how to resolve the "MS-CHAPv2 mutual authentication failed" issue?

[ Reply to This | # ]
Accessing a VPN (PPTP) via the command line
Authored by: rnilz on Feb 25, '04 09:59:47AM

Okay, I'm not sure about this put try something like this (from the terminal):

sudo pppd serviceid 2 debug logfile /tmp/ppp.log plugin /System/Library/SystemConfiguration/PPPController.bundle/Contents/PlugIns/PPPDialogs.ppp plugin pptp.ppp remoteaddress redialcount 1 redialtimer 5 idle 1800 mru 1500 mtu 1448 receive-all novj 0:0 noipdefault ipcp-accept-local ipcp-accept-remote user theusername password thepassword hide-password noaskpassword looplocal defaultroute usepeerdns

basically, it sounds like the server doesn't allow chapms-v2 authentication and apple's vpn gui doesn't allow for much configuration of the client. The command line (adapted from the original post) should go through all sorts of authentication protocols. If it works, you could shell script it or apple script it.

Hope this helps

[ Reply to This | # ]
Accessing a VPN (PPTP) via the command line
Authored by: finne on Jun 02, '04 11:18:44AM

CHAP authentication is basically the password/username verification: ie your password or username is not correct. When connecting to Microsoft Windows computers a user must often also supply his or her Windows Domain. This can be squeezed in with the username. Use:


instead of just username in the field that accepts your username. This worked for me on my employers Windows VPN server

[ Reply to This | # ]