-
-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SWAG Auto-proxy] Add support for geoblocking #764
Comments
I'm not familiar with either geoblocking option so I O can't say whether it would be feasible or not. But if you flesh out your suggestion more, with specific flag options and how the confs would be sed'ed, I'll have a better idea on whether it can be feasibly standardized. |
Installing the dbip mod is quite simple;
Considering the following authelia configuration with geoblocking:
Geoblocking with value 'whitelist' would mean adding the following lines automatically:
while geoblocking with the value 'blacklist' would mean adding:
the value of 'none' would simply not do anything, so does not need to be an option since the dbip.conf already takes care of geoblocking configuration, the snippets won't change and can be statically applied. Information gathered from https://virtualize.link/secure/#geoblock |
edited previous comments. |
Or alternatively, add support for adding anything generic. That way it would be the user's responsibility to make sure it works. For instance, given that the user created a config file blacklist.conf and internal.conf. Then this dockermod simply puts the lines in and done. |
To work around this currently not being supported, I added the lines
to |
The current dbip or maxmind mods for swag allow geoblocking support by adding explicit lines in application's individual config file.
When using auto proxy, the user does not have individual config files.
Suggestion:
Add a new label
swag_geoblock
with possible values:none; allow; deny
(orwhitelist; blacklist
) to automatically include the relevant snippets for blocking based on the dbip or maxmind mods.The text was updated successfully, but these errors were encountered: