<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - sets: timeout+counter"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1493">1493</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>sets: timeout+counter
</td>
</tr>
<tr>
<th>Product</th>
<td>nftables
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86_64
</td>
</tr>
<tr>
<th>OS</th>
<td>Debian GNU/Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Component</th>
<td>nft
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pablo@netfilter.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bugz@dragon-home.dyndns-mail.com
</td>
</tr></table>
<p>
<div>
<pre># 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)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>