LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-22-2017, 04:29 AM   #1
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 154

Rep: Reputation: 25
How to use openvpn or pptp vpn plugin in NetworkManager?


I use slackware 14.2 x86_64, released at 2017/02/14.
Here, I found I can not create a openvpn or pptp vpn connection in NetworkManager. Of course I have openvpn and pptp plugins installed for NetworkManager:
Code:
bash-4.4# ls /var/log/packages/openvpn-2.4.0-x86_64-1 
/var/log/packages/openvpn-2.4.0-x86_64-1
bash-4.4# ls /var/log/packages/Network*
/var/log/packages/NetworkManager-1.6.0-x86_64-1
/var/log/packages/NetworkManager-openvpn-1.2.4-x86_64-1_SBo
/var/log/packages/NetworkManager-pptp-1.2.0-x86_64-1_SBo
And, error message in the /sys/log/messages:
Code:
Mar 20 12:21:20 darkstar NetworkManager[1150]: <info>  [1489983680.7817] audit: op="connection-add" pid=2168 uid=1000 result="fail" reason="No plugin supported adding this connection"
Any help will be very very appreciated.
Thanks.
 
Old 03-22-2017, 10:40 AM   #2
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
I use a single PPTP connection. I am not a NM guru. Presuming NM is otherwise working okay with wired/wireless connections and rc.inet1.conf is not configured, a default firewall configuration will prevent the connection. Try temporarily disabling the firewall (rc.firewall stop). Another PPTP blocker is the nf_conntrack_pptp kernel module normally is not loaded by default. I have the following in my rc.local:

Code:
if [ "`ps ax | grep /usr/sbin/NetworkManager | grep -v grep`" != "" ]; then
  # Using NetworkManager.
  if [ "`/sbin/lsmod | grep nf_conntrack_pptp`" = "" ]; then
    /sbin/modprobe nf_conntrack_pptp
  fi
fi
When I first debugged the PPTP connection I would run tail -f /var/log/messages to watch the output.

After I disabled the firewall and loaded nf_conntrack_pptp NM connected to the PPTP in about 1 second.

I have failed several times trying to configure OpenVPN. I can't help with that.
 
Old 03-22-2017, 10:47 AM   #3
v3g4n
LQ Newbie
 
Registered: Mar 2017
Distribution: Slackware
Posts: 18

Rep: Reputation: 3
It's kind of hard to help when you didn't give any information on how you tried to setup your vpn connection in NetworkManager. The easiest way is to import your vpn config file provided to you from your vpn provider and then enter your username and password. You can also manually enter it by looking at the vpn config file.

Last edited by v3g4n; 03-22-2017 at 10:48 AM.
 
Old 03-22-2017, 11:14 PM   #4
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by upnort View Post
I use a single PPTP connection. I am not a NM guru. Presuming NM is otherwise working okay with wired/wireless connections and rc.inet1.conf is not configured, a default firewall configuration will prevent the connection. Try temporarily disabling the firewall (rc.firewall stop). Another PPTP blocker is the nf_conntrack_pptp kernel module normally is not loaded by default. I have the following in my rc.local:

Code:
if [ "`ps ax | grep /usr/sbin/NetworkManager | grep -v grep`" != "" ]; then
  # Using NetworkManager.
  if [ "`/sbin/lsmod | grep nf_conntrack_pptp`" = "" ]; then
    /sbin/modprobe nf_conntrack_pptp
  fi
fi
When I first debugged the PPTP connection I would run tail -f /var/log/messages to watch the output.

After I disabled the firewall and loaded nf_conntrack_pptp NM connected to the PPTP in about 1 second.

I have failed several times trying to configure OpenVPN. I can't help with that.
Thanks for your help. But, I still got this failure error although I loaded this module for PPTP connection.
What's your slackware version?
 
Old 03-22-2017, 11:17 PM   #5
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by v3g4n View Post
It's kind of hard to help when you didn't give any information on how you tried to setup your vpn connection in NetworkManager. The easiest way is to import your vpn config file provided to you from your vpn provider and then enter your username and password. You can also manually enter it by looking at the vpn config file.
Thanks for your reply. Here, for creating a PPTP connection, I do it following the connection creation dialog, only fill the needed gateway, username and password.
 
