How to configure openvpn plugin

  • I removed the openvpn plugin installes it. No error message but the syslog says:


    Nov 21 21:05:52 raspberrypi systemd[1]: openvpn@server.service: Scheduled restart job, restart counter is at 37.

    Nov 21 21:05:52 raspberrypi systemd[1]: Stopped OpenVPN connection to server.

    Nov 21 21:05:52 raspberrypi systemd[1]: Starting OpenVPN connection to server...

    Nov 21 21:05:52 raspberrypi systemd[1]: Started OpenVPN connection to server.

    Nov 21 21:05:52 raspberrypi systemd[1]: openvpn@server.service: Main process exited, code=exited, status=1/FAILURE

    Nov 21 21:05:52 raspberrypi systemd[1]: openvpn@server.service: Failed with result 'exit-code'.

  • thsis is what /var/log/openvpn.log says


    Sat Nov 21 21:08:40 2020 OpenVPN 2.4.7 arm-unknown-linux-gnueabihf [SSL (OpenSS$

    Sat Nov 21 21:08:40 2020 library versions: OpenSSL 1.1.1d 10 Sep 2019, LZO 2.10

    Sat Nov 21 21:08:40 2020 NOTE: your local LAN uses the extremely common subnet $

    Sat Nov 21 21:08:40 2020 OpenSSL: error:0909006C:PEM routines:get_name:no start$

    Sat Nov 21 21:08:40 2020 Cannot load DH parameters from /etc/openvpn/pki/dh.pem

    Sat Nov 21 21:08:40 2020 Exiting due to fatal error



    This is longer (i dont know how to copy this file)


    Sat Nov 21 21:08:40 2020 OpenVPN 2.4.7 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 20 2019

    Sat Nov 21 21:08:40 2020 library versions: OpenSSL 1.1.1d 10 Sep 2019, LZO 2.10

    Sat Nov 21 21:08:40 2020 NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as interne$

    Sat Nov 21 21:08:40 2020 OpenSSL: error:0909006C:PEM routines:get_name:no start line

    Sat Nov 21 21:08:40 2020 Cannot load DH parameters from /etc/openvpn/pki/dh.pem

    Sat Nov 21 21:08:40 2020 Exiting due to fatal error

  • you ruined whole config file probably now. Set config through web, but do no enable OpenVPN. Save/Apply. Then go to console, run

    Code
    openvpn --config /etc/openvpn/server.conf --log /var/log/openvpn.log

    and post whats in /var/log/openvpn.log

  • /var/log/openvpn.log

    Sat Nov 21 21:43:55 2020 OpenVPN 2.4.7 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 20 2019

    Sat Nov 21 21:43:55 2020 library versions: OpenSSL 1.1.1d 10 Sep 2019, LZO 2.10

    Sat Nov 21 21:43:55 2020 NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the V$

    Sat Nov 21 21:43:55 2020 OpenSSL: error:0909006C:PEM routines:get_name:no start line

    Sat Nov 21 21:43:55 2020 Cannot load DH parameters from /etc/openvpn/pki/dh.pem

    Sat Nov 21 21:43:55 2020 Exiting due to fatal error

    • Offizieller Beitrag

    That is a pity. So the openvpn plugin is not working for the raspberry at this moment.

    I don't know much about openvpn but the plugin not working should have nothing to do with the RPi. The openvpn package wouldn't be provided if it didn't work on arm devices like the RPi. And the plugin doesn't do anything architecture specific.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Its strange what he send yesterday - there is openvpn process runing, but parameters are really strange.

    for example:

    --config /etc/openvpn/openvpn.conf (cannot find /etc/openvpn/openvpn.conf anywhere in github sourcecode of plugin)

    --client-config-dir /etc/openvpn/ccd (cannot find /etc/openvpn/ccd anywhere in github sourcecode of plugin)

    --crl-verify /etc/openvpn/crl.pem (cannot find /etc/openvpn/crl.pem anywhere in github sourcecode of plugin)

    These parameters are not set by OMV plugin imho...

    Are you sure "Birdybird" you didn't try to install OpenVPN on you own and then installed as OMV plugin? Are you trying this plugin on clean installation of OMV?


  • pcmag.biz i beliefe. I googled openvpn on omv5 with portainer. There is a complete manual online. But problem is i have no access to local files. Also i have a sdcard with

    Raspian buster with desktop with minidlna

    And pivpn where i can access the local files.

    So i hoped that omv5 with openvpn has also access to local files.

  • Btw, it's a bit like hijkacking his thread, but as i have OpenVPN-as installed via Portainer (i guess similarly to OP), running but malfunctionning (i can connect to the VPN from outside, but i can't reach anything through the VPN, and i haven't yet taken the time to correct it), is there any major difference between the plugin and the docker container ?


    Is the plugin a VPN client or a server ?


    Thx

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!