You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I was following your "2 Factor Auth and Single Sign on with Authelia" video and I have an issue with the whitelist middleware on traefik. for some reason is not quite working.
here is the section of the config.yml file. In here, I'm not sure if you need some indentation on the IP field.
default-whitelist:
ipWhiteList:
sourceRange:
- "98.143.96.201/32" # you have it like this
- "98.143.96.201/32" # I think it should be like this
It doesn't matter from what IP I try to connect, I always reach both traefik and portainer portals.
I even added these two lines on both docker-compose files (traefik and portainer) and recreate the containers but nothing changed.
Does the order of the lines matter? I tried at the end of the labels section, then right after you define the host and set the login credentials. Made no difference.
I also tried to add the middleware directly on an external service that I'm running but nothing, it doesn't work. I can reach the site from any IP.
Here is a section of the config.yml file.
This discussion was converted from issue #6 on April 07, 2022 18:03.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I was following your "2 Factor Auth and Single Sign on with Authelia" video and I have an issue with the whitelist middleware on traefik. for some reason is not quite working.
here is the section of the
config.yml
file. In here, I'm not sure if you need some indentation on the IP field.It doesn't matter from what IP I try to connect, I always reach both traefik and portainer portals.
I even added these two lines on both docker-compose files (traefik and portainer) and recreate the containers but nothing changed.
Does the order of the lines matter? I tried at the end of the labels section, then right after you define the host and set the login credentials. Made no difference.
I also tried to add the middleware directly on an external service that I'm running but nothing, it doesn't work. I can reach the site from any IP.
Here is a section of the
config.yml
file.Do we need both the labels and the middleware set? what else can I try to make it work?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions