how to install wireguard

  • Hello everyone, I do not know if this question goes in this forum if not sorry, but I'm trying to find a way to install Wireguard plugin in OMV 6.9.2-1 (Shaitan) but there is no way, I have seen some post on the internet that is supposed to be in the plugins and after installing it is in the Services > Wireguard but I do not even appear in the plugins to look for it, I would like to install it someone here can give me a hand?


    In case it is not possible I will have to install it manually on the same host using `apt install wireguard` and configure it.


    Thanks and I look forward to your answer

    • Official Post

    Did you install omv-extras?

    omv 7.7.5-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    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!

  • Did you install omv-extras?

    Oh I had no idea I needed omv-extras, now I just installed it and I was able to install the wireguard service, is it better to use this add-on for a small office or better to install it manually from console by apt install wireguard? is it the same?

    • Official Post

    s it better to use this add-on for a small office or better to install it manually from console by apt install wireguard? is it the same?

    The plugin installs the wireguard package. It just does the configuration for you in the web interface. I can't think of a reason to not use the plugin if you are using OMV.

    omv 7.7.5-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    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!

    • Official Post

    Oh I had no idea I needed omv-extras, now I just installed it and I was able to install the wireguard service, is it better to use this add-on for a small office or better to install it manually from console by apt install wireguard? is it the same?

    Here's how to use it.

    omv6:omv6_plugins:wireguard [omv-extras.org]

  • Hi ryecoaaron  chente I think I have found a small UI bug. Not sure this is the correct thread.


    In the Wireguard > Clients > Existing client entry, when I choose to set DNS Server from "disable" to "custom" then the DNS text box input appears, I enter 1.1.1.1 and SAVE then save OMV settings.

    Upon coming back, this setting is gone; at least on the UI, there's no trace of the custom DNS.

    Can you please try and confirm it, too?

    Not sure if the QR code updates, I didn't pay attention...


    UPDATE: File /etc/wireguard/wgnet_client1.conf does get updated with custom DNS. So it's the UI not working.


    Moreover, on my setup, a third option exists after "disable" and "custom" that is "127.0.0.53" that I admit not knowing what it is.

    But it again enables the DNS text box on the right... what are we supposed to enter there? Is this a UI glitch?


    Thank you.

    OpenMediaVault 7.4.13-1 • Intel NUC NUC6CAYH • Intel Celeron J3455 • 2x4GB RAM • Samsung 870 QVO 4TB • USB Boot (System)

    • Official Post

    In the Wireguard > Clients > Existing client entry, when I choose to set DNS Server from "disable" to "custom" then the DNS text box input appears, I enter 1.1.1.1 and SAVE then save OMV settings.

    Upon coming back, this setting is gone; at least on the UI, there's no trace of the custom DNS.

    Can you please try and confirm it, too?

    Not sure if the QR code updates, I didn't pay attention...

    You're right, this must be a recent GUI issue because it doesn't happen to me with clients that were already configured before.

    I have three clients and in all of them the field appears visible and with the data that was configured on the day. However, I have created a test client and the value of that field disappears when I edit the new client again.

    In any case it's just a GUI problem. I have checked the configuration file of that new client in /etc/wireguard and the DNS parameter is correctly configured, as it appears when pressing the Client Config button in the GUI. So it's just a display problem, not a function problem.

    ryecoaaron

    • Official Post

    This line causes it and only when you use dns that is four single digit numbers. So, it has been broken for months. Fix pushed. I will update the package later.

    omv 7.7.5-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    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!

  • Thank you ryecoaaron and sorry to be reporting bugs LOL
    Please can you expand to the third option and if this is correct?

    On my setup, a third option exists after "disable" and "custom" that is "127.0.0.53" that I admit not knowing what it is.

    But it again enables the DNS text box on the right... what are we supposed to enter there? Is this a UI glitch?

    OpenMediaVault 7.4.13-1 • Intel NUC NUC6CAYH • Intel Celeron J3455 • 2x4GB RAM • Samsung 870 QVO 4TB • USB Boot (System)

  • You're right, this must be a recent GUI issue because it doesn't happen to me with clients that were already configured before.

    I have three clients and in all of them the field appears visible and with the data that was configured on the day. However, I have created a test client and the value of that field disappears when I edit the new client again.

    chente are you able to click-highlight and press the Trashcan icon to delete an entry whether a client or a tunnel?

    Were you able to delete that test client, later? In both cases, my Trashcan icon is grey not blue :(


    If I delete the entries in /etc/wireguard/wgnet*conf would it be the same? Just to find out how to "reset" the plugin's data (avoid uninstalling and re-installing it)


    Nevermind, dumb of me, need to DISABLE them first :D


    I am still running openmediavault-wireguard 6.3.4 according to the plugins list.

    OpenMediaVault 7.4.13-1 • Intel NUC NUC6CAYH • Intel Celeron J3455 • 2x4GB RAM • Samsung 870 QVO 4TB • USB Boot (System)

    • Official Post

    Please can you expand to the third option and if this is correct?

    On my setup, a third option exists after "disable" and "custom" that is "127.0.0.53" that I admit not knowing what it is.

    But it again enables the DNS text box on the right... what are we supposed to enter there? Is this a UI glitch?

    The dropdown value you select is not stored in the database. So, it is just enumerating the dns servers in /etc/resolv.conf to allow you to put that in the DNS field. It would be nice to automatically fill in the DNS field from the dropdown but I am not able to do that. So, that is why the text box appears on the right.

    omv 7.7.5-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    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!

  • The dropdown value you select [...] is just enumerating the dns servers in /etc/resolv.conf to allow you to put that in the DNS field. It would be nice to automatically fill in the DNS field from the dropdown but I am not able to do that. So, that is why the text box appears on the right.

    Thank you for this clarification, it was not mentioned in the Wiki and certainly not clear that we need to duplicate this number to the text-box opening up on the right.


    Can we perhaps add this mention in the Wiki AND, say, instead of an IP appearing as option (from resolv.fconf) have it appearing as "Detected DNS x.x.x.x" instead? Just a UI suggestion. Thank you for your time, nevertheless.

    OpenMediaVault 7.4.13-1 • Intel NUC NUC6CAYH • Intel Celeron J3455 • 2x4GB RAM • Samsung 870 QVO 4TB • USB Boot (System)

    • Official Post

    Can we perhaps add this mention in the Wiki

    The wiki doesn't cover it because I didn't know what 127.0.0.53 is for either. :)

    Now that I know it I'll add it. In any case, in that document it is possible that the explanation of some other button is still missing. Sometimes it is difficult to follow ryecoaaron changes in plugins, many times I don't see them. If you find anything else, please tell me.

    • Official Post

    I didn't know what 127.0.0.53 is for eithe

    It is for a local caching dns server usually systemd-resolved.


    Sometimes it is difficult to follow ryecoaaron changes in plugins, many times I don't see them.

    This was added in this commit almost a year ago. I don't remember why but I am quite sure it wasn't my idea since I don't use this plugin. Someone must have asked for it.

    omv 7.7.5-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    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!

    • Official Post

    It is for a local caching dns server usually systemd-resolved.

    Yeah. I know that. I mean I didn't know what it was on the menu for.


    This was added in this commit almost a year ago. I don't remember why but I am quite sure it wasn't my idea since I don't use this plugin. Someone must have asked for it.

    Yes, I'm sure you're right. I don't remember it either.

  • Thanks to both of you ryecoaaron and chente


    If you think it is confusing, perhaps consider removing it?


    Or perhaps add in the options drop-down list, this IP with a label preceding it, as I suggested? (don't get me wrong, I work for a UI/UX company :D )

    OpenMediaVault 7.4.13-1 • Intel NUC NUC6CAYH • Intel Celeron J3455 • 2x4GB RAM • Samsung 870 QVO 4TB • USB Boot (System)

    • Official Post

    perhaps consider removing it?

    Someone wanted it and asked for it. Since most people won't use it anyway and the default is ok for most, I think it would be more work to remove it. Now that it is described in the wiki and there is a link to the wiki on all the tabs in the plugin, is that not good enough?

    Or perhaps add in the options drop-down list, this IP with a label preceding it, as I suggested?

    While that may clear up where the IP address came from, it doesn't really tell someone why it is in the list. It also seems like it would make the dropdown too wide on mobile devices and people wouldn't be able to see the IP itself.

    omv 7.7.5-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    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!

  • Hi ryecoaaron please, in your (long, I am sure) to-do list, when you can, when you will get to kindly fix this DNS issue with single-digit IPs, I'd like to report yet another small bug: The QR code is not created or displayed UNLESS one switches away and back to the clients list.


    I understand you don't use the tool but it is incredibly more handy than OpenVPN (and I made it work on macOS, finally) so let me know if you want me to raise the bug(s) to some repo such as Github or here in another, proper thread:

    • When creating a new Client, or editing, and selecting custom DNS, it will not appear upon viewing/editing again (and saving, in the meantime) despite being saved. This could be due to single digit DNS as you said, e.g. 1.1.1.1 or 8.8.8.8 etc.
    • The QR code after creating a new Client, does not get displayed in the list, unless one goes to some other OMV UI page/section and returns.
    • Request: As there's enough column space, requesting to add a "DNS" column (maybe to the very right) with badge values such as "None", "Custom".

    Thank you again (I am on OMV 6 :) )

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!