Large ipwhitelist with dynamic configuration

Hello.

I decided to use dynamic configurations with labels, but now I'm struggling with the ipwhitelist middleware. I have to handle a large amount (about 20-30) different IPs.

Any best practise on how to handle that with dynamic configuration labels?

Thanks,
Karramba

PS: Same question with multiple basicauth users.

Any ideas here? Sorry for pushing.

Hello,

ipwhitelist middleware support CIDR, maybe you can reduce the number of IP by using it.

for basicauth you can use file: https://docs.traefik.io/v2.1/middlewares/basicauth/#usersfile

Thanks, usersfile will help. Totally missed that in the docs. CIDR won't help, because the IPs are totally random and not groupabe by ranges.