<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.nftables.org/wiki-nftables/index.php?action=history&amp;feed=atom&amp;title=Monitoring_ruleset_updates</id>
	<title>Monitoring ruleset updates - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.nftables.org/wiki-nftables/index.php?action=history&amp;feed=atom&amp;title=Monitoring_ruleset_updates"/>
	<link rel="alternate" type="text/html" href="http://wiki.nftables.org/wiki-nftables/index.php?title=Monitoring_ruleset_updates&amp;action=history"/>
	<updated>2026-05-15T08:59:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>http://wiki.nftables.org/wiki-nftables/index.php?title=Monitoring_ruleset_updates&amp;diff=19&amp;oldid=prev</id>
		<title>Pablo: Created page with &quot;nft can display notifications of ruleset updates through:  &lt;source lang=&quot;bash&quot;&gt;  % nft monitor &lt;/source&gt;  This subscribes &#039;&#039;nft&#039;&#039; to any kind of ruleset update.  You can filte...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.nftables.org/wiki-nftables/index.php?title=Monitoring_ruleset_updates&amp;diff=19&amp;oldid=prev"/>
		<updated>2016-07-13T17:48:27Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;nft can display notifications of ruleset updates through:  &amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;  % nft monitor &amp;lt;/source&amp;gt;  This subscribes &amp;#039;&amp;#039;nft&amp;#039;&amp;#039; to any kind of ruleset update.  You can filte...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;nft can display notifications of ruleset updates through:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 % nft monitor&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This subscribes &amp;#039;&amp;#039;nft&amp;#039;&amp;#039; to any kind of ruleset update.&lt;br /&gt;
&lt;br /&gt;
You can filter out events per type of:&lt;br /&gt;
&lt;br /&gt;
* object: tables, chains, rules, sets and elements.&lt;br /&gt;
* event: new and destroy.&lt;br /&gt;
&lt;br /&gt;
The output format can be:&lt;br /&gt;
&lt;br /&gt;
* plain text (ie. native nft format)&lt;br /&gt;
* xml&lt;br /&gt;
* json&lt;br /&gt;
&lt;br /&gt;
The following example shows how to follow track of rule updates only:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 % nft monitor rules&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
In case, you only want to receive only new rules:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 % nft monitor new rules&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== A bit more developed example ==&lt;br /&gt;
&lt;br /&gt;
Type the following in a terminal:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 term1% nft monitor&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
From a different terminal, if you type this: &lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 term2% nft add table inet filter&lt;br /&gt;
 term2% nft add chain inet filter forward&lt;br /&gt;
 term2% nft add rule inet filter forward counter accept&lt;br /&gt;
 term2% nft flush table inet filter forward&lt;br /&gt;
 term2% nft flush ruleset&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Then, if you go back to the &amp;#039;&amp;#039;term1&amp;#039;&amp;#039;, you&amp;#039;ll see:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 term1% nft monitor&lt;br /&gt;
 add table inet filter&lt;br /&gt;
 add chain inet filter forward&lt;br /&gt;
 add rule inet filter forward counter packets 0 bytes 0 accept&lt;br /&gt;
 delete rule inet filter forward handle 4&lt;br /&gt;
 delete chain inet filter forward&lt;br /&gt;
 delete table inet filter&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pablo</name></author>
	</entry>
</feed>