-
Notifications
You must be signed in to change notification settings - Fork 29
templates: allow inverted limits #85
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
base: master
Are you sure you want to change the base?
Conversation
|
Why dont you add a single bool parameter that limit is in reverse? Same lines already touched... |
I didn't realize that approach. I'll try it later... |
Translate inverted limits to nft `limit rate over` which specifies that the rule is matching packets over the rate limit. Signed-off-by: Fengyu Wu <saldry@proton.me>
|
Updated. Please check :) @brada4 |
|
You need to load new parameter in |
firewall4/root/usr/share/ucode/fw4.uc Lines 1302 to 1330 in b6e5157
I'm afraid I don't quite understand what you mean. |
Translate inverted limits to nft
limit rate overwhich specifies that the rule is matching packets over the rate limit.