client connect in openvpn (ubuntu desktop to ubuntu server

Asked by Kendall Stone on 2020-06-21

unable to connect ubuntu 18.04 desktop client to ubuntu 18.04 server - error message listed below

kendall@kendall-HP-Pavilion-dv9000-RP282UA-ABA:~$ sudo openvpn /etc/openvpn/desktop.conf
[sudo] password for kendall:
Tue Jun 16 17:50:50 2020 Unrecognized option or missing parameter(s) in /etc/openvpn/desktop.conf:13: block-outside-dns (2.3.10)
Options error: Unrecognized option or missing parameter(s) in /etc/openvpn/desktop.conf:18: tls-crypt (2.3.10)

follopwed roadwarrior installation and nixCraft 5 minute setup.

have updated server to openvvm 2.4.4
and client to 2.3.10

any help would be appreciated

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2020-06-21
Last reply:
2020-06-22

Where did you get the desktop.conf file, please?

Manfred Hampl (m-hampl) said : #2

"Unrecognized option or missing parameter(s) in /etc/openvpn/desktop.conf"

Your configuration file seems to be wrong.
What is the output of
cat -n /etc/openvpn/desktop.conf
(In case that this contains information that should be kept secret, please obfuscate it.)

The standard Ubuntu repositories have version 2.4.4-* for Ubuntu 18.04 bionic.
Why are you still running version 2.3.10 on the client?

What is the output of the commands (on server and client)

uname -a
lsb_release -crid
apt-cache policy openvpn

Kendall Stone (kendallstone) said : #3

desktop conf file was generated as the last step in the install script

What install script please?

Kendall Stone (kendallstone) said : #5

kendall@kendall-ProLiant-DL360-G5:~$ uname -a
Linux kendall-ProLiant-DL360-G5 5.3.0-59-generic #53~18.04.1-Ubuntu SMP Thu Jun 4 14:58:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
kendall@kendall-ProLiant-DL360-G5:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
kendall@kendall-ProLiant-DL360-G5:~$ apt-cache policy openvpn
openvpn:
  Installed: 2.4.4-2ubuntu1.3
  Candidate: 2.4.4-2ubuntu1.3
  Version table:
 *** 2.4.4-2ubuntu1.3 500
        500 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.4.4-2ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
kendall@kendall-ProLiant-DL360-G5:~$

desktop.ovpn below less certificates

client
dev tun
proto udp
remote root@kendall-Proliant-DL360-G5 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth ******
cipher AES******
ignore-unknown-option block-outside-dns
block-outside-dns
verb 3
<ca>

Kendall Stone (kendallstone) said : #6

Roadwarrior OpenVPN installer
command was:
wget https://git.io/vpn -O openvpn-install.sh &&bash openvpn-install.sh

Manfred Hampl (m-hampl) said : #7

The standard Ubuntu repositories have version 2.4.4-* for Ubuntu 18.04 bionic.
Why are you still running version 2.3.10 on the client?

What is the output of the commands (on client)

uname -a
lsb_release -crid
apt-cache policy openvpn

Kendall Stone (kendallstone) said : #8

the client is running ubuntu 16.04 due to architecture I haven't upgraded (32 bit)

In an effort to bypass that as an issue I have tried an android client as well and get a failed connection to the server

Kendall Stone (kendallstone) said : #9

on client

kendall@kendall-HP-Pavilion-dv9000-RP282UA-ABA:~$ uname -a
Linux kendall-HP-Pavilion-dv9000-RP282UA-ABA 4.15.0-106-generic #107~16.04.1-Ubuntu SMP Thu Jun 4 15:39:45 UTC 2020 i686 i686 i686 GNU/Linux
kendall@kendall-HP-Pavilion-dv9000-RP282UA-ABA:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
kendall@kendall-HP-Pavilion-dv9000-RP282UA-ABA:~$ apt-cache policy openvpn
openvpn:
  Installed: 2.3.10-1ubuntu2.2
  Candidate: 2.3.10-1ubuntu2.2
  Version table:
 *** 2.3.10-1ubuntu2.2 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages
        100 /var/lib/dpkg/status
     2.3.10-1ubuntu2.1 500
        500 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages
     2.3.10-1ubuntu2 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main i386 Packages

Manfred Hampl (m-hampl) said : #10

Your client is running Ubuntu 16.04 and not 18.04 as written in the first line of the question text!

If you read the openvpn-install.sh script from https://git.io/vpn you should see

if [[ "$os" == "ubuntu" && "$os_version" -lt 1804 ]]; then
 echo "Ubuntu 18.04 or higher is required to use this installer.
This version of Ubuntu is too old and unsupported."
 exit
fi

Can you help with this problem?

Provide an answer of your own, or ask Kendall Stone for more information if necessary.

To post a message you must log in.