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.
2 Unpack them in /etc/openvpn
...this will give you 2 dirs, one with files for udp and one for tcp
3 make a file with your auth credentials, first line username, second line password. Put it somewhere and make it readable only by root.
4 go to the NordVPN website and find out which server is recommended for your location or choose one by some criteria which suits you
5 in /etc/openvpn do
'ln -s [path to config file you've chosen] nordvpn.conf'
NordVPN reccomends you use udp
For example:
'ln -s /etc/openvpn/ovpn_udp/uk123.nordvpn.com.udp.ovpn nordvpn.conf'
6 for the config file you've chosen, at the line that says 'auth-user-pass' add a space then put the path to your auth file from step 3
7 in /etc/rc.d make rc.openvpn executable
8 modify your /etc/resolv.conf to use the NordVPN DNS
9 stop dhcp or whatever clobbering your resolv.conf ...
'chattr +i resolv.conf'
You can now start / stop NordVPN using the rc.openvpn initialisation file. I have it in rc.local[_shutdown] to automatically start / stop NordVPN when my Kodi box runs.
You may want to look into openresolv as this allows you to change your DNS servers once connected to a VPN (so you don't get DNS leakage when connected to your VPN). I found this program when I setup PIA on my system and was able to get it to work on Slackware and updated the SlackBuild to allow it to work properly on our systems.
You may want to look into openresolv as this allows you to change your DNS servers once connected to a VPN (so you don't get DNS leakage when connected to your VPN). I found this program when I setup PIA on my system and was able to get it to work on Slackware and updated the SlackBuild to allow it to work properly on our systems.
Maybe the emerging encrypted DNS protocols and tools will fix this ... and possibly make VPN less necessary for many use cases. It would appear to me that without encrypted DNS you're potentially still at the mercy of your router, and downstream ISP routers, unless you set VPN up on your router.
My use case for VPN is to get at stuff otherwise not available in UK.
My quick and dirty solution allows my setup to pass the online DNS leak tests I've tried, FWIW. My router is too dumb to have anything to do with IPv6.
Maybe the emerging encrypted DNS protocols and tools will fix this ... and possibly make VPN less necessary for many use cases. It would appear to me that without encrypted DNS you're potentially still at the mercy of your router, and downstream ISP routers, unless you set VPN up on your router.
My use case for VPN is to get at stuff otherwise not available in UK.
My quick and dirty solution allows my setup to pass the online DNS leak tests I've tried, FWIW. My router is too dumb to have anything to do with IPv6.
Normally your /etc/resolv.conf is set by DHCP, which will typically add your router as the primary nameserver. Your router will typically have your ISP's nameservers provided by DHCP from the ISP.
openresolv allows you to automatically add the specified nameservers above the ones listed in /etc/resolv.conf. However, it only adds them and doesn't remove the defaults, so if those added nameservers are not working, it will work its way down the list until it finds one that does work, which could be the one provided by your router.
Normally your /etc/resolv.conf is set by DHCP, which will typically add your router as the primary nameserver. Your router will typically have your ISP's nameservers provided by DHCP from the ISP.
Exactly why step 9, resolv.conf becomes immutable and attempts to change it fail so, yes, follow my steps all the way to the end.
Exactly why step 9, resolv.conf becomes immutable and attempts to change it fail so, yes, follow my steps all the way to the end.
I don't want to connect to these DNS servers when I'm not connected to VPN, so I would prefer it to only be changed when I am connected. I guess not everyone has this desire. That was the only reason I had suggested using openresolv. It allows your resolv.conf to only be changed when connected to VPN and otherwise, it'll use the values provided by your DHCP server.
Haven't used Nord so I don't know what they do exactly, however some vpn ops may NAT port 53 to their own server.
If you run into one of those it won't matter where you point resolv.conf except if you point to forwarder which only reads /etc/hosts file.
Maybe you could forward over :443 with TLS that's what google seems to be pushing recently, but it depends on the endpoint I guess.
What's up with the versioning, their download page has the latest RPM as 1.0.0-1 (which is here), versus 3.8.4 on SBo, or 3.8.5 on their CentOS packages for x86_64.
What's up with the versioning, their download page has the latest RPM as 1.0.0-1 (which is here), versus 3.8.4 on SBo, or 3.8.5 on their CentOS packages for x86_64.
RPM packages have their own versioning. They are not relevant to Slackware.
Is the guide in the first post still applicable? the linked file is no longer available. I've installed nordvpn from slackbuilds as suggested by johnny23 but get "Please check your internet connection and try again" error when attempting to connect (after running nordvpnd) so apparently some additional steps are required.
Thanks
The latest post advises to move to the app on SBo.
Alternatively you could set it up via Network Manager (nm) and the nm-applet.
For this you'll need to install the nm-openvpn plugin from SBo (slackbuilds.org/../NetworkManager-openvpn/)
Download the vpn config file you like to use and load into nm:
right-click nm-applet icon; choose 'Edit Connections'
press '+'; on drop-down list go to the very bottom: 'VPN', 'Import a saved VPN configuration'
and load your vpn-file after 'create'; add Nord-user login data; save new connection.
Start vpn by left-clicking nm-applet icon , go to 'vpn' and tick checkbox for connection of choice.
Icon should change to one with a lock-symbol
(on current, xfce)
hth
EDIT: on current the plugin is present; todays' Changelog:
Is the guide in the first post still applicable? the linked file is no longer available. I've installed nordvpn from slackbuilds as suggested by johnny23 but get "Please check your internet connection and try again" error when attempting to connect (after running nordvpnd) so apparently some additional steps are required.
Thanks
The Slackbuild doesn't track the frequent releases of the bug-fixed versions of the NordVPN app. With tweaking the Slackbuild works with the later releases, the lockfile directory was changed a few revisions ago for instance. The NordVPN app works fine for what I want to do with it but equally you could configure OpenVPN in a more Slackware-esq way and not use the app. Maybe another blog post when Slackware 15 lands.
The latest post advises to move to the app on SBo.
Quote:
Originally Posted by johnny23
The NordVPN app works fine for what I want to do with it
Thanks guys I do have the nordvpn app installed it just isn't working right now. Do you have any thoughts on how to fix the "Please check your internet connection and try again" error I'm getting? Nothing has been tinkered with or set up I've just installed the app and run nordvpnd, nordvpn c
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.