Best practice to secure OMV WebGUI with enabled letsencrypt auto-renew

  • Hello people,


    I am trying to find a best practice solution to secure the OMV's WebGUI while still having the letsencrypt plugin automatically renew the installed certificate(s).


    I want to achive the following:

    • a nextcloud instance running on the OMV computer is accessible from the Internet via https

      • therefore router forwards port 443 to some custom port OMV's nginx listens to to handle nextcloud requests
    • the ssl certificate comes from letsencrypt, auto-renew is enabled

      • this to my knowledge requires that the router also forwards port 80 to 80 of the OMV machine
    • I don't want OMV's WebGUI to be accessible from the Internet at all, only from LAN

    I thought hard about how to achieve this, but I'm not sure what the most elegant and secure solution for this problem is. I thought of or found the following possible solutions:

    • On an old freenas machine that I want to replace I was using jails, each with their own IP address. This enabled me to forward the ports only to those jails that needed this (one for the cloud service, one for letsencrypt) and keep the WebGUI out of the internet. Apparently something similar is not possible with OMV, only by editing the underlying Debian system (multiple IP adresses possible ?). This I would like to avoid, out of the "Treating servers as cattle, not as pets" principle
    • Move the WebGUI to another port, but again this seems to be not directly supported by OMV and would require editing system files
    • Block access from anywhere but the LAN (OMV-Webgui reachable/not reachable from Internet). This again requires editing system files and feels too much of a last resort measure, I would prefer the WebGUI to stay out of Internet access without having to block it in its web server

    Does anyone know of a better solution of how to achieve this? If not, which of the above would be your solution of choice and why?



    Thanks for your help!

Jetzt mitmachen!

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