I try to setup PPTP VPN tunnel to my Omnia. I already have a similar tunnel set up on Raspbian (and that one works), so I mostly just copied the config. But on Omnia, any connection attempt fails with “Peer … failed CHAP authentication”. Could you please help me solving this issue?
Of course, /etc/ppp/chap-secrets contains rows with my specified username and password of form
user pptp-server password *
And I’m pretty sure I enter the very same password on the client (the password only consists of letters, digits and an underscore, so I hope bad escaping does not come into play here).
Here’s the server log from a failed connection attempt:
debug pptpd[22536]: CTRL: pppd speed = 115200
debug pptpd[22536]: CTRL: pppd options file = /var/etc/options.pptpd
info pptpd[22536]: CTRL: Starting call (launching pppd, opening GRE)
debug pptpd[22565]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
info pppd[22565]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
notice pppd[22565]: pptpd-logwtmp: $Version$
notice pppd[22565]: pppd 2.4.7 started by root, uid 0
debug pppd[22565]: using channel 22
info pppd[22565]: Using interface ppp1
notice pppd[22565]: Connect: ppp1 <–> /dev/pts/1
debug pppd[22565]: sent [LCP ConfReq id=0x1 <mru 1482> <magic 0x3d2cde3b>]
debug pppd[22565]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x27e0ae6c> ]
debug pppd[22565]: sent [LCP ConfRej id=0x1 <asyncmap 0x0> ]
debug pppd[22565]: rcvd [LCP ConfAck id=0x1 <mru 1482> <magic 0x3d2cde3b>]
debug pppd[22565]: rcvd [LCP ConfReq id=0x2 <magic 0x27e0ae6c>]
debug pppd[22565]: sent [LCP ConfAck id=0x2 <magic 0x27e0ae6c>]
debug pppd[22565]: sent [LCP EchoReq id=0x0 magic=0x3d2cde3b]
debug pppd[22565]: sent [CHAP Challenge id=0xad <079b70c5e0fc108cca85ee0100ca6045>, name = “pptp-server”]
debug pppd[22565]: rcvd [LCP EchoRep id=0x0 magic=0x27e0ae6c]
debug pppd[22565]: rcvd [CHAP Response id=0xad <92d6864f495ae88543a15f3620494b150000000000000000c716e445395e729a32975b428e7a297a172f94b4984e794600>, name = “peci1”]
warning pppd[22565]: Peer peci1 failed CHAP authentication
debug pppd[22565]: sent [CHAP Failure id=0xad “E=691 R=1 C=079b70c5e0fc108cca85ee0100ca6045 V=0 M=Access denied”]
debug pppd[22565]: sent [LCP TermReq id=0x2 “Authentication failed”]
debug pppd[22565]: rcvd [LCP TermReq id=0x3 “Failed to authenticate ourselves to peer”]
debug pppd[22565]: sent [LCP TermAck id=0x3]
debug pppd[22565]: rcvd [LCP TermAck id=0x2]
notice pppd[22565]: Connection terminated.
info pppd[22565]: Exit.
err pptpd[22536]: GRE: read(fd=6,buffer=263ac,len=8196) from PTY failed: status = -1 error = I/O error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
cat /etc/config/pptpd
config service 'pptpd’
option ‘enabled’ '1’
option ‘localip’ '192.168.18.1’
option ‘remoteip’ '192.168.18.8-10’
option ‘logwtmp’ ‘1’
config 'login’
option ‘username’ '…'
option ‘password’ '…'
option ‘remoteip’ ‘192.168.18.8’
cat /var/etc/options.pptpd
debug
logfile /var/log/pptp-server.log
auth
name "pptp-server"
lcp-echo-failure 3
lcp-echo-interval 60
default-asyncmap
mtu 1482
mru 1482
nobsdcomp
require-mschap-v2
refuse-chap
refuse-mschap
refuse-eap
refuse-pap
chapms-strip-domain
mppe required,no40,no56,stateless
proxyarp
lock
ms-dns 192.168.18.1
mppe required,no40,no56,stateless