I posted this question on askubuntu.com but maybe here is more suitable. I am using PPTP VPN. It used to work fine but now it does not connect. After googling and trying some solutions:

1) Creating a new file netfilter.conf

2) uninstalling and reinstalling Network Manager PPTP.

3) recreating VPN connection (both ways, via GUI and as root in /etc/ppp)

4) Following the instructions on https://wiki.archlinux.org/index.php/PPTP_Client#Connect

I was able to connect to VPN for 0.1 minutes, after which it crashes. The current configuration is the following:

File /etc/ppp/options

# Lock the port
lock
# We don't need the tunnel server to authenticate itself
noauth
# Turn off compression protocols we know won't be used
nobsdcomp
nodeflate
# We won't do PAP, EAP, CHAP, or MSCHAP, but we will accept MSCHAP-V2
# (you may need to remove these refusals if the server is not using MPPE)
refuse-pap
refuse-eap
refuse-chap
refuse-mschap

New added file netfilter.conf on /etc/modules-load.d

nf_nat_pptp
nf_conntrack_pptp
nf_conntrack_proto_gre

chap-secrets file on /etc/ppp

# Secrets for authentication using CHAP
# client    server  secret          IP addresses

# added by pptpsetup for VPN_NAME_CONNECTION
 username@account PPTP "PASSWORD" *

This is the output of

