LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-21-2020, 04:57 PM   #1
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
Connecting to a VPN


What is the Slackware big picture to configure a VPN client without using NetworkManager (NM)? Use some custom rc.d scripts?

The primary system is a static desktop Ethernet connection. No wireless and thus I never used NM on the system. I see slackbuilds for nordvpn, protonvpn, etc. Would that approach suffice to avoid using NM?

I am new to using a VPN. Appreciated are Slackware compatible VPN provider suggestions. Free cost is a nice option while I learn.

Thanks.
 
Old 12-21-2020, 05:08 PM   #2
ardya
Member
 
Registered: Mar 2006
Distribution: Slackware since 1997
Posts: 89

Rep: Reputation: 18
I use openvpn to a VPS I run "out there". rc.openvpn to initialize it. I pay for the VPS anyway, the vpn is gravy. Openvpn clients for all my devices as well. The bonus is being able to get back into my home network without having to deal with stupid nat bullshit/port forwarding. Same thing can be done with wireguard.
 
Old 12-21-2020, 05:17 PM   #3
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
Thanks. I don't think we are describing the same thing. I don't want to run a VPN server. I want to connect to an external VPN (Proton VPN, NordVPN, etc.) from my home office workstation. While running my own VPS sounds palatable, my short term goal is learning to use a VPN from home, hopefully with a free trial.
 
Old 12-21-2020, 05:20 PM   #4
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,195

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
Quote:
Originally Posted by upnort View Post
What is the Slackware big picture to configure a VPN client without using NetworkManager (NM)? Use some custom rc.d scripts?

The primary system is a static desktop Ethernet connection. No wireless and thus I never used NM on the system. I see slackbuilds for nordvpn, protonvpn, etc. Would that approach suffice to avoid using NM?

I am new to using a VPN. Appreciated are Slackware compatible VPN provider suggestions. Free cost is a nice option while I learn.

Thanks.
If it's just for learning, then a throwaway account with a provider is probably OK. If you are serious about the security a VPN provides, your better option is to pay for a VPN provider or roll your own with a VPS or dedicated server. A low-cost VPS is sufficient to run a VPN.

I rolled my own with OpenVPN on a NetBSD gateway at head office and OpenVPN clients on Windows PCs at the 12 or so branch offices. I believe it's still running like a champ ten years later.

When I get time I want to set up the fairly new IPsec VPN native to OpenBSD, connecting to it from a mix of iOS, Slackware, NetBSD and Windows clients. The reason : last time I looked OpenVPN delegated their iOS client to a third party. No thanks.

As usual Slackware s trouble-free with both alternatives : OpenVPN and IPsec. As both server and client. OpenVPN is much easier, however.

Depending on how you're going ahead with this you might want a site to site VPN, which consists of two gateways, with clients connecting to the gateways and not running any VPN software on the device itself, or site to road warrior, in which case one machine at a place accessible from the outside world acts as the VPN server, and client VPN software is configured on each device you want to connect to that server.
 
Old 12-21-2020, 05:33 PM   #5
ardya
Member
 
Registered: Mar 2006
Distribution: Slackware since 1997
Posts: 89

Rep: Reputation: 18
I understood what you asked, my suggestion was to use what you may already have, and the benefit of not using some commercial vpn that can monitor your activity regardless what they advertise. I understand that you don't want to run your own

#####################

My US$0.02, I wouldnt trust any of those commercial vpns. While they may provide some convenience as far as use/configuration, you have no way to know what they are doing with your traffic.

Ask yourself, what benefit am I expecting to gain from its use?

Hiding DNS queries? From whom?
Hiding web traffic? From whom?
Working around geoip location?

VPNs are not a panacea. They definitely are not a safety blanket stopping tracking.
For targeted purposes they can be useful.

Good luck with your research!
 
Old 12-21-2020, 05:48 PM   #6
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,195

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
Quote:
Originally Posted by ardya View Post
My US$0.02, I wouldnt trust any of those commercial vpns. While they may provide some convenience as far as use/configuration, you have no way to know what they are doing with your traffic.
I agree with this. Unless it was a throwaway VPN just for learning, I would not use a third-party VPN provider. In any case, how much is someone going to learn when they have the server set up and guide you through the client setup in a few steps?
 
