SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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?
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.
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.
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?
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/.
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.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,153
Rep:
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/
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.