Invalid CIDR Address help


I'm trying to setup traefik and was following this wiki: Ultimate Traefik Docker Compose Guide [2022] with LetsEncrypt | SHB

I'm trying to up traefik and getting this error:

2022-10-16T18:03:15.914158292Z time="2022-10-16T13:03:15-05:00" level=info msg="Configuration loaded from flags."
2022-10-16T18:03:15.916419497Z 2022/10/16 13:03:15 traefik.go:80: command traefik error: error while building entryPoint https: error preparing http server: parsing CIDR trusted IPs : invalid CIDR address:

Looks like my error has to do with this line:

  • --entrypoints.https.forwardedHeaders.trustedIPs=$CLOUDFLARE_IPS,$LOCAL_IPS#

not sure why it's not calling my variables right

Looks like those variables are either empty or not valid CIDR addresses. I guess you need to look into their content.

It’s even explained in the linked tutorial: create an .env file and add the IPs to it, see „Define Trusted IPs“. RTFM :slight_smile:

I did read it but appreciate the advice. The values are populated. Also manual is wrong in ideology on static ips for containers so RTFM doesn't always work =)

I ended up just cutting the section though and will reference via container name not ip.