From: "Kerin Millar" <kfm@plushkava.net>
To: "Pablo Neira Ayuso" <pablo@netfilter.org>, lilydjwg <lilydjwg@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: expires larger than timeout causes error
Date: Mon, 30 Dec 2024 14:21:04 +0000 [thread overview]
Message-ID: <9baf59ed-06b2-48d2-bd21-c1f744b761d3@app.fastmail.com> (raw)
In-Reply-To: <Z3J8fo-l0iMglG5v@calendula>
On Mon, 30 Dec 2024, at 10:57 AM, Pablo Neira Ayuso wrote:
> On Sun, Dec 29, 2024 at 06:00:36PM +0800, lilydjwg wrote:
>> I have an IPv4 set with timeout 2d, but update its elements to 4d when
>> a rule matches. It was fine until kernel is updated to 6.12.6 or 6.12.7.
>> E.g. the following snippet gives an error when importing:
>>
>> table inet blocker {
>> set spam_ips {
>> type ipv4_addr
>> size 65535
>> flags dynamic,timeout
>> timeout 2d
>> elements = { 1.2.3.4 expires 3d }
>> }
>> }
>>
>> a.nft:7:16-22: Error: Could not process rule: Numerical result out of range
>> elements = { 1.2.3.4 expires 3d }
>> ^^^^^^^
>>
>> kernel 6.10.6 worked just fine. nftables cli v1.1.1.
>>
>> Despite I can't import the set, existing elements can still be updated
>> to timeout more that 2d.
>>
>> A new bug? Or a new limitation?
>
> You have to use _timeout_ to override the default set timeout policy
> for your elements.
It would be more intuitive were the circumflex characters to indicate "expires 3d" or "3d" as being at fault.
--
Kerin Millar
next prev parent reply other threads:[~2024-12-30 14:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-29 10:00 expires larger than timeout causes error lilydjwg
2024-12-29 13:18 ` Harshit Mogalapalli
2024-12-29 17:01 ` Reindl Harald
2024-12-30 15:19 ` lilydjwg
2024-12-30 15:40 ` Reindl Harald
2024-12-30 22:16 ` Kerin Millar
2024-12-30 10:57 ` Pablo Neira Ayuso
2024-12-30 14:21 ` Kerin Millar [this message]
2024-12-30 15:26 ` lilydjwg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9baf59ed-06b2-48d2-bd21-c1f744b761d3@app.fastmail.com \
--to=kfm@plushkava.net \
--cc=lilydjwg@gmail.com \
--cc=netfilter@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).