OMVEXTRAS - OpenVPN - change wish

    • Offizieller Beitrag

    Yeah - on Save/Apply:

    ok. thanks.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

    • Offizieller Beitrag

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • Uninstalled old, uploaded new and installed.

    • Offizieller Beitrag

    One more test please. Same location for the package.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • As soon I enable the plugin this error raises (if not enabled - it applies OK)

    • Offizieller Beitrag

    The salt cache needs to be cleared to get the changes.


    sudo /usr/bin/salt-call --local saltutil.clear_cache

    sudo omv-salt stage run prepare

    sudo omv-salt deploy run openvpn

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • The salt cache needs to be cleared to get the changes.

    I'm an idiot, sorry!


    So now - no error thrown, but when changed settings, Save/Apply, process /usr/sbin/openvpn still run with same PID (so it doesn't restart process - so no new configuration applied).

    I have to disable, Save/Apply, enable, Save/Apply still.

    • Offizieller Beitrag

    When you ran omv-salt deploy run openvpn, do you have the output?

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • When disabled:


    When enabled:

    After change + Save/Apply:

    but PID (using ps aufx) still same:

    Code
    nobody   19566  0.0  0.0  11784  6892 ?        Ss   18:14   0:00 /usr/sbin/openvpn --daemon ovpn-server --status /run/openvpn/server.status 10 --cd /etc/openvpn --config /etc/openvpn/
    • Offizieller Beitrag

    ok. I just changed the uploaded package so when salt runs, it does the following:


    1. Stops service whether disabled or enabled
    2. if enabled, it runs the setup script
    3. if enabled, it starts the service

    Hopefully that works.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • Just one little change. Could you change client-config section (starting at line 368) in \usr\share\openmediavault\engined\rpc\openvpn.inc like this? (added line 'auth-nocache',). Thats all - better security for clients...

    Einmal editiert, zuletzt von jimmy_cr () aus folgendem Grund: edit: mistake!!

    • Offizieller Beitrag

    could you add, please one more static setting to file \usr\sbin\omv-openvpn before deploy (marked as bold)?

    STOP!!

    I just pushed the current code to github for that last package I built. If you want to make changes based off that, that would be helpful.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

    • Offizieller Beitrag

    change made - https://github.com/OpenMediaVa…d68e7ac48578714ee124e1c06 - and new package uploaded to same location

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

    • Offizieller Beitrag

    Package is in the regular repo now.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • i have installed it but how to configure ?

    I did not get username password.

    How to connect via openvpn client on my android ?

    So many "out-of-topic" questions for this forum/thread. Just use "google". No better answer.

    - just one hint - use "TCP protocol" and "TUN device" if you want to use OVPN with Android device...

Jetzt mitmachen!

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