Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the astra-addon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/erasoporte.es/soporte.erasoporte.es/wp-includes/functions.php on line 6260

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the astra-sites domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/erasoporte.es/soporte.erasoporte.es/wp-includes/functions.php on line 6260

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the uael domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/erasoporte.es/soporte.erasoporte.es/wp-includes/functions.php on line 6260

Warning: Attempt to read property "post_title" on null in /var/www/vhosts/erasoporte.es/soporte.erasoporte.es/wp-content/plugins/elementor/core/isolation/elementor-adapter.php on line 28

Deprecated: ¡La función WP_Dependencies->add_data() ha sido llamada con un argumento que está obsoleto desde la versión 6.9.0! Los comentarios condicionales de IE los ignoran todos los navegadores compatibles. in /var/www/vhosts/erasoporte.es/soporte.erasoporte.es/wp-includes/functions.php on line 6260
OpenVPN - ERA Hosting

OpenVPN

Instalar openvpn: yum -y install openvpn
Si no se instala, probar a instalar el repositorio: yum -y install epel-repository (o epel-release)
Crear un cliente en el servidor Openvpn.
Copiar el archivo .ovpn a /etc/openvpn y renombrarlo a cliente.conf
(si se copia y pega en consola, abrir con notepad++ y darle a editar, conversion finde linea y convertir a windows)

Crear en /etc/openvpn un archivo llamado auth con las credenciales (una entrada por linea)
Agregar el archivo al cliente.conf en la linea auth-user-pass /etc/openvpn/auth
Cambiar keepalive a 10 60
Probar a ejecutar systemctl start openvpn@cliente (sin el .conf)

En Almalinux, si no carga el servicio probar con: systemctl start openvpn-client@cliente

Ya que al hacer rpm -ql openvpn | grep service indica que esa es la nomenclatura
Tambien en Almalinux hay que copiar el archivo cliente.conf a la carpeta client de openvpn

Comprobar si ha conectado.
Hacer el servicio autoarrancable:
systemctl enable openvpn@cliente o systemctl enable openvpn-client@cliente

En plesk releer IPs y asignar la IP de vpn como compartida con la IP publica

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *