Page 1 of 1
Upgrade OpenVPN Server for 2.3.10 to latest version
Posted: Mon Feb 19, 2018 8:52 am
by jhaines
Hi,
I am trying to upgrade my OpenVPN Server for 2.3.10 to a newer version on Ubuntu 16.04 but having issues does anyone know if there is a know issue and the commands needed I have done the normal apt-get update and upgrade?
Regards
Julian
Re: Upgrade OpenVPN Server for 2.3.10 to latest version
Posted: Mon Feb 19, 2018 9:00 am
by jhaines
Hi,
I found out how to do it and used the commands below to install the stable version on Xenial
sudo -s
wget -O -
https://swupdate.openvpn.net/repos/repo ... pg|apt-key add -
echo "deb
http://build.openvpn.net/debian/openvpn/stable xenial main" > /etc/apt/sources.list.d/openvpn-aptrepo.list
apt-get update && apt-get install openvpn
Re: Upgrade OpenVPN Server for 2.3.10 to latest version
Posted: Sat Mar 03, 2018 1:07 pm
by ryanrazer
Would you know how to apply this method to Ubuntu version?
I'm sorry but i'm new to Linux. I downloaded proper version for ubuntu from OpenVPN site
-
http://swupdate.openvpn.org/as/openvpn- ... amd_64.deb.
When file is downloaded i used:
dpkg -i openvpn-as-2.5-Ubuntu16.amd_64.deb, as written in this manual
https://docs.openvpn.net/configuration/ ... r-updated/.
The terminal says like it installed:
sudo dpkg -i openvpn-as-2.5-Ubuntu16.amd_64.deb
(Reading database ... 259665 files and directories currently installed.)
Preparing to unpack openvpn-as-2.5-Ubuntu16.amd_64.deb ...
Upgrade detected (debian)...
Unpacking openvpn-as (2.5-Ubuntu16) over (2.5-Ubuntu16) ...
Setting up openvpn-as (2.5-Ubuntu16) ...
Backing up configuration and DB files to /usr/local/openvpn_as/etc/backup prior to update.
Looks fine but the i do:
apt-get update && apt-get install openvpn
Hit:1 http://si.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://si.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://si.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Fetched 102 kB in 0s (316 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
openvpn is already the newest version (2.3.10-1ubuntu2.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Wth, i downloaded version 2.5 and it says its already on latest 2.3 version... -_-
Re: Upgrade OpenVPN Server for 2.3.10 to latest version
Posted: Sat Mar 03, 2018 1:14 pm
by ryanrazer
Would you know how to apply this method to Ubuntu as well? Sorry I'm new to Linux.
What i did was follow this article:
https://docs.openvpn.net/configuration/ ... r-updated/
I downloaded latest version:
http://swupdate.openvpn.org/as/openvpn- ... amd_64.deb
Then i went to install using:
sudo dpkg -i openvpn-as-2.5-Ubuntu16.amd_64.deb
(Reading database ... 259665 files and directories currently installed.)
Preparing to unpack openvpn-as-2.5-Ubuntu16.amd_64.deb ...
Upgrade detected (debian)...
Unpacking openvpn-as (2.5-Ubuntu16) over (2.5-Ubuntu16) ...
Setting up openvpn-as (2.5-Ubuntu16) ...
Backing up configuration and DB files to /usr/local/openvpn_as/etc/backup prior to update.
Looks like it was successfull. I did the
sudo apt-get update && apt-get upgrade && apt-get dist-upgrade
Works fine, 0 updates available. Then i rebooted my server and restarted OpenVPN.
When i do:
openvpn --version
OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jun 22 2017
library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08
and openvpn update gives me:
apt-get update && apt-get install openvpn
Hit:1 http://si.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://si.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://si.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Fetched 102 kB in 0s (316 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
openvpn is already the newest version (2.3.10-1ubuntu2.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I downloaded version 2.5 and it says already on newest version 2.3.... WTH?!
Anyone any ideas?
Thanks,
Ryan
Re: Upgrade OpenVPN Server for 2.3.10 to latest version
Posted: Sat Mar 03, 2018 1:23 pm
by TinCanTech
ryanrazer wrote: ↑Sat Mar 03, 2018 1:14 pm
sudo dpkg -i openvpn-
as-2.5-Ubuntu16.amd_64.deb
That is
Openvpn Access Server not OpenVPN.
Re: Upgrade OpenVPN Server for 2.3.10 to latest version
Posted: Sat Mar 03, 2018 1:42 pm
by ryanrazer
TinCanTech wrote: ↑Sat Mar 03, 2018 1:23 pm
ryanrazer wrote: ↑Sat Mar 03, 2018 1:14 pm
sudo dpkg -i openvpn-
as-2.5-Ubuntu16.amd_64.deb
That is
Openvpn Access Server not OpenVPN.
Shoot, thank you!