SIGESA: Configuración OpenVPN 3 para Ubuntu 22.04

  • Instalamos opnvnp 3
apt install apt-transport-https
curl -fsSL https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/openvpn-repo-pkg-keyring.gpg
curl -fsSL 

// Replace $DISTRO with the release name depending on your Debian/Ubuntu distribution.
https://swupdate.openvpn.net/community/openvpn3/repos/openvpn3-$DISTRO.list >/etc/apt/sources.list.d/openvpn3.list
  • Para ubuntu 22.04
https://swupdate.openvpn.net/community/openvpn3/repos/openvpn3-jammy.list >/etc/apt/sources.list.d/openvpn3.list
  • Actualizamos y instalamos
apt update
apt install openvpn3

Importar Configuración

  • Debemols estar con el usuario propio no con root
  • Importamos la configuración
openvpn3 config-import --config UNA-CGI-GustavoMatamoros.ovpn
  • Resultado
Configuration imported.  Configuration path: /net/openvpn/v3/configuration/c06564adx14f0x4404xb597xbcae5ac69ec7
  • Si deseamos iniciar sesion
openvpn3 session-start --config UNA-CGI-GustavoMatamoros.ovpn
  • Ver el estado de la sesion
openvpn3 sessions-list
  • Resultado
-----------------------------------------------------------------------------
        Path: /net/openvpn/v3/sessions/ac51e4dcs2241s4f0es9040s7d9219c4e04c
     Created: Tue May 23 16:53:00 2023                  PID: 55989
       Owner: tavo                                   Device: tun0
 Config name: UNA-CGI-GustavoMatamoros.ovpn
Session name: vpn1.una.ac.cr
      Status: Connection, Client connected
-----------------------------------------------------------------------------
  • Desconectarse
openvpn3 session-manage --disconnect --config UNA-CGI-GustavoMatamoros.ovpn