Old 12-21-2020, 05:48 PM   #7
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 663

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
I have been using the Astrill VPN service for about a year. They provide a shell script that installs their software in /usr/local and also creates a menu entry in X. It provides tremendously enhanced download speed as well as the ability to overcome regionalisms and censorships. Censorship of certain geographical regions is an increasing problem. Astrill costs about $10/month. They have a VIP service that costs an additional $10/month but I have not tried it.

I had tried some other VPN's (note that I live in Beijing) including Lantern (popular among students), PandaPow, and ExpressVPN. The configuration of Network Manager, openconnect, openvpn, openswan, etc is not a simple matter at all, but I can say that I have done it and greatly prefer using the software from the VPN provider.
 
Old 12-21-2020, 05:50 PM   #8
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,195

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
There are some notes on Slackware VPN setup scattered among the pages here:

http://www.remy.org.uk/tech.php

IKEv2 is newer than L2TP/IPSec.

StrongSWAN seems to be the favoured client and server software for this kind of VPN.

OpenVPN is a different kind of VPN - layer 3.
 
Old 12-21-2020, 05:52 PM   #9
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,195

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
Quote:
Originally Posted by upnort View Post
Thanks. I don't think we are describing the same thing. I don't want to run a VPN server. I want to connect to an external VPN (Proton VPN, NordVPN, etc.) from my home office workstation. While running my own VPS sounds palatable, my short term goal is learning to use a VPN from home, hopefully with a free trial.
I think when you ask "What is the Slackware big picture to configure a VPN client without using NetworkManager?" you are really opening the discussion up to general observations and advice.
 
Old 12-21-2020, 05:55 PM   #10
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
I am aware that using any commercial VPN service is mostly "moving the goal posts." I have a narrow specific use case for the VPN. For that need moving the goal posts is sufficient. I don't need fast speeds and have no need to watch videos through the VPN. Just simple text transfers and accessing specific (safe for work) web sites.

Nobody is answering the basic question -- how to connect Slackware to a VPN without NM?
 
Old 12-21-2020, 05:57 PM   #11
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
If the VPN provider you're using supports OpenVPN, then that is easily added on Slackware as it has OpenVPN support already included. You just need to load the config file in /etc/openvpn/.

https://docs.slackware.com/howtos:ne...rvices:openvpn

If your provider requires something specific, it might be a lot more work to get it to work on Slackware.

Wireguard is another, supposedly better, alternative to OpenVPN, and it was merged into the kernel starting with 5.6 (prior to that, you needed to compile the kernel module separately). So with -current now having 5.10, -current should now support wireguard (however, I haven't looked into it at all and I don't know if it needs any companion apps within Slackware to use).

Last edited by bassmadrigal; 12-21-2020 at 05:59 PM.
 
Old 12-21-2020, 05:58 PM   #12
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,153

Rep: Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323
Nordvpn provides a series of tutorials on how to setup their service with Linux.
You can use it in conjunction with NetworkManager or you can do it entirely from the command line.
WireGuard is available.
https://nordvpn.com/

The software is available from SBo.
http://slackbuilds.org/repository/14...search=nordvpn
 
Old 12-21-2020, 06:01 PM   #13
lougavulin
Member
 
Registered: Jul 2018
Distribution: Slackware,x86_64,current
Posts: 279

Rep: Reputation: 100Reputation: 100
At least, pick a provider who does not required to install its client, but you can use standard client as openvpn.
And vpn does not offer anonymity.
2cts
 
Old 12-21-2020, 06:08 PM   #14
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
Quote:
You just need to load the config file in /etc/openvpn/.
I had browsed that article before posting. I see I missed this:

/usr/sbin/openvpn /etc/openvpn/client.conf

Seems then I can easily toggle the VPN client without NM.

Quote:
And vpn does not offer anonymity.
I never wrote I was looking for that.

Last edited by upnort; 12-21-2020 at 06:11 PM.
 
  


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
VPN Connection - Not able to browse other sites when connecting to VPN arindom Linux - Networking 25 07-02-2012 01:43 PM
How do i connect Ciscos VPN client to Checkpoint VPN server Klas Linux - Networking 1 11-29-2003 08:00 AM
MASQ VPN to VPN Router hakcenter Linux - Networking 0 06-26-2003 04:14 PM
Too VPN or not to VPN. gboutwel Linux - Security 4 03-28-2003 04:27 PM
Connect to Cisco VPN w/o Cisco VPN Client gboutwel Linux - Networking 4 02-07-2003 12:46 PM

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

All times are GMT -5. The time now is 11:02 PM.

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