VPN conection problems mint 17

I am using mint 17 64bit mate. On both my desktop and lap top…

They are both relatively new installations and I installed my VPN connection to both systems.

The VPN fails to connect on both computers, I removed the tick from all users and also tried reinstalling using a new name but still no connection.

I can see that there seems to be many issues with VPN and network manager is there any other software I could use for my VPN connections?

So what errors are you getting in /var/log/syslog when you try to connect ?

What type of VPN server ? IPsec, OpenVPN, PPTP ?

It is PPTP connection there are no errors shown by the network manager.

From the logs the error that happens every time I try to connect is : Office2 NetworkManager[870]: VPN plugin failed: 1

There are lots of others but they seem to be random no patten.

sudo apt-get install --reinstall network-manager-pptp network-manager-pptp-gnome network-manager-vpnc network-manager-vpnc-gnome

then if necessary, try these settings:
http://blog.geeky.name/post/2011/03/17/PPTP%3A-Ubuntu-Client-connect-to-Windows-VPN-Server

No change still no connection.

The settings from the post are the same as from my VPN company.

My android phone and tablet even my win 7 laptop all connect with no problems and it was working just fine in mint 13 so what have they done.

Would a different network manager be an option?

See post #3 here:
http://ubuntuforums.org/showthread.php?t=2222063

Nice bug…

Still no joy…

and file: /etc/NetworkManager/system-connections/MyVPNConnection: dose not exist in my mint17 set up so it could not be amended.

Jul 15 15:24:55 Office2 NetworkManager[898]: Starting VPN service 'pptp'... Jul 15 15:24:55 Office2 NetworkManager[898]: VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 6118 Jul 15 15:24:55 Office2 NetworkManager[898]: VPN service 'pptp' appeared; activating connections Jul 15 15:24:55 Office2 NetworkManager[898]: VPN plugin state changed: init (1) Jul 15 15:24:56 Office2 NetworkManager[898]: VPN plugin state changed: starting (3) Jul 15 15:24:56 Office2 NetworkManager[898]: VPN connection 'VPN' (Connect) reply received. Jul 15 15:24:56 Office2 pppd[6120]: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded. Jul 15 15:24:56 Office2 pppd[6120]: pppd 2.4.5 started by root, uid 0 Jul 15 15:24:56 Office2 pppd[6120]: Using interface ppp0 Jul 15 15:24:56 Office2 pppd[6120]: Connect: ppp0 <--> /dev/pts/3 Jul 15 15:24:56 Office2 NetworkManager[898]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Jul 15 15:24:56 Office2 NetworkManager[898]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found. Jul 15 15:24:56 Office2 NetworkManager[898]: /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring... Jul 15 15:24:56 Office2 pptp[6125]: nm-pptp-service-6118 log[main:pptp.c:314]: The synchronous pptp option is NOT activated Jul 15 15:24:56 Office2 pptp[6139]: nm-pptp-service-6118 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request' Jul 15 15:24:56 Office2 pptp[6139]: nm-pptp-service-6118 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply Jul 15 15:24:56 Office2 pptp[6139]: nm-pptp-service-6118 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established. Jul 15 15:24:57 Office2 pptp[6139]: nm-pptp-service-6118 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request' Jul 15 15:24:57 Office2 pptp[6139]: nm-pptp-service-6118 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply. Jul 15 15:24:57 Office2 pptp[6139]: nm-pptp-service-6118 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 53821). Jul 15 15:24:57 Office2 pptp[6139]: nm-pptp-service-6118 log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from peer_callid 40229 Jul 15 15:24:57 Office2 pptp[6139]: nm-pptp-service-6118 log[ctrlp_disp:pptp_ctrl.c:953]: send_accm is 00000000, recv_accm is FFFFFFFF Jul 15 15:24:57 Office2 pptp[6139]: nm-pptp-service-6118 warn[ctrlp_disp:pptp_ctrl.c:956]: Non-zero Async Control Character Maps are not supported! Jul 15 15:24:57 Office2 pppd[6120]: MS-CHAP authentication failed: E=691 Authentication failure Jul 15 15:24:57 Office2 pppd[6120]: CHAP authentication failed Jul 15 15:24:57 Office2 pptp[6139]: nm-pptp-service-6118 log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from peer_callid 40229 Jul 15 15:24:57 Office2 pptp[6139]: nm-pptp-service-6118 log[ctrlp_disp:pptp_ctrl.c:953]: send_accm is FFFFFFFF, recv_accm is FFFFFFFF Jul 15 15:24:57 Office2 pptp[6139]: nm-pptp-service-6118 warn[ctrlp_disp:pptp_ctrl.c:956]: Non-zero Async Control Character Maps are not supported! Jul 15 15:24:57 Office2 pppd[6120]: Connection terminated. Jul 15 15:24:57 Office2 NetworkManager[898]: VPN plugin failed: 1 Jul 15 15:24:57 Office2 NetworkManager[898]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Jul 15 15:24:57 Office2 pptp[6125]: nm-pptp-service-6118 warn[decaps_hdlc:pptp_gre.c:204]: short read (-1): Input/output error Jul 15 15:24:57 Office2 pptp[6125]: nm-pptp-service-6118 warn[decaps_hdlc:pptp_gre.c:216]: pppd may have shutdown, see pppd log Jul 15 15:24:57 Office2 pptp[6139]: nm-pptp-service-6118 log[callmgr_main:pptp_callmgr.c:234]: Closing connection (unhandled) Jul 15 15:24:57 Office2 pptp[6139]: nm-pptp-service-6118 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request' Jul 15 15:24:57 Office2 pptp[6139]: nm-pptp-service-6118 log[call_callback:pptp_callmgr.c:79]: Closing connection (call state) Jul 15 15:24:57 Office2 NetworkManager[898]: VPN plugin failed: 1 Jul 15 15:24:57 Office2 pppd[6120]: Exit. Jul 15 15:24:57 Office2 NetworkManager[898]: VPN plugin state changed: stopped (6) Jul 15 15:24:57 Office2 NetworkManager[898]: VPN plugin state change reason: 0 Jul 15 15:24:57 Office2 NetworkManager[898]: Policy set 'Ethernet connection 1' (eth0) as default for IPv4 routing and DNS. Jul 15 15:24:57 Office2 NetworkManager[898]: error disconnecting VPN: Could not process the request because no VPN connection was active. Jul 15 15:25:02 Office2 NetworkManager[898]: VPN service 'pptp' disappeared

