Guide: OpenVPN on Linux terminal

PP Stephan

Staff member
This thread refers to the Howto OpenVPN on Linux Terminal. Please only post in this thread if you have questions, comments or feedback regarding this howto. To keep this thread updated and free from obsolete and redundant information, this thread will be cleaned up occasionally.
 
Last edited:
Hello,

The file "update-resolv-conf" is missing from the openvpn .opvn zip bundle.
It is missing from both the UDP and TCP zip files.

Is there a link that can be used to download the file?
As a new member, I am excited to use the product, but without the file, I can not start the vpn connection.

Cheers
 
Hello,

### For context, I am running a non-Debian based distro
### The below steps allowed me to get everything up and running

o I was able to get it everything working by actually going
through the openvpn package:
$ rpm -ql openvpn | grep -i resolv
/usr/share/doc/openvpn/contrib/pull-resolv-conf
/usr/share/doc/openvpn/contrib/pull-resolv-conf/client.down
/usr/share/doc/openvpn/contrib/pull-resolv-conf/client.up

o I read "/usr/share/doc/openvpn/contrib/pull-resolv-conf/client.up"
and saw the instructions to make
the necessary changes to /etc/resolv.conf

# INSTALL NOTES:
# Place this in /etc/openvpn/client.up
# Then, add the following to your /etc/openvpn/<clientconfig>.conf:
# client
# up /etc/openvpn/client.up
# Next, "chmod a+x /etc/openvpn/client.up"

o I copied both files
# cp /usr/share/doc/openvpn/contrib/pull-resolv-conf/client*
/etc/openvpn/

o Made them both executable
# chmod +x /etc/openvpn/client*

o I added the lines to the NewYork.opvn file:
up /etc/openvpn/client.up
down /etc/openvpn/client.down

o Ran openvpn with the above profile
# sudo openvpn /etc/openvpn/NewYork.ovpn

o Received "Initialization Sequence Completed"

o /etc/resolv.conf successfully updated.

o I also confirmed no DNS leak at
https://www.perfect-privacy.com/dns-leaktest/
 
Looks like the IP addresses in your resolv.conf are Qubes' own DNS servers, normally you would expect to find two of Perfect Privacy's servers there. I'm sorry but I don't think I can help you there as I have no experience with Qubes. Since it is by design a very locked down OS I'd assume that something prevents the VPN connection from getting set up as it would on other systems. I'm just guessing though.
 
Hi,
For privacy reasons I've disabled ipv6 at my Ubuntu 18.04 and it seems I cannot connect because of this:
https://pastebin.com/PqcQybrS

Is there any way to use your service with ubuntu + openvpn command line + without ipv6?
Or maybe this issue is something else?
 
Back
Top