<?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=Ct_expectation</id>
	<title>Ct expectation - 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=Ct_expectation"/>
	<link rel="alternate" type="text/html" href="http://wiki.nftables.org/wiki-nftables/index.php?title=Ct_expectation&amp;action=history"/>
	<updated>2026-05-13T17:45:37Z</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=Ct_expectation&amp;diff=861&amp;oldid=prev</id>
		<title>Fmyhr: Initial page, using example from nftables 0.9.2 release notes.</title>
		<link rel="alternate" type="text/html" href="http://wiki.nftables.org/wiki-nftables/index.php?title=Ct_expectation&amp;diff=861&amp;oldid=prev"/>
		<updated>2021-04-07T20:59:05Z</updated>

		<summary type="html">&lt;p&gt;Initial page, using example from nftables 0.9.2 release notes.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;You can use a &amp;#039;&amp;#039;ct expectation&amp;#039;&amp;#039; object to create a [[Connection_Tracking_System|connection tracking]] expectation.&lt;br /&gt;
&lt;br /&gt;
The ruleset below creates an expectation on destination port tcp/5432 for each new connection to port tcp/8888. This expectation expires after 1 hour and the maximum number of expectations that are pending to be confirmed are 12.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
table ct_expect_demo {&lt;br /&gt;
&lt;br /&gt;
    ct expectation e_pgsql {&lt;br /&gt;
        protocol tcp&lt;br /&gt;
        dport 5432&lt;br /&gt;
        timeout 1h&lt;br /&gt;
        size 12&lt;br /&gt;
        l3proto ip&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    chain input {&lt;br /&gt;
        type filter hook input priority filter;&lt;br /&gt;
&lt;br /&gt;
        ct state new tcp dport 8888 ct expectation set &amp;quot;e_pgsql&amp;quot;&lt;br /&gt;
        ct state established,related counter accept&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Support for &amp;#039;&amp;#039;ct expectation&amp;#039;&amp;#039; was added in [https://marc.info/?l=netfilter&amp;amp;m=156621590113089&amp;amp;w=2 nftables&amp;amp;nbsp;0.9.2].&lt;/div&gt;</summary>
		<author><name>Fmyhr</name></author>
	</entry>
</feed>