sudo tail -f /var/log/syslog
NetworkManager[915]: <info>  [1531609680.1020] audit: op="connection-activate" uuid="xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx" name="VPN_NAME_CONNECTION" pid=xxxx uid=1000 result="success"
NetworkManager[915]: <info>  [1531609680.1170] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",0]: Started the VPN service, PID yyyy
NetworkManager[915]: <info>  [1531609680.1409] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",0]: Saw the service appear; activating connection
NetworkManager[915]: <info>  [1531609680.3915] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",0]: VPN connection: (ConnectInteractive) reply received
NetworkManager[915]: ** Message: pppd started with pid zzzz
NetworkManager[915]: <info>  [1531609680.4471] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",0]: VPN plugin: state changed: starting (3)
pppd[2400]: Plugin /usr/lib/pppd/2.4.7/nm-pptp-pppd-plugin.so loaded.
NetworkManager[915]: Plugin /usr/lib/pppd/2.4.7/nm-pptp-pppd-plugin.so loaded.
NetworkManager[915]: ** Message: nm-pptp-ppp-plugin: (plugin_init): initializing
pppd[2400]: pppd 2.4.7 started by root, uid 0
NetworkManager[915]: ** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 3 / phase 'serial connection'
NetworkManager[915]: nm_device_get_device_type: assertion 'NM_IS_DEVICE (self)' failed
pppd[2400]: Using interface ppp0
NetworkManager[915]: Using interface ppp0
pppd[2400]: Connect: ppp0 <--> /dev/pts/2
NetworkManager[915]: Connect: ppp0 <--> /dev/pts/2
NetworkManager[915]: ** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 5 / phase 'establish'
NetworkManager[915]: <info>  [1531609680.4870] manager: (ppp0): new Generic device (/org/freedesktop/NetworkManager/Devices/4)
NetworkManager[915]: <info>  [1531609680.5089] devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
NetworkManager[915]: <info>  [1531609680.5096] device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
pptp[2412]: nm-pptp-service-2392 log[main:pptp.c:350]: The synchronous pptp option is NOT activated
pptp[2418]: nm-pptp-service-2392 log[ctrlp_rep:pptp_ctrl.c:259]: Sent control packet type is 1 'Start-Control-Connection-Request'
pptp[2418]: nm-pptp-service-2392 log[ctrlp_disp:pptp_ctrl.c:781]: Received Start Control Connection Reply
pptp[2418]: nm-pptp-service-2392 log[ctrlp_disp:pptp_ctrl.c:815]: Client connection established.
pptp[2418]: nm-pptp-service-2392 log[ctrlp_rep:pptp_ctrl.c:259]: Sent control packet type is 7 'Outgoing-Call-Request'
pptp[2418]: nm-pptp-service-2392 log[ctrlp_disp:pptp_ctrl.c:900]: Received Outgoing Call Reply.
pptp[2418]: nm-pptp-service-2392 log[ctrlp_disp:pptp_ctrl.c:939]: Outgoing call established (call ID 56368, peer's call ID 13116).
NetworkManager[915]: ** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 6 / phase 'authenticate'
NetworkManager[915]: ** Message: nm-pptp-ppp-plugin: (get_credentials): passwd-hook, requesting credentials...
NetworkManager[915]: ** Message: nm-pptp-ppp-plugin: (get_credentials): got credentials from NetworkManager-pptp
pppd[2400]: CHAP authentication succeeded
NetworkManager[915]: CHAP authentication succeeded
NetworkManager[915]: ** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 8 / phase 'network'
pppd[2400]: local  IP address XXX.XXX.XXX.X
NetworkManager[915]: local  IP address XXX.XXX.XXX.X
NetworkManager[915]: remote IP address XXX.XXX.XXX.X
NetworkManager[915]: primary   DNS address X.X.X.X
NetworkManager[915]: secondary DNS address XXX.XXX.X.XX
NetworkManager[915]: ** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 9 / phase 'running'
NetworkManager[915]: ** Message: nm-pptp-ppp-plugin: (nm_ip_up): ip-up event
NetworkManager[915]: ** Message: nm-pptp-ppp-plugin: (nm_ip_up): sending Ip4Config to NetworkManager-pptp...
pppd[2400]: remote IP address XXX.XXX.XXX.X
NetworkManager[915]: ** Message: PPTP service (IP Config Get) reply received.
pppd[2400]: primary   DNS address X.X.X.X
pppd[2400]: secondary DNS address XXX.XXX.X.XX
NetworkManager[915]: <info>  [1531609684.7175] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",0]: VPN connection: (IP4 Config Get) reply received from old-style plugin
NetworkManager[915]: <info>  [1531609684.7185] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",5:(ppp0)]: Data: VPN Gateway: XXX.XXX.X.24
NetworkManager[915]: <info>  [1531609684.7186] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",5:(ppp0)]: Data: Tunnel Device: "ppp0"
NetworkManager[915]: <info>  [1531609684.7186] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",5:(ppp0)]: Data: IPv4 configuration:
NetworkManager[915]: <info>  [1531609684.7186] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",5:(ppp0)]: Data:   Internal Address: XXX.XXX.XXX.X
NetworkManager[915]: <info>  [1531609684.7187] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",5:(ppp0)]: Data:   Internal Prefix: 32
NetworkManager[915]: <info>  [1531609684.7187] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",5:(ppp0)]: Data:   Internal Point-to-Point Address: XXX.XXX.X31.3
NetworkManager[915]: <info>  [1531609684.7187] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",5:(ppp0)]: Data:   Maximum Segment Size (MSS): 0
NetworkManager[915]: <info>  [1531609684.7188] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",5:(ppp0)]: Data:   Forbid Default Route: no
NetworkManager[915]: <info>  [1531609684.7188] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",5:(ppp0)]: Data:   Internal DNS: X.X.X.X
NetworkManager[915]: <info>  [1531609684.7188] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",5:(ppp0)]: Data:   Internal DNS: XXX.XXX.X.22
NetworkManager[915]: <info>  [1531609684.7188] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",5:(ppp0)]: Data:   DNS Domain: '(none)'
NetworkManager[915]: <info>  [1531609684.7189] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",5:(ppp0)]: Data: No IPv6 configuration
NetworkManager[915]: <info>  [1531609684.7190] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",5:(ppp0)]: VPN plugin: state changed: started (4)
NetworkManager[915]: <info>  [1531609684.7236] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",5:(ppp0)]: VPN connection: (IP Config Get) complete
NetworkManager[915]: <info>  [1531609684.7886] manager: NetworkManager state is now CONNECTED_LOCAL
NetworkManager[915]: <info>  [1531609684.7889] manager: NetworkManager state is now CONNECTED_GLOBAL
NetworkManager[915]: <info>  [1531609684.7894] dns-mgr: Writing DNS information to /sbin/resolvconf
whoopsie[1154]: [01:08:04] offline
dnsmasq[1416]: se establecen los servidores superiores desde DBus
dnsmasq[1416]: se usa el servidor de nombres X.X.X.X#53(vía ppp0)
dnsmasq[1416]: se usa el servidor de nombres X.X.X.X#53 para dominio 6.131.163.147.in-addr.arpa
dnsmasq[1416]: se usa el servidor de nombres XXX.XXX.X.22#53 para dominio 6.131.163.147.in-addr.arpa
dnsmasq[1416]: se usa el servidor de nombres XXX.XXX.X.22#53(vía ppp0)
dnsmasq[1416]: se usa el servidor de nombres 192.XXX.X.1#53(vía wlp12s0)
dbus[883]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
systemd[1]: Starting Network Manager Script Dispatcher Service...
whoopsie[1154]: [01:08:04] The default IPv4 route is: /org/freedesktop/NetworkManager/ActiveConnection/2
whoopsie[1154]: [01:08:04] Not a paid data plan: /org/freedesktop/NetworkManager/ActiveConnection/2
whoopsie[1154]: [01:08:04] Found usable connection: /org/freedesktop/NetworkManager/ActiveConnection/2
whoopsie[1154]: [01:08:04] online
dbus[883]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
systemd[1]: Started Network Manager Script Dispatcher Service.
nm-dispatcher: req:1 'vpn-up' [ppp0]: new request (1 scripts)
nm-dispatcher: req:1 'vpn-up' [ppp0]: start running ordered scripts...











pppd[2400]: CCP terminated by peer
NetworkManager[915]: CCP terminated by peer
NetworkManager[915]: Compression disabled by peer.
NetworkManager[915]: IPCP terminated by peer
NetworkManager[915]: ** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 8 / phase 'network'
NetworkManager[915]: Connect time 0.1 minutes.
NetworkManager[915]: Sent 187 bytes, received 359 bytes.
pppd[2400]: Compression disabled by peer.
NetworkManager[915]: <error> [1531609687.6456] platform-linux: do-add-ip4-route[5: 0.0.0.0/0 50]: failure 100 (La red no está activa)
pppd[2400]: IPCP terminated by peer
NetworkManager[915]: <warn>  [1531609687.6457] default-route: failed to add default route 0.0.0.0/0 via 0.0.0.0 dev 5 metric 50 mss 0 src vpn with effective metric 50
pppd[2400]: Connect time 0.1 minutes.
pppd[2400]: Sent 187 bytes, received 359 bytes.
pppd[2400]: LCP terminated by peer
NetworkManager[915]: LCP terminated by peer
NetworkManager[915]: ** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 5 / phase 'establish'
pptp[2418]: nm-pptp-service-2392 log[ctrlp_disp:pptp_ctrl.c:830]: Received Stop Control Connection Request.
pptp[2418]: nm-pptp-service-2392 log[ctrlp_rep:pptp_ctrl.c:259]: Sent control packet type is 4 'Stop-Control-Connection-Reply'
NetworkManager[915]: Modem hangup
NetworkManager[915]: ** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 11 / phase 'disconnect'
NetworkManager[915]: Connection terminated.
pptp[2418]: nm-pptp-service-2392 log[callmgr_main:pptp_callmgr.c:269]: Closing connection (shutdown)
NetworkManager[915]: ** Message: Terminated ppp daemon with PID 2400.
pptp[2418]: nm-pptp-service-2392 log[ctrlp_rep:pptp_ctrl.c:259]: Sent control packet type is 12 'Call-Clear-Request'
pptp[2418]: nm-pptp-service-2392 log[ctrlp_disp:pptp_ctrl.c:975]: Call disconnect notification received (call id 56368)
pptp[2418]: nm-pptp-service-2392 log[call_callback:pptp_callmgr.c:84]: Closing connection (call state)
pppd[2400]: Modem hangup
pppd[2400]: Connection terminated.
NetworkManager[915]: ** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 1 / phase 'dead'
NetworkManager[915]: ** Message: nm-pptp-ppp-plugin: (nm_exit_notify): cleaning up
pppd[2400]: Exit.
NetworkManager[915]: <error> [1531609687.8812] platform-linux: do-change-link[5]: failure changing link: failure 19 (No existe el dispositivo)
NetworkManager[915]: <warn>  [1531609687.8812] device (ppp0): failed to disable userspace IPv6LL address handling
NetworkManager[915]: <info>  [1531609687.8815] vpn-connection[0x8afa298,xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxx,"VPN_NAME_CONNECTION",5:(ppp0)]: VPN service disappeared
NetworkManager[915]: <info>  [1531609687.8816] manager: NetworkManager state is now CONNECTED_LOCAL
whoopsie[1154]: [01:08:07] offline
NetworkManager[915]: <info>  [1531609687.9865] manager: NetworkManager state is now CONNECTED_GLOBAL
NetworkManager[915]: <info>  [1531609687.9868] dns-mgr: Writing DNS information to /sbin/resolvconf
dnsmasq[1416]: se establecen los servidores superiores desde DBus
dnsmasq[1416]: se usa el servidor de nombres 192.XXX.XX.1#53(vía wlp12s0)
NetworkManager[915]: <error> [1531609688.0022] platform-linux: do-change-link[5]: failure changing link: failure 19 (No existe el dispositivo)
nm-dispatcher: req:2 'vpn-down' [ppp0]: new request (1 scripts)
nm-dispatcher: req:2 'vpn-down' [ppp0]: start running ordered scripts...
NetworkManager[915]: <info>  [1531609688.0191] devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
whoopsie[1154]: [01:08:08] Could not determine if /org/freedesktop/NetworkManager/ActiveConnection/2 is a default route:
whoopsie[1154]: [01:08:08] GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No existe tal interfaz «org.freedesktop.DBus.Properties» en la ruta del objeto /org/freedesktop/NetworkManager/ActiveConnection/2
whoopsie[1154]: [01:08:08] The default IPv4 route is: /org/freedesktop/NetworkManager/ActiveConnection/0
whoopsie[1154]: [01:08:08] Not a paid data plan: /org/freedesktop/NetworkManager/ActiveConnection/0
whoopsie[1154]: [01:08:08] Found usable connection: /org/freedesktop/NetworkManager/ActiveConnection/0
whoopsie[1154]: [01:08:08] online

Here is a summary of the syslog:

NetworkManager[915]: nm_device_get_device_type: assertion 'NM_IS_DEVICE (self)' failed
(...)
pptp[2412]: nm-pptp-service-2392 log[main:pptp.c:350]: The synchronous pptp option is NOT activated
(...)
pppd[2400]: CHAP authentication succeeded
NetworkManager[915]: CHAP authentication succeeded
(...)
nm-dispatcher: req:1 'vpn-up' [ppp0]: new request (1 scripts)
nm-dispatcher: req:1 'vpn-up' [ppp0]: start running ordered scripts...

(Here VPN crashes)

pppd[2400]: CCP terminated by peer
NetworkManager[915]: CCP terminated by peer
NetworkManager[915]: Compression disabled by peer.
NetworkManager[915]: IPCP terminated by peer
NetworkManager[915]: ** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 8 / phase 'network'
NetworkManager[915]: Connect time 0.1 minutes.
(...)

The system is Ubuntu 16.04 LTS. Does any had this kind of problem before, or have any clues to solve this problem?

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.