Skip to content
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

Problem setting speed over 4294967295 bits #13

Closed
h3lll1 opened this issue Sep 4, 2018 · 5 comments
Closed

Problem setting speed over 4294967295 bits #13

h3lll1 opened this issue Sep 4, 2018 · 5 comments
Assignees

Comments

@h3lll1
Copy link

h3lll1 commented Sep 4, 2018

Hello, i have a strange problem - i cannot set speed over 4294967295 bits. Going to 4294967296 resets the rule to cir 0. What may be the solution?

@h3lll1 h3lll1 changed the title Problem setting speed over 4294000000 bits Problem setting speed over 4294967295 bits Sep 4, 2018
@aabc
Copy link
Owner

aabc commented Sep 4, 2018

Yes, counters are 32-bit. Solution is to recode that part.

@h3lll1
Copy link
Author

h3lll1 commented Sep 4, 2018

you mean long long to add to c code?

@aabc
Copy link
Owner

aabc commented Sep 4, 2018

Sort of. (I may fix it when I get time.) Btw, what value you want to set?

@aabc aabc self-assigned this Sep 4, 2018
@h3lll1
Copy link
Author

h3lll1 commented Sep 5, 2018

I want to go up tp 10Gbit(thats my network card).

@h3lll1
Copy link
Author

h3lll1 commented Dec 29, 2020

Let it closed:
nft > ruleset (vmap) > ip > rate limit
table inet serviceir {
chain serviceir {
type filter hook prerouting priority filter; policy accept;
ip daddr vmap { 10.10.113.2 : jump serviceir-,XXXX : jump XXX };
}
chain serviceirXXXX {
limit rate over YYYYYY kbytes/second counter packets 0 bytes 0 drop
}
|
chain XXXX-XX {
{ itn...y
}

*** vmap is array of ip: jumps and every jump is 2 checks...
***ipv6 is the same 0:: :)

@h3lll1 h3lll1 closed this as completed Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants