I contacted Linux a couple of weeks ago, so maybe I don’t know anything else. The situation is this: in a virtual machine, Centos 7
, a VPN
connection via pptp is not established. According to the logs, I could understand / fix something, something - no. Below are the settings and logs that I made:
chap-secrets
# client server secret IP addresses mylogin * mypassword *
/ etc / ppp / peers / myvpn
pty "pptp vpn.campus.kharkov.ua --nolaunchpppd --debug" user mylogin password "mypassword" #remotename pptp file /etc/ppp/options.pptp lock nodeflate nobsdcomp noauth nopcomp noaccomp
Options.pptp
+ ################################################# ##############################
# $Id: options.pptp,v 1.3 2006/03/26 23:11:05 quozl Exp $ # # Sample PPTP PPP options file /etc/ppp/options.pptp # Options used by PPP when a connection is made by a PPTP client. # This file can be referred to by an /etc/ppp/peers file for the tunnel. # Changes are effective on the next connection. See "man pppd". # You are expected to change this file to suit your system. As # packaged, it requires PPP 2.4.2 or later from http://ppp.samba.org/ # and the kernel MPPE module available from the CVS repository also on # http://ppp.samba.org/, which is packaged for DKMS as kernel_ppp_mppe. # Lock the port lock # Authentication # We don't need the tunnel server to authenticate itself noauth # 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 #refuse-mschap-v2 # Compression # Turn off compression protocols we know won't be used nobsdcomp nodeflate persist # Encryption # (There have been multiple versions of PPP with encryption support, # choose which of the following sections you will use. Note that MPPE # requires the use of MSCHAP-V2 during authentication) # # Note that using PPTP with MPPE and MSCHAP-V2 should be considered # insecure: # http://marc.info/?l=pptpclient-devel&m=134372640219039&w=2 # https://github.com/moxie0/chapcrack/blob/master/README.md # http://technet.microsoft.com/en-us/security/advisory/2743314 # http://ppp.samba.org/ the PPP project version of PPP by Paul Mackarras # ppp-2.4.2 or later with MPPE only, kernel module ppp_mppe.o # If the kernel is booted in FIPS mode (fips=1), the ppp_mppe.ko module # is not allowed and PPTP-MPPE is not available. # {{{ # Require MPPE 128-bit encryption #require-mppe-128 require-mschap-v2 # }}} # http://mppe-mppc.alphacron.de/ fork from PPP project by Jan Dubiec # ppp-2.4.2 or later with MPPE and MPPC, kernel module ppp_mppe_mppc.o # {{{ # Require MPPE 128-bit encryption #mppe required,stateless # }}}
After starting (pppd call myvpn) tail -f /var/log/messages
Jul 27 23:28:27 Sanduka pppd[2982]: LCP: timeout sending Config-Requests Jul 27 23:28:27 Sanduka pppd[2982]: Connection terminated. Jul 27 23:28:27 Sanduka pppd[2982]: Modem hangup Jul 27 23:28:27 Sanduka pptp[2995]: anon warn[decaps_hdlc:pptp_gre.c:217]: short read (-1): Input/output error Jul 27 23:28:27 Sanduka pptp[2995]: anon warn[decaps_hdlc:pptp_gre.c:229]: pppd may have shutdown, see pppd log Jul 27 23:28:27 Sanduka pptp[3003]: anon log[callmgr_main:pptp_callmgr.c:242]: Closing connection (unhandled) Jul 27 23:28:27 Sanduka pptp[3003]: anon log[ctrlp_rep:pptp_ctrl.c:254]: Sent control packet type is 12 'Call-Clear-Request' Jul 27 23:28:27 Sanduka pptp[3003]: anon log[call_callback:pptp_callmgr.c:81]: Closing connection (call state) Jul 27 23:28:27 Sanduka pppd[2982]: Using interface ppp0 Jul 27 23:28:27 Sanduka pppd[2982]: Connect: ppp0 <--> /dev/pts/2 Jul 27 23:28:27 Sanduka NetworkManager[650]: <info> (ppp0): new Generic device (driver: 'unknown' ifindex: 16) Jul 27 23:28:27 Sanduka NetworkManager[650]: <info> (ppp0): exported as /org/freedesktop/NetworkManager/Devices/15 Jul 27 23:28:27 Sanduka pptp[3007]: anon log[main:pptp.c:333]: The synchronous pptp option is NOT activated Jul 27 23:28:27 Sanduka pptp[3015]: anon log[ctrlp_rep:pptp_ctrl.c:254]: Sent control packet type is 1 'Start-Control-Connection-Request' Jul 27 23:28:27 Sanduka pptp[3015]: anon log[ctrlp_disp:pptp_ctrl.c:754]: Received Start Control Connection Reply Jul 27 23:28:27 Sanduka pptp[3015]: anon log[ctrlp_disp:pptp_ctrl.c:788]: Client connection established. Jul 27 23:28:28 Sanduka pptp[3015]: anon log[ctrlp_rep:pptp_ctrl.c:254]: Sent control packet type is 7 'Outgoing-Call-Request' Jul 27 23:28:28 Sanduka pptp[3015]: anon log[ctrlp_disp:pptp_ctrl.c:873]: Received Outgoing Call Reply. Jul 27 23:28:28 Sanduka pptp[3015]: anon log[ctrlp_disp:pptp_ctrl.c:912]: Outgoing call established (call ID 0, peer's call ID 11291).
I tried to configure via KDE (nm-connection-editor, is it possible to configure it at all in this way?), For which I received such a message.
As a result, suspicions fell upon the fact that the core lacks either drivers or modules. But my experience in this matter is scanty. I ask those who know: what is wrong and how to fix it?