1 members found this post helpful.
Old 03-22-2017, 11:32 PM   #6
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Quote:
Originally Posted by kcynice View Post
Thanks for your reply. Here, for creating a PPTP connection, I do it following the connection creation dialog, only fill the needed gateway, username and password.
It should look like the screenshot and add
Code:
# PPTP
iptables -A OUTPUT -p tcp -m tcp  --dport 1723  -m state --state NEW  -j ACCEPT
to rc.firewall

Last edited by PROBLEMCHYLD; 07-29-2017 at 08:45 PM.
 
Old 03-23-2017, 02:21 AM   #7
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by PROBLEMCHYLD View Post
It should look like the screenshot and add
Code:
# PPTP
iptables -A OUTPUT -p tcp -m tcp  --dport 1723  -m state --state NEW  -j ACCEPT
to rc.firewall
Oh, my issue is not the network problem, just a basic software error. I don't know how and where it check the right plugin.
My error prompt were attached
Attached Thumbnails
Click image for larger version

Name:	error.png
Views:	71
Size:	36.1 KB
ID:	24577  
 
Old 03-23-2017, 07:47 AM   #8
ivandi
Member
 
Registered: Jul 2009
Location: Québec, Canada
Distribution: CRUX, Debian
Posts: 528

Rep: Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866
Quote:
Originally Posted by kcynice View Post
Code:
bash-4.4# ls /var/log/packages/openvpn-2.4.0-x86_64-1 
/var/log/packages/openvpn-2.4.0-x86_64-1
bash-4.4# ls /var/log/packages/Network*
/var/log/packages/NetworkManager-1.6.0-x86_64-1
/var/log/packages/NetworkManager-openvpn-1.2.4-x86_64-1_SBo
/var/log/packages/NetworkManager-pptp-1.2.0-x86_64-1_SBo
I don't see pptp installed. NetworkManager-pptp requires it to actually make a connection.


Cheers
 
Old 03-23-2017, 10:22 AM   #9
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
You need these packages to get VPN working. If you want to use older versions it should be fine. I'm using 14.2 stable with those packages and have no problem connecting.

networkmanager-pptp-1.2.4-i586-1.txz
pptp-1.9.0-i586-1.txz
 
Old 03-23-2017, 11:20 AM   #10
v3g4n
LQ Newbie
 
Registered: Mar 2017
Distribution: Slackware
Posts: 18

Rep: Reputation: 3
I didn't need to install any pptp packages to get my vpn to work. I only installed NetworkManager-openvpn, but I am using openvpn and not pptp.
https://slackbuilds.org/repository/1...nager-openvpn/

Last edited by v3g4n; 03-23-2017 at 11:28 AM.
 
Old 03-23-2017, 11:22 AM   #11
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Quote:
Thanks for your help. But, I still got this failure error although I loaded this module for PPTP connection.
What's your slackware version?
14.2 64-bit. I started using the PPTP VPN with 14.1.
 
Old 03-24-2017, 04:20 AM   #12
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by ivandi View Post
I don't see pptp installed. NetworkManager-pptp requires it to actually make a connection.


Cheers
Oh, it will report the same error even if I had pptp installed
 
Old 03-24-2017, 04:23 AM   #13
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by PROBLEMCHYLD View Post
You need these packages to get VPN working. If you want to use older versions it should be fine. I'm using 14.2 stable with those packages and have no problem connecting.

networkmanager-pptp-1.2.4-i586-1.txz
pptp-1.9.0-i586-1.txz
but i have networkmakager-pptp-1.2.0 and pptp 1.8.0 installed, which report the above error(no plugin)
 
Old 03-24-2017, 05:10 AM   #14
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 25
Thanks all, I found its because the basic nm software.
I upgread NetworkManager-1.6.0 to NetworkManager-1.6.2, the issue was resolved.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NetworkManager-1.0.10-x86_64-1 on -current has a bug with openvpn plugin pasquall Slackware 2 01-07-2016 10:04 PM
2 VPN connections on the same time(PPTP, OpenVPN) Seolipo Linux - Networking 1 06-07-2013 01:19 AM
[SOLVED] Can't Connect to a PPTP VPN Server in NetworkManager MikeC614 Slackware 2 02-06-2013 06:50 PM
How do you set NetworkManager to retry pptp vpn if disconnected MikeyCarter Linux - Hardware 0 10-25-2012 05:05 PM
VPN - OpenVPN/PPTP ElLunchbox Linux - Server 8 02-07-2009 05:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration