LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-18-2023, 01:16 PM   #46
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,018

Rep: Reputation: Disabled

Quote:
Originally Posted by hitest View Post
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.
There are two aspect of the problem:
1) general rules regarding openvpn
2) nordvpn setup

I don't use nordvpn so I can't help with the specific config. However some general openvpn settings are not configured properly.
There is nothing Slackware specific regarding general openvpn rules. If you never read about VPN configuration, the only thing I can do is to point what is wrong.

If you have open ipv6 connection then make sure that VPN provider will handle it. NordVPN clearly states that ipv6 should be disabled for their setup. So my conclusion is that nobody even bothered to read nordvpn setup page.
If (assuming that I understand post correctly) someone is suggesting to use VPN with public DNS then this is wrong.

If you do not understand the basics of vpn and you have problems with setting up vpn with specific vendor it is difficult to help because it is impossible to predict what error will be made as in the case of ipv6 or DNS config. Seemingly all works but still network is misconfigured.

I suggest to read a bit about vpn understand it and then go back to nordvpn. No need to write vpn howto.
 
Old 04-18-2023, 01:21 PM   #47
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian
Posts: 7,350

Rep: Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750
Quote:
Originally Posted by Aeterna View Post
I don't use nordvpn so I can't help with the specific config.
Exactly. So please stop spamming this thread!
We are looking for a working solution for Slackware and NordVPN.
 
1 members found this post helpful.
Old 04-18-2023, 06:13 PM   #48
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Posts: 297

Rep: Reputation: Disabled
Quote:
Originally Posted by hitest View Post
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.
While Aeterna isn't exactly wrong about avoiding Google's DNS servers, I've had a lack of time to devote anymore to computers. I don't know much about iptables, but theoretically only external traffic via the tunnel is allowed if my iptables script is correct. I would appreciate if someone who knows iptables would confirm or provide suggestions...

Code:
iptables_load() {
  # Set IPTables rules to enable protection
  echo "Creating IPTables firewall rules..."

  # First set the policies to DROP everything
  $IPT -P INPUT DROP
  $IPT -P FORWARD DROP
  $IPT -P OUTPUT DROP

  # Allow loopback communication
  $IPT -A INPUT  -i lo -j ACCEPT
  $IPT -A OUTPUT -o lo -j ACCEPT

  # Allow local network connections
  $IPT -A INPUT  -s 192.168.0.0/16 -d 192.168.0.0/16 -j ACCEPT
  $IPT -A OUTPUT -s 192.168.0.0/16 -d 192.168.0.0/16 -j ACCEPT

  # Allow connections to VPN server
  $IPT -A INPUT  -i eth0 -s $VPNIP/8 -j ACCEPT
  $IPT -A OUTPUT -o eth0 -d $VPNIP/8 -j ACCEPT

  # Allow all connections on the vpn tunnel interface
  $IPT -A INPUT  -i tun0 -j ACCEPT
  $IPT -A OUTPUT -o tun0 -j ACCEPT

  # Drop anything that was not explicitly allowed above
  $IPT -A INPUT   -j DROP
  $IPT -A OUTPUT  -j DROP
  $IPT -A FORWARD -j DROP

  # Zero our counters
  $IPT -Z

  return 0
}
 
4 members found this post helpful.
Old 04-18-2023, 07:20 PM   #49
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian
Posts: 7,350

Rep: Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750
BrianW,

Many thanks for your help, it's greatly appreciated. Your IP tables work is way out of my wheelhouse. I'm frustrated with NordVPN on Slackware. I'm moving to Devuan which is a Debian clone without systemd. That distro works well with NordVPN. This is not a criticism of Slackware at all. I love Slackware. I want to be able to use my VPN.
I maintain my wife's T420 Thinkpad which runs Slackware64-15.0.

Last edited by hitest; 04-18-2023 at 07:22 PM. Reason: grammar
 
1 members found this post helpful.
Old 04-19-2023, 08:03 AM   #50
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian
Posts: 7,350

Rep: Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750
I'm going to give it another try with Slackware and NordVPN. I was feeling very frustrated yesterday. I blew out my Void installation in favor of Slackware64-15.0. Maybe there's a way to do this. Many thanks for all of the replies and your patience.
 
2 members found this post helpful.
Old 04-19-2023, 08:43 AM   #51
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,164

Original Poster
Rep: Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335
Quote:
Originally Posted by hitest View Post
......very frustrated......
Yes! Know the feeling!
 
1 members found this post helpful.
Old 04-20-2023, 04:17 PM   #52
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Posts: 297

Rep: Reputation: Disabled
I made an error, the DNS is supposed to be set elsewhere:
Code:
brian:~$ cat /etc/resolvconf.conf 
# Configuration for resolvconf(8)
# See resolvconf.conf(5) for details

