OpenWrt Forum Archive

Topic: pptp Server on Openwrt

The content of this topic has been archived on 16 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello everyone,
last year I bought a MC PMRL router to run a pptp server on it.
pptp is necessary because the Remotesoftware works with it .
To make the pptp connection safe I put the pptp connection in a openvpn connection.

Now I have a problem to run the pptp server on openwrt I cant finde the 'pptpd' package witch is necessary to adjust the server.

root@MC-PMRx:~# opkg install pptpd
Unknown package 'pptpd'.
Collected errors:
 * opkg_install_cmd: Cannot install package pptpd.

wiki.openwrt.org/doc/howto/vpn.server.pptpd

I hope someone can help me smile

(Last edited by Christian283 on 3 Jan 2018, 12:47)

run "opkg update" first.

run "opkg update" first.

I have done that, of course. But I donĀ“t can find the package.

How about you try this command

opkg list | grep pptp

I do not have the device right now I'll test it tomorrow, but I thank you in advance.

rj-45 wrote:

How about you try this command

opkg list | grep pptp

root@MC-PMRx:~# opkg list | grep pptp
kmod-pptp - 3.18.23-1
ppp-mod-pptp - 2.4.7-6

I was able to install all packages manually, if i want to build the connection remotely, the log will give me the following logfile.

Maybe someone can help me with this:

