I want to allow anyone from the local network to access all resources without authentication and only require it when accessing from outside. So, I would love to just whitelist my network's entire CIDR to forego the authentication when at home.
There is middleware chaining in Traefik as far as I know, but I am not aware of any "conditional middleware" (i.e. if $ip in 192.168.1.0/24 then next() else end()).
My use-case is with k3s/traefik - ServiceLB is configured and traffic policy is set to local on the LoadBalancer; so Traefik sees the actual IP.
Hello there!
I want to allow anyone from the local network to access all resources without authentication and only require it when accessing from outside. So, I would love to just whitelist my network's entire CIDR to forego the authentication when at home.
There is middleware chaining in Traefik as far as I know, but I am not aware of any "conditional middleware" (i.e.
if $ip in 192.168.1.0/24 then next() else end()
).My use-case is with k3s/traefik - ServiceLB is configured and traffic policy is set to local on the
LoadBalancer
; so Traefik sees the actual IP.Thanks and kind regards, Ingwie