resolv_conf=/etc/resolv.conf
# If you run a local name server, you should uncomment the below line and
# configure your subscribers configuration files below.
#name_servers=127.0.0.1
After some quick searching, there are some methods to have OpenVPN define DNS upon tunnel creation. It was always my intent to clean up my rc script but unfortunately life changed my list of importance...
 
1 members found this post helpful.
Old 04-25-2023, 08:59 AM   #53
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian
Posts: 7,350

Rep: Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750
So I ran Devuan Linux for a time which is a nifty Debian clone using sysvinit which allowed me to use NordVPN. That felt a bit wrong. So I'm back with Slackware64-current and will continue the struggle.
Slackware! Accept no substitute.
 
1 members found this post helpful.
Old 04-25-2023, 02:34 PM   #54
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian
Posts: 7,350

Rep: Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750
Okay this is a not so elegant work around. I installed virt-manager on my Void workstation and then installed a Devuan VM. The VM is light and snappy and I can run NordVPN from the VM. Heh.
 
Old 04-25-2023, 02:50 PM   #55
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,164

Original Poster
Rep: Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335
And that works for the host?
 
1 members found this post helpful.
Old 04-25-2023, 04:18 PM   #56
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian
Posts: 7,350

Rep: Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750
Quote:
Originally Posted by cwizardone View Post
And that works for the host?
I can access NordVPN from within the VM installed on the host and because it's QEMU/KVM it's pretty fast. I can run the VM fullscreen with little loss in resolution. Void by itself cannot access NordVPN.
It's a sloppy fix until we can get NordVPN working on Slackware.
 
1 members found this post helpful.
Old 07-01-2023, 09:36 AM   #57
chaz_bro1972
Member
 
Registered: Jul 2006
Location: Oklahoma, USA
Distribution: Slackware64-Current, Multilib
Posts: 242

Rep: Reputation: 27
My recommendation:

Find out the steps that Devuan users take when they use Openvpn and/or nm-applet (NetworkManager) to connect to Nordvpn...and do a trace of the process. Then we can fix Slackware 15.0 & Current to do the necessary steps.
 
2 members found this post helpful.
Old 12-05-2023, 07:30 PM   #58
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian
Posts: 7,350

Rep: Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750
Thumbs up

Quote:
Originally Posted by leclerc78 View Post
I am stuck until 2025. I use the extension in Chrome Browser for the meantime.
Any suggestions for an alternative are welcome ! As for my research, most of them support Windows well but not Linux !
Same here, mate! Slackware64-15.0 worked well with NordVPN using the slackbuild script from the good people at slackbuilds.org. Slackware64-current and NordVPN stopped working for me. I just installed Google Chrome on Slackware64-current and added the Chrome NordVPN extension, that works. Thanks for the excellent work around. Much appreciated!
 
Old 12-05-2023, 11:17 PM   #59
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,018

Rep: Reputation: Disabled
Quote:
Originally Posted by hitest View Post
Exactly. So please stop spamming this thread!
We are looking for a working solution for Slackware and NordVPN.
I am not spamming.

This was very simple. 10minutes to buy NortVPN and connect from Slackware OpenVPN.
See attached picture.

https://i.ibb.co/nM0PvvL/Nord-VPN-connect.png
link to picture is small unfortunately Cloudflare still thinks that pictures are dangerous.

Nothing there to configure. Probably you guys messed up OpenVPN config to the point that ideally would be to reinstall everything OpenVPN related.
Anyway: works using KDE Plasma Network Manager (so any GUI will do) and works when starting manually (well need to create file and edit ovpn to reflect the change).

firewall needs to be configured for tun nothing more.

howto (manual)
1) create a text file with your credentials in separate lines. save it in /etc/openvpn
2) edit Nordvpn *.ovpn file and modify this line
auth-user-pass
to this
auth-user-pass some_file.txt
save it and run
3)
cd /etc/openvpn && sudo openvpn *.ovpn &

howto Kde Plasma
1) open Configure Network Connections
2) press + in the left column
3) scroll down to Import VPN connection...
4) uload ovpn file
5) enter username
6) after connecting to ISP, select VPN connection from drop-down menu, enter password
it works either way for me.

Last edited by Aeterna; 12-06-2023 at 12:36 AM.
 
3 members found this post helpful.
Old 12-06-2023, 08:58 AM   #60
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 977

Rep: Reputation: 239Reputation: 239Reputation: 239
NordVPN has changed author/passwd credentials as described in these threads; an extra layer has been added:
https://www.linuxquestions.org/quest...ed-4175727216/
https://www.linuxquestions.org/quest...pn-4175726456/
 
  


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 05:15 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