Mon Feb 19 17:01:22 2018 daemon.info pptpd[27016]: CTRL: Client 172.211.213.16 control connection started
Mon Feb 19 17:01:22 2018 daemon.info pptpd[27016]: CTRL: Starting call (launching pppd, opening GRE)
Mon Feb 19 17:01:22 2018 daemon.notice pppd[27017]: pppd 2.4.7 started by root, uid 0
Mon Feb 19 17:01:22 2018 daemon.debug pppd[27017]: using channel 9
Mon Feb 19 17:01:22 2018 daemon.info pppd[27017]: Using interface ppp1
Mon Feb 19 17:01:22 2018 daemon.notice pppd[27017]: Connect: ppp1 <--> /dev/pts/0
Mon Feb 19 17:01:22 2018 daemon.debug pppd[27017]: sent [LCP ConfReq id=0x1 <mru 1482> <auth chap MS-v2> <magic 0x30c64d9e>]
Mon Feb 19 17:01:22 2018 daemon.debug pppd[27017]: rcvd [LCP ConfReq id=0x0 <mru 1400> <magic 0x5e0b3a9a> <pcomp> <accomp> <callback CBCP>]
Mon Feb 19 17:01:22 2018 daemon.debug pppd[27017]: sent [LCP ConfRej id=0x0 <pcomp> <accomp> <callback CBCP>]
Mon Feb 19 17:01:22 2018 daemon.debug pppd[27017]: rcvd [LCP ConfAck id=0x1 <mru 1482> <auth chap MS-v2> <magic 0x30c64d9e>]
Mon Feb 19 17:01:22 2018 daemon.debug pppd[27017]: rcvd [LCP ConfReq id=0x1 <mru 1400> <magic 0x5e0b3a9a>]
Mon Feb 19 17:01:22 2018 daemon.debug pppd[27017]: sent [LCP ConfAck id=0x1 <mru 1400> <magic 0x5e0b3a9a>]
Mon Feb 19 17:01:22 2018 daemon.debug pppd[27017]: sent [LCP EchoReq id=0x0 magic=0x30c64d9e]
Mon Feb 19 17:01:22 2018 daemon.debug pppd[27017]: sent [CHAP Challenge id=0xc8 <50c1b7aff0345987ec773fe3e2e00560>, name = "pptp-server"]
Mon Feb 19 17:01:23 2018 daemon.debug pppd[27017]: rcvd [LCP Ident id=0x2 magic=0x5e0b3a9a "MSRASV5.20"]
Mon Feb 19 17:01:23 2018 daemon.debug pppd[27017]: rcvd [LCP Ident id=0x3 magic=0x5e0b3a9a "MSRAS-0-NB06"]
Mon Feb 19 17:01:23 2018 daemon.debug pppd[27017]: rcvd [LCP Ident id=0x4 magic=0x5e0b3a9a "\37777777710\37777777774\37777777622tA\37777777615\37777777670C\37777777626K\031\37777777667\37777777607\014\37777777743,"]
Mon Feb 19 17:01:23 2018 daemon.debug pppd[27017]: rcvd [LCP EchoRep id=0x0 magic=0x5e0b3a9a]
Mon Feb 19 17:01:23 2018 daemon.debug pppd[27017]: rcvd [CHAP Response id=0xc8 <31da1074f4d1a256a2c39baa91af4640000000000000000041a90d2001b9440ce3563159bce9590fa483b2fe50abd58300>, name = "gast"]
Mon Feb 19 17:01:23 2018 daemon.warn pppd[27017]: Warning - secret file /etc/ppp/chap-secrets has world and/or group access
Mon Feb 19 17:01:23 2018 daemon.debug pppd[27017]: sent [CHAP Success id=0xc8 "S=5B9EE45F4D227084F94CA0014269EB495FF463EF M=Access granted"]
Mon Feb 19 17:01:23 2018 daemon.notice pppd[27017]: peer from calling number 172.211.213.16 authorized
Mon Feb 19 17:01:23 2018 daemon.err pppd[27017]: MPPE required, but kernel has no support.
Mon Feb 19 17:01:23 2018 daemon.debug pppd[27017]: sent [LCP TermReq id=0x2 "MPPE required but not available"]
Mon Feb 19 17:01:23 2018 daemon.debug pppd[27017]: rcvd [IPV6CP ConfReq id=0x5 <addr fe80::a41c:42df:8947:8398>]
Mon Feb 19 17:01:23 2018 daemon.debug pppd[27017]: Discarded non-LCP packet when LCP not open
Mon Feb 19 17:01:23 2018 daemon.debug pppd[27017]: rcvd [CCP ConfReq id=0x6 <mppe +H -M +S -L -D -C>]
Mon Feb 19 17:01:23 2018 daemon.debug pppd[27017]: Discarded non-LCP packet when LCP not open
Mon Feb 19 17:01:23 2018 daemon.debug pppd[27017]: rcvd [IPCP ConfReq id=0x7 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-wins 0.0.0.0> <ms-dns2 0.0.0.0> <ms-wins 0.0.0.0>]
Mon Feb 19 17:01:23 2018 daemon.debug pppd[27017]: Discarded non-LCP packet when LCP not open
Mon Feb 19 17:01:23 2018 daemon.debug pppd[27017]: rcvd [LCP TermAck id=0x2 "MPPE required but not available"]
Mon Feb 19 17:01:23 2018 daemon.notice pppd[27017]: Connection terminated.
Mon Feb 19 17:01:23 2018 daemon.info pppd[27017]: Connect time 0.1 minutes.
Mon Feb 19 17:01:23 2018 daemon.info pppd[27017]: Sent 0 bytes, received 0 bytes.
Mon Feb 19 17:01:23 2018 daemon.info pppd[27017]: Exit.
Mon Feb 19 17:01:23 2018 daemon.err pptpd[27016]: GRE: read(fd=6,buffer=41ec5c,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Mon Feb 19 17:01:23 2018 daemon.err pptpd[27016]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Mon Feb 19 17:01:23 2018 daemon.debug pptpd[27016]: CTRL: Reaping child PPP[27017]
Mon Feb 19 17:01:23 2018 daemon.info pptpd[27016]: CTRL: Client 172.211.213.16 control connection finished
Mon Feb 19 17:01:23 2018 daemon.err pptpd[27016]: CTRL: Couldn't write packet to client.
Mon Feb 19 17:01:23 2018 daemon.err pppd[27017]: MPPE required, but kernel has no support.

Looks like you need to install the MPPE kernel module.

I guess I need the following package: kmod-mppe ?

The discussion might have continued from here.