-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Add support for ipv6 subnet in ipStrategy #9747
Conversation
Thanks for this PR. |
Hello @michal-kralik, Thanks a lot for this contribution! I have pushed some commits from review, to add docs, and also rebase the changes to be up to date with the target branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
🚫 the milestone is missing |
086b3f7
to
d7d72b4
Compare
What does this PR do?
Adds support for grouping IPv6 address into a single IP of the defined subnet.
This is useful in
RateLimit
andInFlightReq
middlewares where it's easy to bypass any filtering by changing to a new IPv6.Closes #9721
Motivation
Community contribution
More
Additional Notes
Since I'm new to Traefik, it's not clear if this is the right place to configure this setting.
It's on
ipStrategy.ipv6Subnet
level. It works fine withRateLimit
andInFlightReq
but not withIpWhitelist
.It may make more sense on the middleware level, but since it's applicable only when the
sourceCriterion
is IP, it's ideal either.Happy to change the implementation according to what's preferred.