This is the log of my last attempt to log in to my VPN account.

The Network manager icon tells me vpn is active however, the broadcast i.p. address has not changed and the icon has not changed to a padlock symbol.

Is it possible to remove Network manager and use an alternative solution?

What’s the output from:

ls -a /etc/NetworkManager/system-connections

userone@Office2 ~ $ ls -a /etc/NetworkManager/system-connections
. … 000D0B6DA3C4 Ethernet connection 1 VPN
userone@Office2 ~ $

OK (if your VPN connection is called “VPN” in networkmanager), you want to add these 3 lines to

sudo gedit /etc/NetworkManager/system-connections/VPN

(obviously replacing gedit with whatever the Mint text editor is called in the above command … unless you also have gedit installed)

refuse-chap=yes
refuse-eap=yes
refuse-pap=yes

Hi, these lines are already there:

refuse-chap=yes
refuse-eap=yes
refuse-pap=yes

Edit your VPN connection in networkmanager, and in the VPN > Advanced section make sure ONLY these 2 authentication methods are selected:-

MSCHAP
and
MSCHAPv2

Also enable Use point-to-point encryption (MPPE)

http://linuxforums.org.uk/MGalleryItem.php?id=1594

The set up looks just like this but the connection dose not work.

Have you tried deleting the VPN from NetworkManager, then setting it up manually as described here:
https://help.ubuntu.com/community/VPNClient#PPTP

or

also leaving PAP and CHAP ticked in NetworkManager (and/or enabling “Allow stateful encryption”).

I do understand some computer stuff but this seems complex both to set up and to use.

Is there an alternative network manager that I can try?

Is there an alternative network manager that I can try?

Not that I’m aware of (that can set up VPN connections).

Do you know these -

the IP address or host name of the server ? the name you wish to use to refer to the tunnel ? (not important) the authentication domain name ? (if applicable) the username you are to use ? the password you are to use ? whether encryption is required ?

Don’t tell them me (nor post them here) … just tell me if you know them.


Reference links:
https://help.ubuntu.com/community/VPNClient#PPTP
and the “configuration by hand” section of:
http://pptpclient.sourceforge.net/howto-ubuntu.phtml

I have the

Gateway address
User name
Password

Requires (Authentication)

MSCHAPv2
Point to Point encryption (PPTP)

Do you think installing/Using KVpnc would be a good plan?

OK, try this:-
(obviously replace and with you actual details)

sudo gedit /etc/ppp/peers/myvpn

and make it read:-

remotename myvpn linkname myvpn ipparam myvpn pty "pptp [b][/b] --nolaunchpppd " name [b][/b] usepeerdns require-mppe refuse-eap noauth

adopt defaults from the pptp-linux package

file /etc/ppp/options.pptp

SAVE the file and exit gedit

Run:

sudo gedit /etc/ppp/chap-secrets

add a single new line that reads:-

[b][/b] myvpn [b][/b] *

SAVE the file and exit gedit.

Now what happens if you run:

pon myvpn nodetach

or

sudo pon myvpn nodetach

userone@Office2 ~ $ sudo pon myvpn nodetach
[sudo] password for userone:
Using interface ppp0
Connect: ppp0 ↔ /dev/pts/5
sh: 1: cannot open uk3.purevpn.net: No such file
Modem hangup
Connection terminated.
userone@Office2 ~ $
userone@Office2 ~ $ pon myvpn nodetach
Using interface ppp0
Connect: ppp0 ↔ /dev/pts/5
sh: 1: cannot open uk3.purevpn.net: No such file
Modem hangup
Connection terminated.
userone@Office2 ~ $

I notice mention of a modem when the connection is made over my existing cable internet connection.