Re: nft reset element crashes with error BUG: unhandled op 8

Michael Menge <[email protected]>
Newsgroups gmane.comp.security.firewalls.netfilter.general
Message-ID <20250228161637.Horde.iAhuaN_RigKhST4Av_sXpMo@webmail.uni-tuebingen.de>
Quoting Florian Westphal <[email protected]>:

> Michael Menge <[email protected]> wrote:
>> i want to use a named set in nftables to to restrict outgoing http(s)
>> connections only to
>> update servers. As the update servers are behind CDNs with multiple changing
>> IPs i need
>> to automatically update the named set.
>>
>> I discovered that "reset element" was added to the nft command which should
>> enable me to reset
>> the timeout without removing the IPs already in the set, and to keep a clean
>> list of IPs.
>
> No, you can update existing element timeouts:
> nft add element inet filter updatesv4 {1.2.3.4 timeout 1h expires 1h}

even better. IMHO the wiki needs to be clarified

Quoting https://wiki.nftables.org/wiki-nftables/index.php/Element_timeout :

> timeout and expires parameters cannot be modified in this case. The  
> element should be recreated again if you need to reset them.



Quoting Florian Westphal <[email protected]>:

> This should be the right fix, I will submit this formally later:

thx


--
--------------------------------------------------------------------------------
Michael Menge                          Tel.: (49) 7071 / 29-70316
Universität Tübingen                   Fax.: (49) 7071 / 29-5912
Zentrum für Datenverarbeitung          mail:  
[email protected]
Wächterstraße 76
72074 Tübingen
smime.p7s (application/pkcs7-signature, 6.5 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.