[Bug 1493] New: sets: timeout+counter
bugzilla-daemon at netfilter.org
bugzilla-daemon at netfilter.org
Sat Jan 16 00:56:48 CET 2021
https://bugzilla.netfilter.org/show_bug.cgi?id=1493
Bug ID: 1493
Summary: sets: timeout+counter
Product: nftables
Version: unspecified
Hardware: x86_64
OS: Debian GNU/Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: nft
Assignee: pablo at netfilter.org
Reporter: bugz at dragon-home.dyndns-mail.com
# cat tst.nft
#!/usr/sbin/nft -f
flush ruleset
add table ip filter
add set ip filter tst { type ipv4_addr; counter; flags timeout; size 8; }
add chain ip filter fin { type filter hook input priority filter; policy accept
; }
add rule ip filter fin tcp dport 1111 add @tst { ip daddr timeout 5m }
add element ip filter tst { 127.0.0.2 timeout 10m }
# ./tst.nft
# nft list ruleset
table ip filter {
set tst {
type ipv4_addr
size 8
flags timeout
counter
elements = { 127.0.0.2 timeout 10m expires 9m38s836ms counter packets 0
bytes 0 }
}
chain fin {
type filter hook input priority filter; policy accept;
tcp dport 1111 add @tst { ip daddr timeout 5m }
}
}
# telnet 127.0.0.2 1111
...
# nft list ruleset
table ip filter {
set tst {
type ipv4_addr
size 8
flags timeout
counter
elements = { 127.0.0.2 timeout 10m expires 9m13s516ms counter packets 1
bytes 60 }
}
chain fin {
type filter hook input priority filter; policy accept;
tcp dport 1111 add @tst { ip daddr timeout 5m }
}
}
# telnet 127.0.0.1 1111
...
# nft list ruleset
table ip filter {
set tst {
type ipv4_addr
size 8
flags timeout
counter
elements = { 127.0.0.1 expires 4m57s440ms, 127.0.0.2 timeout 10m
expires 8m59s428ms counter packets 1 bytes 60 }
}
chain fin {
type filter hook input priority filter; policy accept;
tcp dport 1111 add @tst { ip daddr timeout 5m }
}
}
Where is the counter for 127.0.0.1?
Debian10
linux-image-5.9.0-0.bpo.2-amd64 (5.9.6-1~bpo10+1)
nftables v0.9.6 (0.9.6-1~bpo10+1 amd64)
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20210115/dd173099/attachment.html>
More information about the netfilter-buglog
mailing list