LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-24-2005, 11:37 AM   #1
aty
LQ Newbie
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Question Pptp VPN - password error


I have managed to setup a vpn server with pptpd. But there is a problem when a client tries to connect the server.
Quote:
Jul 24 17:30:29 hungarikum pptpd[20370]: CTRL: Client 192.168.1.9 control connection started
Jul 24 17:30:29 hungarikum pptpd[20370]: CTRL: Starting call (launching pppd, opening GRE)
Jul 24 17:30:29 hungarikum pppd[20371]: The remote system is required to authenticate itself
Jul 24 17:30:29 hungarikum pppd[20371]: but I couldn't find any suitable secret (password) for it to use to do so.
Jul 24 17:30:29 hungarikum pptpd[20370]: GRE: read(fd=4,buffer=804d560,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Jul 24 17:30:29 hungarikum pptpd[20370]: CTRL: PTY read or GRE write failed (pty,gre)=(4,5)
Jul 24 17:30:29 hungarikum pptpd[20370]: CTRL: Reaping child PPP[20371]
Jul 24 17:30:29 hungarikum pptpd[20370]: CTRL: Client 192.168.1.9 control connection finished
I try to connect with user: pptpd, pass: pptpd from the win.

Here are the config files of the server:
/etc/pptpd.conf:
Quote:
speed 115200
option /etc/ppp/pptpd-options
localip 192.168.0.1
remoteip 192.168.0.234-238,192.168.0.245
/etc/ppp/pppd-options:
Quote:
debug
name pptpd
auth
require-mschap-v2
mppe required
netmask 255.255.255.0
nodefaultroute
proxyarp
lock
ipcp-accept-remote
ipcp-accept-local
lcp-echo-failure 30
/etc/ppp/chap-secrets:
Quote:
[root@hungarikum ppp]# cat /etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
pptpd pptdp "pptpd" *
What is the problem?
 
Old 07-25-2005, 01:53 AM   #2
mpeg4codec
Member
 
Registered: Jul 2005
Distribution: Debian, Gentoo, self-built [not LFS]
Posts: 109

Rep: Reputation: 15
You list this file:

/etc/ppp/pppd-options

Is that just a typo? Shouldn't it be pptpd-options? But anyway, try changing require-mschap-v2 to require-chap. Once you do that, remove the line require-mppe-128.

If the clients can connect [they will give you warnings about no encryption], then either your kernel or your pppd binary doesn't have support for mppe encryption. You will have to build and patch them yourself. Let me know how it goes.
 
Old 07-26-2005, 05:06 AM   #3
aty
LQ Newbie
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
It was just a typo.
The problem was a bit complicated. I had to setup this vpn server for an old Mandrake and i wasnt allowed to change the kernel.
I found a kernelmod here: http://linux-bsd-central.com/index.p...ent/view/3/25/
I patched the old kernel with the help of this script. Although the old 2.4.19 contained already a mppe patch, but the pptpd didnt want to use it.
Furthermore, the configuration file of the pptpd required a special structure:
require-mschap-v2
mppe required
mppe stateless
With these options it works!
 
Old 04-23-2014, 12:50 AM   #4
anis123
Member
 
Registered: Mar 2012
Posts: 95

Rep: Reputation: Disabled
Dear aty

i face the same problem you face i solved it from your post but i face problems when i try to connect please help me in this regard


Warning: can't open options file /root/.ppprc: Permission denied


GRE: read(fd=6,buffer=6124a0,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
my /etc/ppp/chap-secret file is
xxxx xxxx abcdabcd *
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN pptp Connection GroverB Linux - Networking 1 10-29-2005 04:13 PM
Pptp & Vpn bahramcho Linux - Networking 1 05-09-2005 06:01 PM
VPN configuration pptp ssfrstlstnm Linux - Networking 5 05-02-2005 04:53 AM
Vpn, Pptp???? ABL Linux - Networking 3 03-11-2005 05:54 PM
PPTP/IPSEC VPN again cleekjc Linux - Newbie 1 07-31-2003 03:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration