PPTP VPN connection

I am running Leap 15.1 with KDE and Network Manager. I am trying to create a PPTP VPN connection to my office. I created the connection with nm-connection-editor. Any attempt to connect on the account times out. A check of the logs shows an initial connection but no attempt to authenticate the user. A check of /etc/ppp/chap-secrets shows no account information was written to the file.

Can anyone help me get this working?

Thanks.

Since you’re using NetworkManager, the VPN config and associated credentials are contained in a config file located in the /etc/NetworkManager/system-connections/ directory so /etc/ppp/chap-secrets is not relevant here.

Open a terminal and run

sudo journalctl -fu NetworkManager

then attempt to activate the VPN. Observe/capture the output.

BTW, do you have a firewall active? If so read the following post…
https://forums.opensuse.org/showthread.php/536915-Unable-o-connect-using-openVPN-PPTP-to-connect-to-VPN?p=2909620#post2909620

I am not running a firewall. The userid and password are stored in the file at etc/NetworkManager/system-connections/OESC_VPN but I see no attempt at authentication in the logs.


Apr 05 12:14:08 linux-nogg.suse pppd[17173]: Connect: ppp0 <--> /dev/pts/4
Apr 05 12:14:08 linux-nogg.suse NetworkManager[1119]: Connect: ppp0 <--> /dev/pts/4
Apr 05 12:14:08 linux-nogg.suse pptp[17176]: nm-pptp-service-17169 log[main:pptp.c:333]: The synchronous pptp option is NOT activated
Apr 05 12:14:08 linux-nogg.suse NetworkManager[1119]: Error: either "to" is duplicate, or "uid" is a garbage.
Apr 05 12:14:08 linux-nogg.suse pptp[17187]: nm-pptp-service-17169 log[ctrlp_rep:pptp_ctrl.c:258]: Sent control packet type is 1 'Start-Control-Connection-Request'
Apr 05 12:14:08 linux-nogg.suse pptp[17187]: nm-pptp-service-17169 log[ctrlp_disp:pptp_ctrl.c:758]: Received Start Control Connection Reply
Apr 05 12:14:08 linux-nogg.suse pptp[17187]: nm-pptp-service-17169 log[ctrlp_disp:pptp_ctrl.c:792]: Client connection established.
Apr 05 12:14:09 linux-nogg.suse pptp[17187]: nm-pptp-service-17169 log[ctrlp_rep:pptp_ctrl.c:258]: Sent control packet type is 7 'Outgoing-Call-Request'
Apr 05 12:14:09 linux-nogg.suse pptp[17187]: nm-pptp-service-17169 log[ctrlp_disp:pptp_ctrl.c:877]: Received Outgoing Call Reply.
Apr 05 12:14:09 linux-nogg.suse pptp[17187]: nm-pptp-service-17169 log[ctrlp_disp:pptp_ctrl.c:916]: Outgoing call established (call ID 0, peer's call ID 5387).
Apr 05 12:15:08 linux-nogg.suse pptp[17187]: nm-pptp-service-17169 log[logecho:pptp_ctrl.c:696]: Echo Request received.
Apr 05 12:15:08 linux-nogg.suse pptp[17187]: nm-pptp-service-17169 log[ctrlp_rep:pptp_ctrl.c:258]: Sent control packet type is 6 'Echo-Reply'
Apr 05 12:15:08 linux-nogg.suse NetworkManager[1119]: <warn>  [1586106908.9439] vpn-connection[0x55a8097aa400,3a5f3e44-d233-415c-992b-8daf85009575,"OESC_VPN",0]: VPN connection: connect timeout exceeded.
Apr 05 12:15:08 linux-nogg.suse nm-pptp-service[17169]: Connect timer expired, disconnecting.


Okay, thanks for submitting the log. I don’t generally use PPTP any longer, for security reasons, and some cellular providers block it anyway, making it unviable. However, I have a remote gateway router configured to serve both PPTP and L2TP VPN clients. In an effort to assist here, I reverted to attempt a PPTP VPN connection and I now get the same connection issue as you report, so maybe a regression with NetworkManager PPTP plugin or similar perhaps. I haven’t had time to investigate further.

Hmmm…further testing (I forgot I had firewalld active for some other testing)… now working as expected for me (openSUSE 15.1, NetworkManager version 1.10.6)…

My log for reference…

pr 06 12:39:04 linux-4k1z NetworkManager[1306]: <info>  [1586133544.0817] audit: op="statistics" arg="refresh-rate-ms" pid=2067 uid=1000 result="success"
Apr 06 12:39:07 linux-4k1z NetworkManager[1306]: <info>  [1586133547.2037] audit: op="connection-activate" uuid="f052500e-251a-4667-9935-160e4bb69c68" name="SKT VPN (PPTP)" pid=2067 uid=1000 result="success"
Apr 06 12:39:07 linux-4k1z NetworkManager[1306]: <info>  [1586133547.2190] vpn-connection[0x55e29c4aa180,f052500e-251a-4667-9935-160e4bb69c68,"SKT VPN (PPTP)",0]: Started the VPN service, PID 7724
Apr 06 12:39:07 linux-4k1z NetworkManager[1306]: <info>  [1586133547.2459] vpn-connection[0x55e29c4aa180,f052500e-251a-4667-9935-160e4bb69c68,"SKT VPN (PPTP)",0]: Saw the service appear; activating connection
Apr 06 12:39:07 linux-4k1z NetworkManager[1306]: <info>  [1586133547.3085] vpn-connection[0x55e29c4aa180,f052500e-251a-4667-9935-160e4bb69c68,"SKT VPN (PPTP)",0]: VPN plugin: state changed: starting (3)
Apr 06 12:39:07 linux-4k1z pppd[7734]: Plugin /usr/lib64/pppd/2.4.7/nm-pptp-pppd-plugin.so loaded.
Apr 06 12:39:07 linux-4k1z NetworkManager[1306]: Plugin /usr/lib64/pppd/2.4.7/nm-pptp-pppd-plugin.so loaded.
Apr 06 12:39:07 linux-4k1z pppd[7734]: pppd 2.4.7 started by root, uid 0
Apr 06 12:39:07 linux-4k1z pppd[7734]: Using interface ppp0
Apr 06 12:39:07 linux-4k1z NetworkManager[1306]: <info>  [1586133547.3319] manager: (ppp0): new Ppp device (/org/freedesktop/NetworkManager/Devices/11)
Apr 06 12:39:07 linux-4k1z NetworkManager[1306]: Using interface ppp0
Apr 06 12:39:07 linux-4k1z NetworkManager[1306]: Connect: ppp0 <--> /dev/pts/1
Apr 06 12:39:07 linux-4k1z pppd[7734]: Connect: ppp0 <--> /dev/pts/1
Apr 06 12:39:07 linux-4k1z pptp[7737]: nm-pptp-service-7724 log[main:pptp.c:333]: The synchronous pptp option is NOT activated
Apr 06 12:39:07 linux-4k1z NetworkManager[1306]: Error: either "to" is duplicate, or "uid" is a garbage.
Apr 06 12:39:07 linux-4k1z pptp[7747]: nm-pptp-service-7724 log[ctrlp_rep:pptp_ctrl.c:258]: Sent control packet type is 1 'Start-Control-Connection-Request'
Apr 06 12:39:07 linux-4k1z pptp[7747]: nm-pptp-service-7724 log[ctrlp_disp:pptp_ctrl.c:758]: Received Start Control Connection Reply
Apr 06 12:39:07 linux-4k1z pptp[7747]: nm-pptp-service-7724 log[ctrlp_disp:pptp_ctrl.c:792]: Client connection established.
Apr 06 12:39:08 linux-4k1z pptp[7747]: nm-pptp-service-7724 log[ctrlp_rep:pptp_ctrl.c:258]: Sent control packet type is 7 'Outgoing-Call-Request'
Apr 06 12:39:08 linux-4k1z pptp[7747]: nm-pptp-service-7724 log[ctrlp_disp:pptp_ctrl.c:877]: Received Outgoing Call Reply.
Apr 06 12:39:08 linux-4k1z pptp[7747]: nm-pptp-service-7724 log[ctrlp_disp:pptp_ctrl.c:916]: Outgoing call established (call ID 0, peer's call ID 1470).
Apr 06 12:39:08 linux-4k1z pppd[7734]: CHAP authentication succeeded
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: CHAP authentication succeeded
Apr 06 12:39:08 linux-4k1z pppd[7734]: CCP terminated by peer (No compression negotiated)
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: CCP terminated by peer (No compression negotiated)
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: Compression disabled by peer.
Apr 06 12:39:08 linux-4k1z pppd[7734]: Compression disabled by peer.
Apr 06 12:39:08 linux-4k1z pppd[7734]: local  IP address 192.168.3.194
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: <info>  [1586133548.4685] device (ppp0): state change: unmanaged -> unavailable (reason 'connection-assumed', sys-iface-state: 'external')
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: local  IP address 192.168.3.194
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: remote IP address 192.168.3.254
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: primary   DNS address 172.31.200.6
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: secondary DNS address 208.67.222.222
Apr 06 12:39:08 linux-4k1z pppd[7734]: remote IP address 192.168.3.254
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: <info>  [1586133548.4690] device (ppp0): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'external')
Apr 06 12:39:08 linux-4k1z pppd[7734]: primary   DNS address 172.31.200.6
Apr 06 12:39:08 linux-4k1z pppd[7734]: secondary DNS address 208.67.222.222
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: <info>  [1586133548.4781] vpn-connection[0x55e29c4aa180,f052500e-251a-4667-9935-160e4bb69c68,"SKT VPN (PPTP)",0]: VPN connection: (IP4 Config Get) reply received from old-style plugin
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: <info>  [1586133548.4786] vpn-connection[0x55e29c4aa180,f052500e-251a-4667-9935-160e4bb69c68,"SKT VPN (PPTP)",12:(ppp0)]: Data: VPN Gateway: 124.157.82.246
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: <info>  [1586133548.4786] vpn-connection[0x55e29c4aa180,f052500e-251a-4667-9935-160e4bb69c68,"SKT VPN (PPTP)",12:(ppp0)]: Data: Tunnel Device: "ppp0"
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: <info>  [1586133548.4786] vpn-connection[0x55e29c4aa180,f052500e-251a-4667-9935-160e4bb69c68,"SKT VPN (PPTP)",12:(ppp0)]: Data: IPv4 configuration:
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: <info>  [1586133548.4786] vpn-connection[0x55e29c4aa180,f052500e-251a-4667-9935-160e4bb69c68,"SKT VPN (PPTP)",12:(ppp0)]: Data:   Internal Address: 192.168.3.194
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: <info>  [1586133548.4786] vpn-connection[0x55e29c4aa180,f052500e-251a-4667-9935-160e4bb69c68,"SKT VPN (PPTP)",12:(ppp0)]: Data:   Internal Prefix: 32
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: <info>  [1586133548.4786] vpn-connection[0x55e29c4aa180,f052500e-251a-4667-9935-160e4bb69c68,"SKT VPN (PPTP)",12:(ppp0)]: Data:   Internal Point-to-Point Address: 192.168.3.254
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: <info>  [1586133548.4787] vpn-connection[0x55e29c4aa180,f052500e-251a-4667-9935-160e4bb69c68,"SKT VPN (PPTP)",12:(ppp0)]: Data:   Static Route: 0.0.0.0/0   Next Hop: 0.0.0.0
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: <info>  [1586133548.4787] vpn-connection[0x55e29c4aa180,f052500e-251a-4667-9935-160e4bb69c68,"SKT VPN (PPTP)",12:(ppp0)]: Data:   Static Route: 192.168.3.254/32   Next Hop: 0.0.0.0
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: <info>  [1586133548.4787] vpn-connection[0x55e29c4aa180,f052500e-251a-4667-9935-160e4bb69c68,"SKT VPN (PPTP)",12:(ppp0)]: Data:   Internal DNS: 172.31.200.6
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: <info>  [1586133548.4787] vpn-connection[0x55e29c4aa180,f052500e-251a-4667-9935-160e4bb69c68,"SKT VPN (PPTP)",12:(ppp0)]: Data:   Internal DNS: 208.67.222.222
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: <info>  [1586133548.4787] vpn-connection[0x55e29c4aa180,f052500e-251a-4667-9935-160e4bb69c68,"SKT VPN (PPTP)",12:(ppp0)]: Data:   DNS Domain: '(none)'
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: <info>  [1586133548.4787] vpn-connection[0x55e29c4aa180,f052500e-251a-4667-9935-160e4bb69c68,"SKT VPN (PPTP)",12:(ppp0)]: Data: No IPv6 configuration
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: <info>  [1586133548.4821] vpn-connection[0x55e29c4aa180,f052500e-251a-4667-9935-160e4bb69c68,"SKT VPN (PPTP)",12:(ppp0)]: VPN connection: (IP Config Get) complete
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: nisdomainname: you must be root to change the domain name
Apr 06 12:39:08 linux-4k1z NetworkManager[1306]: <info>  [1586133548.8803] vpn-connection[0x55e29c4aa180,f052500e-251a-4667-9935-160e4bb69c68,"SKT VPN (PPTP)",12:(ppp0)]: VPN plugin: state changed: started (4)
Apr 06 12:39:09 linux-4k1z ip-up.d/10-netconfig[7755]: nisdomainname: you must be root to change the domain name
Apr 06 12:39:09 linux-4k1z ip-up.d/10-netconfig[7755]: nisdomainname: you must be root to change the domain name
Apr 06 12:39:09 linux-4k1z pppd[7734]: Script /etc/ppp/ip-up finished (pid 7751), status = 0x0
Apr 06 12:39:09 linux-4k1z NetworkManager[1306]: Script /etc/ppp/ip-up finished (pid 7751), status = 0x0
Apr 06 12:39:10 linux-4k1z NetworkManager[1306]: <info>  [1586133550.5754] audit: op="statistics" arg="refresh-rate-ms" pid=2067 uid=1000 result="success"

Would you mind confirming version numbers? I have NetworkManager 1.22.10-1.1-x.86_64 and NetworkManager_pptp 1.2.8-2.1-x86_64.

Yes, of course…

~> zypper se -si NetworkManager
Loading repository data...

Reading installed packages...

S  | Name                             | Type    | Version            | Arch   | Repository               
---+----------------------------------+---------+--------------------+--------+--------------------------
i  | NetworkManager                   | package | 1.10.6-lp151.8.1   | x86_64 | openSUSE-Leap-15.1-Oss
i  | NetworkManager-pptp             | package | 1.2.4-lp151.2.3     | x86_64 | openSUSE-Leap-15.1-Oss