Trouble with reverse proxy access to OMV WebUI with Traefik

  • I'm trying to setup access to the OMV web interface using Traefik reverse proxy with a subdomain and am just getting bad gateway errors. I have some other services running outside of docker that I am able to access using Traefik so I'm sure it's just something in my config file. Has anyone successfully set up domain access using Traefik?


    Here are my Traefik config files.
    https://pastebin.com/raw/P1eb2WNZ
    https://pastebin.com/raw/D1psVwUt

    OMV7 | Xeon W-1250 | 48 GB | Linux 6.5 PVE

    • Offizieller Beitrag

    Configuration looks ok to me, i haven't set up omv in the domain but I just test it an it works. Bad gateway usually means upstream not working. Check the address port and if it has https


    My servers.toml looks very similar



  • Is there something that needs to be enabled in OMV that could be causing the bad gateway? I've modified my servers.toml a few different ways with no luck.

    OMV7 | Xeon W-1250 | 48 GB | Linux 6.5 PVE

  • Nothing to be enabled. If is a container, have you gone into the container shell to check if you can reach the server ?

    I think this might be my problem, I have traefik running in docker inside of OMV and while traefik and the rest of my containers can get out to the physical network, OMV isn't able to ping any of the containers. OMV itself is a VM inside of Proxmox, OMV is able to ping physical devices on the network as well as other VMs in Proxmox.

    OMV7 | Xeon W-1250 | 48 GB | Linux 6.5 PVE

  • I am able to ping the internal docker network gateway at 172.17.0.1, but all the containers, including traefik, are on a macvlan network that shares the same subnet as the rest of my network and those are unreachable from the host.

    OMV7 | Xeon W-1250 | 48 GB | Linux 6.5 PVE

  • You're probably right about traefik not having to be on macvlan, but I ended up just creating my docker network on a second NIC and that solved the issue.

    OMV7 | Xeon W-1250 | 48 GB | Linux 6.5 PVE

  • Good morning all,


    I allow myself to relaunch this topic, indeed I docker installed on my OMV5 and all my applications are accessible from Traefik, it's really great!
    But what would be the process to integrate OMV? how should I configure it? For example with my dockers it is a great simplicity with the labels but on OMV which is a physical machine I do not know how to do..

  • Good morning all,


    I allow myself to relaunch this topic, indeed I docker installed on my OMV5 and all my applications are accessible from Traefik, it's really great!
    But what would be the process to integrate OMV? how should I configure it? For example with my dockers it is a great simplicity with the labels but on OMV which is a physical machine I do not know how to do..

    Take a look at this.


    https://www.smarthomebeginner.…n-Docker_Host_System_Apps

  • Good morning all,


    I allow myself to relaunch this topic, indeed I docker installed on my OMV5 and all my applications are accessible from Traefik, it's really great!
    But what would be the process to integrate OMV? how should I configure it? For example with my dockers it is a great simplicity with the labels but on OMV which is a physical machine I do not know how to do..

    For anyone stumbling upon this, here's the solution I'm using to proxy traffic to things running on my docker host.
    1. Move OMV web to a new port (in "General Settings" - this example uses 88)
    2. Create static rules for Traefik that point to the docker host/gateway IP as below (It'll likely be 172.17.0.1 or 172.18.0.1 - I've included cockpit here also)
    3. Replace domain.tld with your domain
    4. For more info on Cockpit/Traefik - see here: https://blog.jjhayes.net/wp/2019/11/24/cockpit-and-traefik/


Jetzt mitmachen!

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