Private PPTP VPN connection failed

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ramseslegrand75

Private PPTP VPN connection failed

Post by ramseslegrand75 »

I build a VPN server with pptpd on a Raspberry.
I use this VPN from an other place on a PC(LinuxMint 18.2 Cinnamon 64 bits) and on some others Android devices.
With Android everything run fine. The syslog from the server when I connect and disconnect with Android:

Code: Select all

********************************connection Android
Dec  6 21:26:16 jean-pi pptpd[411]: CTRL: Client xx.xx.xx.xx control connection started
Dec  6 21:26:16 jean-pi pptpd[411]: CTRL: Starting call (launching pppd, opening GRE)
Dec  6 21:26:16 jean-pi pppd[412]: pppd 2.4.5 started by root, uid 0
Dec  6 21:26:16 jean-pi pppd[412]: Using interface ppp0
Dec  6 21:26:16 jean-pi pppd[412]: Connect: ppp0 <--> /dev/pts/0
Dec  6 21:26:16 jean-pi ifplugd(ppp0)[426]: ifplugd 0.28 initializing.
Dec  6 21:26:16 jean-pi ifplugd(ppp0)[426]: Using interface ppp0/00:00:00:00:00:00
Dec  6 21:26:16 jean-pi ifplugd(ppp0)[426]: Using detection mode: IFF_RUNNING
Dec  6 21:26:16 jean-pi ifplugd(ppp0)[426]: Initialization complete, link beat detected.
Dec  6 21:26:16 jean-pi pppd[412]: peer from calling number xx.xx.xx.xx authorized
Dec  6 21:26:16 jean-pi ifplugd(ppp0)[426]: Executing '/etc/ifplugd/ifplugd.action ppp0 up'.
Dec  6 21:26:16 jean-pi ifplugd(ppp0)[426]: client: Ignoring unknown interface ppp0=ppp0.
Dec  6 21:26:16 jean-pi pppd[412]: MPPE 128-bit stateless compression enabled
Dec  6 21:26:16 jean-pi ifplugd(ppp0)[426]: Program executed successfully.
Dec  6 21:26:16 jean-pi pppd[412]: found interface eth0 for proxy arp
Dec  6 21:26:16 jean-pi pppd[412]: local  IP address 192.168.1.101
Dec  6 21:26:16 jean-pi pppd[412]: remote IP address 192.168.1.200
***************************deconnexion Android
Dec  6 21:27:18 jean-pi pptpd[411]: CTRL: EOF or bad error reading ctrl packet length.
Dec  6 21:27:18 jean-pi pptpd[411]: CTRL: couldn't read packet header (exit)
Dec  6 21:27:18 jean-pi pptpd[411]: CTRL: CTRL read failed
Dec  6 21:27:18 jean-pi pptpd[411]: CTRL: Reaping child PPP[412]
Dec  6 21:27:18 jean-pi pppd[412]: Hangup (SIGHUP)
Dec  6 21:27:18 jean-pi pppd[412]: Modem hangup
Dec  6 21:27:18 jean-pi pppd[412]: Connect time 1.1 minutes.
Dec  6 21:27:18 jean-pi pppd[412]: Sent 519151 bytes, received 49830 bytes.
Dec  6 21:27:18 jean-pi pppd[412]: MPPE disabled
Dec  6 21:27:18 jean-pi pppd[412]: Connection terminated.
Dec  6 21:27:18 jean-pi pppd[412]: Exit.
Dec  6 21:27:18 jean-pi pptpd[411]: CTRL: Client xx.xx.xx.xx control connection finished
Dec  6 21:27:19 jean-pi ifplugd(ppp0)[426]: Link beat lost.
Dec  6 21:27:19 jean-pi ifplugd(ppp0)[426]: Exiting.
But with the PC, the network manager tell me I can't connect because the service was stop !
There is syslog from PC:

Code: Select all

