Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 578824 - net-firewall/nftables-0.5-r2: limit rate: burst parameter doesn't work
Summary: net-firewall/nftables-0.5-r2: limit rate: burst parameter doesn't work
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: nvinson234
URL: http://wiki.nftables.org/wiki-nftable...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-02 11:12 UTC by am1
Modified: 2016-04-11 07:22 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description am1 2016-04-02 11:12:43 UTC
Wanted to use the "burst"-parameter in "limit rate" of nftables, but it doesn't work.

nft add rule ip filter labor udp dport 33045 limit rate 3360/second burst 140 packets counter accept
<cmdline>:1:95-101: Error: syntax error, unexpected packets, expecting end of file or newline or semicolon
add rule ip filter labor udp dport 33045 limit rate 3360/second burst 140 packets counter accept
                                                                          ^^^^^^^

Official commit (http://git.netfilter.org/nftables/commit/?id=174f4a120ec7644531728621cfab5ce7fdb481c3) requires a kernel >= 4.3-rc1.

Seems like net-firewall/nftables is outdated!?

I'm using:
sys-kernel/gentoo-sources-4.5.0-r1
+symlink -build -experimental -kdbus

net-firewall/nftables-0.5-r2
+readline -debug -gmp

net-libs/libnftnl-1.0.5
-examples -json -static-libs -test -xml
Comment 1 nvinson234 2016-04-11 07:22:13 UTC
Last release was 0.5 and was released on 2015-09-16.  This feature was added on 2015-09-23.  Therefore, it is a feature that has yet to be officially released.

Gentoo generally discourages backporting later changes into earlier releases.  That said, if you want to test the feature out early, you can patch nftables using epatch_user.  See https://wiki.gentoo.org/wiki//etc/portage/patches on how to use that feature.

Otherwise, please wait for the next release.  Thanks.