I'm trying to setup openvpn using a portainer stack and have difficulties with it. Here's my portainer docker-compose:
When I visit vpn.mysrv.duckdns.org there's 404. Log files from portainer and docker looks good to me. Please advise.
I know this topic is quite old but I've stumbled upon this issue and I'm guessing some others might too.
The linuxserver image you're using makes use of self-generated certificates for HTTPS. You specified
traefik.protocol=https in your docker-compose, which is good, but make sure to also add the necessary certificate in Traefik configuration or set the
insecureSkipVerify option to
I'm using a very similar docker-compose as you so shouldn't be a problem.
Hope this helps someone.
Hello Gregoire. Could you expand on "add the necessary certificate in Traefik configuration" please? I can't seem to get this working with Traefik v2. Bad gateway, if I include the tlscertresolver, and "404 page not found" if I leave the certresolver out. Openvpn-as works fine locally.
##### OpenVPN Access Server #####`
# - "traefik.http.routers.vpn.entrypoints=web"
# - "traefik.http.routers.vpn.rule=Host(`vpn.host.com`)"
# - "traefik.http.routers.vpn-secure.tls=true"
# - "traefik.http.routers.vpn-secure.tls.certresolver=mytlschallenge"
# - "traefik.http.routers.vpn.middlewares=https-redirect@file"
Nevermind. I was missing the loadbalancer sheme as such
Thank you for coming back and telling us how you solved it! This saved me couple of hours of finding this