Dec  6 21:29:05 jean-X750LN NetworkManager[979]: <info>  [1512592145.5051] audit: op="connection-activate" uuid="d25fd665-62ac-4c00-bc58-2cb1e72d12a3" name="ServerPlace" pid=2378 uid=1000 result="success"
Dec  6 21:29:05 jean-X750LN NetworkManager[979]: <info>  [1512592145.5893] vpn-connection[0x2863770,d25fd665-62ac-4c00-bc58-2cb1e72d12a3,"ServerPlace",0]: Started the VPN service, PID 15610
Dec  6 21:29:05 jean-X750LN NetworkManager[979]: <info>  [1512592145.6844] vpn-connection[0x2863770,d25fd665-62ac-4c00-bc58-2cb1e72d12a3,"ServerPlace",0]: Saw the service appear; activating connection
Dec  6 21:29:20 jean-X750LN NetworkManager[979]: <info>  [1512592160.9980] keyfile: update /etc/NetworkManager/system-connections/ServerPlace (d25fd665-62ac-4c00-bc58-2cb1e72d12a3,"ServerPlace")
Dec  6 21:29:21 jean-X750LN NetworkManager[979]: <info>  [1512592161.0082] vpn-connection[0x2863770,d25fd665-62ac-4c00-bc58-2cb1e72d12a3,"ServerPlace",0]: VPN connection: (ConnectInteractive) reply received
Dec  6 21:29:21 jean-X750LN NetworkManager[979]: ** Message: pppd started with pid 15677
Dec  6 21:29:21 jean-X750LN NetworkManager[979]: <info>  [1512592161.0221] vpn-connection[0x2863770,d25fd665-62ac-4c00-bc58-2cb1e72d12a3,"ServerPlace",0]: VPN plugin: state changed: starting (3)
Dec  6 21:29:21 jean-X750LN pppd[15677]: Plugin /usr/lib/pppd/2.4.7/nm-pptp-pppd-plugin.so loaded.
Dec  6 21:29:21 jean-X750LN NetworkManager[979]: Plugin /usr/lib/pppd/2.4.7/nm-pptp-pppd-plugin.so loaded.
Dec  6 21:29:21 jean-X750LN NetworkManager[979]: ** Message: nm-pptp-ppp-plugin: (plugin_init): initializing
Dec  6 21:29:21 jean-X750LN pppd[15677]: pppd 2.4.7 started by root, uid 0
Dec  6 21:29:21 jean-X750LN NetworkManager[979]: ** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 3 / phase 'serial connection'
Dec  6 21:29:21 jean-X750LN pppd[15677]: Using interface ppp0
Dec  6 21:29:21 jean-X750LN NetworkManager[979]: nm_device_get_device_type: assertion 'NM_IS_DEVICE (self)' failed
Dec  6 21:29:21 jean-X750LN NetworkManager[979]: Using interface ppp0
Dec  6 21:29:21 jean-X750LN NetworkManager[979]: Connect: ppp0 <--> /dev/pts/3
Dec  6 21:29:21 jean-X750LN NetworkManager[979]: ** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 5 / phase 'establish'
Dec  6 21:29:21 jean-X750LN pppd[15677]: Connect: ppp0 <--> /dev/pts/3
Dec  6 21:29:21 jean-X750LN NetworkManager[979]: <info>  [1512592161.0679] manager: (ppp0): new Generic device (/org/freedesktop/NetworkManager/Devices/7)
Dec  6 21:29:21 jean-X750LN pptp[15681]: nm-pptp-service-15610 log[main:pptp.c:350]: The synchronous pptp option is NOT activated
Dec  6 21:29:21 jean-X750LN pptp[15695]: nm-pptp-service-15610 log[ctrlp_rep:pptp_ctrl.c:259]: Sent control packet type is 1 'Start-Control-Connection-Request'
Dec  6 21:29:21 jean-X750LN NetworkManager[979]: <info>  [1512592161.2470] devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Dec  6 21:29:21 jean-X750LN NetworkManager[979]: <info>  [1512592161.2471] device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Dec  6 21:29:21 jean-X750LN pptp[15695]: nm-pptp-service-15610 log[ctrlp_disp:pptp_ctrl.c:781]: Received Start Control Connection Reply
Dec  6 21:29:21 jean-X750LN pptp[15695]: nm-pptp-service-15610 log[ctrlp_disp:pptp_ctrl.c:815]: Client connection established.
Dec  6 21:29:22 jean-X750LN pptp[15695]: nm-pptp-service-15610 log[ctrlp_rep:pptp_ctrl.c:259]: Sent control packet type is 7 'Outgoing-Call-Request'
Dec  6 21:29:22 jean-X750LN pptp[15695]: nm-pptp-service-15610 log[ctrlp_disp:pptp_ctrl.c:900]: Received Outgoing Call Reply.
Dec  6 21:29:22 jean-X750LN pptp[15695]: nm-pptp-service-15610 log[ctrlp_disp:pptp_ctrl.c:939]: Outgoing call established (call ID 62919, peer's call ID 15872).
Dec  6 21:29:22 jean-X750LN kernel: [182939.711306] [UFW BLOCK] IN=wlp2s0 OUT= MAC=54:27:1e:40:ab:7e:68:a3:78:0b:57:34:08:00 SRC=62.16.252.103 DST=192.168.0.47 LEN=61 TOS=0x00 PREC=0x00 TTL=46 ID=64637 DF PROTO=47 
Dec  6 21:29:22 jean-X750LN kernel: [182939.711596] [UFW BLOCK] IN=wlp2s0 OUT= MAC=54:27:1e:40:ab:7e:68:a3:78:0b:57:34:08:00 SRC=62.16.252.103 DST=192.168.0.47 LEN=60 TOS=0x00 PREC=0x00 TTL=46 ID=64638 DF PROTO=47 
Dec  6 21:29:25 jean-X750LN kernel: [182942.534552] [UFW BLOCK] IN=wlp2s0 OUT= MAC=54:27:1e:40:ab:7e:68:a3:78:0b:57:34:08:00 SRC=62.16.252.103 DST=192.168.0.47 LEN=60 TOS=0x00 PREC=0x00 TTL=46 ID=64662 DF PROTO=47 
Dec  6 21:29:25 jean-X750LN kernel: [182942.716042] [UFW BLOCK] IN=wlp2s0 OUT= MAC=54:27:1e:40:ab:7e:68:a3:78:0b:57:34:08:00 SRC=62.16.252.103 DST=192.168.0.47 LEN=61 TOS=0x00 PREC=0x00 TTL=46 ID=64679 DF PROTO=47 
Dec  6 21:29:28 jean-X750LN kernel: [182945.527856] [UFW BLOCK] IN=wlp2s0 OUT= MAC=54:27:1e:40:ab:7e:68:a3:78:0b:57:34:08:00 SRC=62.16.252.103 DST=192.168.0.47 LEN=60 TOS=0x00 PREC=0x00 TTL=46 ID=64765 DF PROTO=47 
Dec  6 21:29:28 jean-X750LN kernel: [182945.712078] [UFW BLOCK] IN=wlp2s0 OUT= MAC=54:27:1e:40:ab:7e:68:a3:78:0b:57:34:08:00 SRC=62.16.252.103 DST=192.168.0.47 LEN=61 TOS=0x00 PREC=0x00 TTL=46 ID=64771 DF PROTO=47 
Dec  6 21:29:31 jean-X750LN kernel: [182948.531173] [UFW BLOCK] IN=wlp2s0 OUT= MAC=54:27:1e:40:ab:7e:68:a3:78:0b:57:34:08:00 SRC=62.16.252.103 DST=192.168.0.47 LEN=60 TOS=0x00 PREC=0x00 TTL=46 ID=64878 DF PROTO=47 
Dec  6 21:29:31 jean-X750LN kernel: [182948.713877] [UFW BLOCK] IN=wlp2s0 OUT= MAC=54:27:1e:40:ab:7e:68:a3:78:0b:57:34:08:00 SRC=62.16.252.103 DST=192.168.0.47 LEN=61 TOS=0x00 PREC=0x00 TTL=46 ID=64896 DF PROTO=47 
Dec  6 21:29:34 jean-X750LN kernel: [182951.534818] [UFW BLOCK] IN=wlp2s0 OUT= MAC=54:27:1e:40:ab:7e:68:a3:78:0b:57:34:08:00 SRC=62.16.252.103 DST=192.168.0.47 LEN=60 TOS=0x00 PREC=0x00 TTL=46 ID=65025 DF PROTO=47 
Dec  6 21:29:34 jean-X750LN kernel: [182951.712821] [UFW BLOCK] IN=wlp2s0 OUT= MAC=54:27:1e:40:ab:7e:68:a3:78:0b:57:34:08:00 SRC=62.16.252.103 DST=192.168.0.47 LEN=61 TOS=0x00 PREC=0x00 TTL=46 ID=65028 DF PROTO=47 
Dec  6 21:29:43 jean-X750LN kernel: [182960.543115] [UFW BLOCK] IN=wlp2s0 OUT= MAC=54:27:1e:40:ab:7e:68:a3:78:0b:57:34:08:00 SRC=62.16.252.103 DST=192.168.0.47 LEN=60 TOS=0x00 PREC=0x00 TTL=46 ID=108 DF PROTO=47 
Dec  6 21:29:52 jean-X750LN pppd[15677]: LCP: timeout sending Config-Requests
Dec  6 21:29:52 jean-X750LN NetworkManager[979]: LCP: timeout sending Config-Requests
Dec  6 21:29:52 jean-X750LN NetworkManager[979]: ** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 11 / phase 'disconnect'
Dec  6 21:29:52 jean-X750LN NetworkManager[979]: Connection terminated.
Dec  6 21:29:52 jean-X750LN pppd[15677]: Connection terminated.
Dec  6 21:29:52 jean-X750LN NetworkManager[979]: ** Message: Terminated ppp daemon with PID 15677.
Dec  6 21:29:52 jean-X750LN NetworkManager[979]: <error> [1512592192.0993] platform-linux: do-change-link[7]: failure changing link: failure 19 (Aucun périphérique de ce type)
Dec  6 21:29:52 jean-X750LN NetworkManager[979]: <warn>  [1512592192.0994] device (ppp0): failed to disable userspace IPv6LL address handling
Dec  6 21:29:52 jean-X750LN NetworkManager[979]: <info>  [1512592192.1016] vpn-connection[0x2863770,d25fd665-62ac-4c00-bc58-2cb1e72d12a3,"ServerPlace",0]: VPN service disappeared
Dec  6 21:29:52 jean-X750LN NetworkManager[979]: <info>  [1512592192.1029] devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Dec  6 21:29:52 jean-X750LN NetworkManager[979]: ** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 1 / phase 'dead'
Dec  6 21:29:52 jean-X750LN pptp[15681]: nm-pptp-service-15610 warn[decaps_hdlc:pptp_gre.c:220]: short read (-1): Input/output error
Dec  6 21:29:52 jean-X750LN pptp[15681]: nm-pptp-service-15610 warn[decaps_hdlc:pptp_gre.c:232]: pppd may have shutdown, see pppd log
Dec  6 21:29:52 jean-X750LN pptp[15695]: nm-pptp-service-15610 log[callmgr_main:pptp_callmgr.c:245]: Closing connection (unhandled)
Dec  6 21:29:52 jean-X750LN pptp[15695]: nm-pptp-service-15610 log[ctrlp_rep:pptp_ctrl.c:259]: Sent control packet type is 12 'Call-Clear-Request'
Dec  6 21:29:52 jean-X750LN pptp[15695]: nm-pptp-service-15610 log[call_callback:pptp_callmgr.c:84]: Closing connection (call state)
Dec  6 21:29:52 jean-X750LN pppd[15677]: Terminating on signal 15
Dec  6 21:29:52 jean-X750LN pppd[15677]: Child process /usr/sbin/pptp yy.yy.yy.yy--nolaunchpppd --loglevel 0 --logstring nm-pptp-service-15610 (pid 15680) terminated with signal 15
Dec  6 21:29:52 jean-X750LN NetworkManager[979]: Terminating on signal 15
Dec  6 21:29:52 jean-X750LN NetworkManager[979]: Child process /usr/sbin/pptp yy.yy.yy.yy --nolaunchpppd --loglevel 0 --logstring nm-pptp-service-15610 (pid 15680) terminated with signal 15
Dec  6 21:29:52 jean-X750LN NetworkManager[979]: Modem hangup
Dec  6 21:29:52 jean-X750LN NetworkManager[979]: ** Message: nm-pptp-ppp-plugin: (nm_exit_notify): cleaning up
Dec  6 21:29:52 jean-X750LN pppd[15677]: Modem hangup
Dec  6 21:29:52 jean-X750LN pppd[15677]: Exit.
An now from the server on the same time:

Code: Select all

****************************** connexion PC
Dec  6 21:29:21 jean-pi pptpd[527]: CTRL: Client xx.xx.xx.xx control connection started
Dec  6 21:29:22 jean-pi pptpd[527]: CTRL: Starting call (launching pppd, opening GRE)
Dec  6 21:29:22 jean-pi pppd[528]: pppd 2.4.5 started by root, uid 0
Dec  6 21:29:22 jean-pi pppd[528]: Using interface ppp0
Dec  6 21:29:22 jean-pi pppd[528]: Connect: ppp0 <--> /dev/pts/0
Dec  6 21:29:22 jean-pi ifplugd(ppp0)[542]: ifplugd 0.28 initializing.
Dec  6 21:29:22 jean-pi ifplugd(ppp0)[542]: Using interface ppp0/00:00:00:00:00:00
Dec  6 21:29:22 jean-pi ifplugd(ppp0)[542]: Using detection mode: IFF_RUNNING
Dec  6 21:29:22 jean-pi ifplugd(ppp0)[542]: Initialization complete, link beat detected.
Dec  6 21:29:22 jean-pi ifplugd(ppp0)[542]: Executing '/etc/ifplugd/ifplugd.action ppp0 up'.
Dec  6 21:29:22 jean-pi ifplugd(ppp0)[542]: client: Ignoring unknown interface ppp0=ppp0.
Dec  6 21:29:22 jean-pi ifplugd(ppp0)[542]: Program executed successfully.
Dec  6 21:29:52 jean-pi pptpd[527]: CTRL: Reaping child PPP[528]
Dec  6 21:29:52 jean-pi pppd[528]: Hangup (SIGHUP)
Dec  6 21:29:52 jean-pi pppd[528]: Modem hangup
Dec  6 21:29:52 jean-pi pppd[528]: Connection terminated.
Dec  6 21:29:52 jean-pi pppd[528]: Exit.
Dec  6 21:29:52 jean-pi pptpd[527]: CTRL: Client xx.xx.xx.xx control connection finished
Dec  6 21:29:52 jean-pi ifplugd(ppp0)[542]: Link beat lost.
Dec  6 21:29:52 jean-pi ifplugd(ppp0)[542]: Exiting.
Of course my question is: how to connect the PC, is something wrong in the parameters inside networkmanager ?
Something else: everything worked with LinuxMint 17 !
Thanks for help
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Locked

Return to “Networking”