Click to See Complete Forum and Search --> : pptp agony


int13
12-21-2005, 06:17 AM
Hi there!

I'm trying to setup a pptp client on slack 10.1 with kernel 2.4.29.

I've downloaded pptp-linux-1.5.0 and pptp-extras, compiled them successfully.
I've set up the correct data with pptp-command script.

But I can't connect to the pptp server on my LAN.

I've compiled the mppe support in the kernel and in the pppd.

Here is the error dump:

using channel 3
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
Warning - secret file /etc/ppp/pap-secrets has world and/or group access
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbbaf5442> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <auth chap MS-v2> <mru 1460> <magic 0x8fa4270f>]
No auth is possible
sent [LCP ConfRej id=0x1 <auth chap MS-v2>]
rcvd [LCP ConfRej id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <magic 0xbbaf5442>]
rcvd [LCP ConfReq id=0x2 <mru 1460> <magic 0x8fa4270f>]
sent [LCP ConfAck id=0x2 <mru 1460> <magic 0x8fa4270f>]
rcvd [LCP ConfAck id=0x2 <magic 0xbbaf5442>]
sent [LCP EchoReq id=0x0 magic=0xbbaf5442]
sent [CCP ConfReq id=0x1 <mppe -H -M -S -L -D +C>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
rcvd [LCP TermReq id=0x3 "peer refused to authenticate"]
LCP terminated by peer (peer refused to authenticate)
sent [LCP TermAck id=0x3]
Script pptp 10.0.52.45 --nolaunchpppd finished (pid 426), status = 0x0
Modem hangup
Connection terminated.
pptp-command: pppd indicated failure


Can anyone diagnose where is the problem?
And how should I fix it?

bburton
12-21-2005, 05:38 PM
I know this isn't a solution to your problem, but you might want to check out Hamachi (http://www.hamachi.cc/). It's a "zero-configuration" VPN solution. If you do decide to install it on Linux make sure you read the Hamachi Linux Guide (http://forums.hamachi.cc/viewtopic.php?t=3523).

jumpedintothefire
12-22-2005, 03:22 AM
Here is the key (peer refused to authenticate). check all the option files in /etc/ppp and check for "auth" in them, if present remove it.

int13
12-22-2005, 05:11 AM
I have "noauth" option in both my /etc/ppp/options and /etc/ppp/options.pptp

So I don't get it. Any suggestions?

jumpedintothefire
12-22-2005, 10:02 AM
http://pptpclient.sourceforge.net/howto-diagnosis.phtml#no_auth_is_possible

Did you setup the pap-secrets file instead of chap-secrets?

int13
12-23-2005, 04:07 AM
jumpedintothefire: Man, you pushed me into the right direction, now the server and the client handshake well, but I have some mistake in chap-secrets.

Can you enlighten me about the right chap-secrets syntax, and especially about "domain//user" option.

what is the purpose of domain part, and why if I remove the quotes around the username I receive error? In the manual there are no quotes.

My chap-secrets file reads:


VPNlogin//"milen_tihomirov" * password VPNogin


the error is something like this:

We fail to authenticate ourselves.
Bad username or password.

jumpedintothefire
12-23-2005, 01:07 PM
DOMAIN\\user * password *

Is the gernerl layout, so for you try:

VPNlogin\\milen_tihomirov * VPNogin *

What OS is the server running?

int13
01-03-2006, 04:37 AM
Hi, sorry for the halidays delay :)

I did what you've said, but now I receive the same error, I don't know what is the server's OS, suppose linux, but not sure. Tonight I'll paste you the whole debug messages from pptp.