LinuxQuestions.org
Visit Jeremy's Blog.
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 04-15-2023, 09:56 AM   #31
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,011

Rep: Reputation: Disabled

Quote:
Originally Posted by hitest View Post
Thank you. However #24 is geared towards Debian based systems. Do you have a solution for NordVPN on Slackware that you've tested?
nope:
Quote:
Navigate to the OpenVPN configuration directory with the command:


cd /etc/openvpn


Download the OpenVPN configuration files with the command:


sudo wget https://downloads.nordcdn.com/config...rvers/ovpn.zip

In case you get ERROR: The certificate of `nordvpn.com’ is not trusted., install the ca-certificates package with the command:

sudo apt-get install ca-certificates


If you do not have the unzip package installed, download it by typing:


sudo apt-get install unzip


Extract ovpn.zip with the command:


sudo unzip ovpn.zip


Remove the files you will no longer use:


sudo rm ovpn.zip


Enter the directory where the server configurations are located. These folders are named either ovpn_udp or ovpn_tcp:


cd /etc/openvpn/ovpn_udp/
cd /etc/openvpn/ovpn_tcp/


To see the list of all available servers, enter the following command:


ls -al


Choose a server to connect to.

For this tutorial, we used us2957.nordvpn.com, but you should connect to the server suggested to you at https://nordvpn.com/servers/tools/. You can find the server hostname right under the server title.

Server picking tool
Start OpenVPN with a chosen configuration by entering:


sudo openvpn [file name]
sudo openvpn us2957.nordvpn.com.udp.ovpn
sudo openvpn /etc/openvpn/ovpn_udp/us2957.nordvpn.com.udp.ovpn


OpenVPN will ask you for your credentials. Enter your NordVPN service credentials.
This part is distro independent.
 
Old 04-15-2023, 10:12 AM   #32
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,350

Rep: Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748
Quote:
Originally Posted by Aeterna View Post
nope:
That's fine. Thanks for the reply. Has anyone successfully securely deployed NordVPN for Slackware? Thanks for any and all replies.
 
Old 04-15-2023, 11:08 AM   #33
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,157

Original Poster
Rep: Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325
Quote:
Originally Posted by hitest View Post
That's fine. Thanks for the reply. Has anyone successfully securely deployed NordVPN for Slackware? Thanks for any and all replies.
It is working again, as per post #21, above.
There is something new this time. Once connected via "sudo /etc/rc.d/rc.nordvpn" etc., the nordlynx connection shows up in the NetworkManager applet and I can disconnect from there. So, for yesterday and, so far, today, I've connected in a terminal and then closed the terminal. When it is time to disconnect from NordVPN, I use the applet. To test the connection I've been using whatismybrowser.com and dnsleaktest.com. So far, so good.

Last edited by cwizardone; 04-15-2023 at 12:06 PM. Reason: Typo.
 
2 members found this post helpful.
Old 04-16-2023, 02:07 AM   #34
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,979

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
I was considering NordVPN, now I am beginning to think not.
 
Old 04-16-2023, 10:46 AM   #35
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,157

Original Poster
Rep: Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325
Quote:
Originally Posted by chrisretusn View Post
I was considering NordVPN, now I am beginning to think not.
They make it easy for Android and I've heard for ms-windows and Macs. Not so much for non-debian based Linux distributions.
 
1 members found this post helpful.
Old 04-16-2023, 12:06 PM   #36
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,196

Rep: Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775
One way to do it is to create a virtual machine, running whatever Linux or BSD OS runs NordVPN best. You would need two network interfaces : one either a NAT interface or bridged to the external interface of your host machine, and the other connected to the host-only internal network, which is easy enough to create, on Virtualbox at least .

Then all you do is make sure all your internet traffic on the host machine is routed through the virtual machine, which you do by giving the host-only network interface created above a higher gateway priority than the physical interface you normally use.

Sounds complex but not really that complicated. I can try to help with more detail but it's been a long time since I've been at my desktop PC. Forced to use an iPad for months now so going on memory.

You should be able to get a minimal Debian installed to 4gb or under, making the virtual machine fairly easy to back up.

You will need to make sure forwarding is enabled on the virtual machine, and on the host if you are not bridging the VM external interface to the host physical interface.

Last edited by Gerard Lally; 04-16-2023 at 12:10 PM.
 
2 members found this post helpful.
Old 04-16-2023, 12:36 PM   #37
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,350

Rep: Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748
Quote:
Originally Posted by cwizardone View Post
They make it easy for Android and I've heard for ms-windows and Macs. Not so much for non-debian based Linux distributions.
Yes. I have no problems with my wife's Mint workstation or my Windows 11 laptop. In 2025 I will look at other VPN providers and Linux compatibility.
 
1 members found this post helpful.
Old 04-16-2023, 01:00 PM   #38
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,157

Original Poster
Rep: Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325
Quote:
Originally Posted by hitest View Post
Yes. I have no problems with my wife's Mint workstation or my Windows 11 laptop. In 2025 I will look at other VPN providers and Linux compatibility.
Please keep me advised.
Thanks.


Edit in: Just stumbled across this thread, https://www.linuxquestions.org/quest...nt-4175724112/

There is some good information/links in post #3, in that thread.

Last edited by cwizardone; 04-16-2023 at 01:06 PM.
 
1 members found this post helpful.
Old 04-16-2023, 02:24 PM   #39
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,350

Rep: Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748
Quote:
Originally Posted by cwizardone View Post
Please keep me advised.
Thanks.
Will do. You're welcome. Even though I've struggled with NordVPN on non-Debian based distros there's a lot to like about NordVPN. When it works, it works well.
However when my NordVPN subscription is close to end-of-life I will carefully evaluate a lot of other VPN solutions with an eye towards speed and compatibility. Maybe NordVPN will step up their game.
 
1 members found this post helpful.
Old 04-17-2023, 04:29 PM   #40
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Posts: 297

Rep: Reputation: Disabled
Quote:
Originally Posted by hitest View Post
That's fine. Thanks for the reply. Has anyone successfully securely deployed NordVPN for Slackware? Thanks for any and all replies.
I use it without any problems and have been happy with it. OpenVPN configs + iptables + opendns.
 
1 members found this post helpful.
Old 04-17-2023, 04:48 PM   #41
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,350

Rep: Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748
Cool

Quote:
Originally Posted by BrianW View Post
I use it without any problems and have been happy with it. OpenVPN configs + iptables + opendns.
Cool! Would you like to share a solution?! Perhaps make it a how to on the Slackware documentation project?
 
1 members found this post helpful.
Old 04-17-2023, 05:23 PM   #42
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Posts: 297

Rep: Reputation: Disabled
Quote:
Originally Posted by hitest View Post
Cool! Would you like to share a solution?! Perhaps make it a how to on the Slackware documentation project?
I tried? https://www.linuxquestions.org/quest...2/#post6423483

Within /etc/openvpn I have a NORDVPN folder.
Code:
root:/etc/openvpn/NORDVPN#
login.info ovpn.zip ovpn_tcp/ ovpn_udp/
Code:
root:/etc/openvpn/NORDVPN# cat login.info
<username hash from nord>
<password hash from nord>
I run my rc.openvpn script from the root folder, it will connect to a random server and go. If the data coming from the VPN is not the original IP, it drops the packet (kill switch). It all seemed to be the common method years back for a killswitch when I first started down this road.

Code:
 cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
Code:
cat /etc/rc.d/rc.inet1.conf
# IPv4 config options for eth0:
DHCP_KEEPRESOLV[0]="yes" #do not overwrite DNS lookup

Last edited by BrianW; 04-17-2023 at 05:36 PM.
 
2 members found this post helpful.
Old 04-18-2023, 08:18 AM   #43
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,350

Rep: Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748
Thanks BrianW,

You're definitely pointing us in the right direction. Your above directions look good to me. I don't have a problem admitting that I don't know how to do something. OpenVPN is mysterious to me.
If possible would you be willing to formalize the above directions with accompanying written instructions on how to set up OpenVPN and NordVPN on Slackware on the Slackware document project? That would add a lot to the community knowledge base. If not, you've given us an excellent starting point.
 
1 members found this post helpful.
Old 04-18-2023, 11:39 AM   #44
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,011

Rep: Reputation: Disabled
Are you setting nameservers to google?

Quote:
Code:
 cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
Combining VPN with google DNS is not very helpful. Instead of hiding your ip you are making it visible to google. It makes as little sense as using DOT/DOH with browser and setting up VPN

Not to mention that NordVPN provides own DNS servers. What you do is counterintuitive: you are leaving your logs in the open (google dns). For this you don't need vpn, just use Cloudflare or google DNS (free of charge).

Last edited by Aeterna; 04-18-2023 at 12:19 PM.
 
1 members found this post helpful.
Old 04-18-2023, 12:47 PM   #45
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,350

Rep: Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748Reputation: 3748
Quote:
Originally Posted by Aeterna View Post
Are you setting nameservers to google?



Combining VPN with google DNS is not very helpful. Instead of hiding your ip you are making it visible to google. It makes as little sense as using DOT/DOH with browser and setting up VPN

Not to mention that NordVPN provides own DNS servers. What you do is counterintuitive: you are leaving your logs in the open (google dns). For this you don't need vpn, just use Cloudflare or google DNS (free of charge).
You're not contributing much to this discussion when you shoot down solutions without providing a working solution for Slackware and NordVPN that you've tested.
 
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
NordVPN App - "Whoops! Cannot reach System Daemon." when running "nordvpn c" glupa4e Slackware 16 12-09-2021 12:56 PM
nordVPN leak DNS test faild dmatija Linux - Networking 1 10-09-2017 06:56 PM
[SOLVED] problem with iptables and NordVPN/OpenVPN gone_bush Linux - Networking 1 04-27-2017 07:14 PM
LXer: NordVPN for Android LXer Syndicated Linux News 0 09-06-2016 02:12 PM

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

All times are GMT -5. The time now is 07:31 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