Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
dnsdist: DSTPortRule #6813
Allows matching based on the destination port of the question. This allows one to apply more powerful rules to ports bound for DoT for instance.
Thanks a lot for this pull request! Code looks good, would you mind adding the new rule to
dnsdist-console.cc so the completion is working?
@zeha while I don't disagree with one potentially being nice - the already existing combo of using a NetmaskGroupRule for that purpose seems just as easy to combine into whatever you want and might provide more re-use for some people.
FWIW we use NMGs to shove a number of destination addresses into a single group, so re-using that group for any port matching we do would still be nice for us. The semantics of something like
Unless someone is really motivated to work on the more advanced