<?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=Accepting_and_dropping_packets</id>
	<title>Accepting and dropping packets - 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=Accepting_and_dropping_packets"/>
	<link rel="alternate" type="text/html" href="http://wiki.nftables.org/wiki-nftables/index.php?title=Accepting_and_dropping_packets&amp;action=history"/>
	<updated>2026-05-13T18:30:14Z</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=Accepting_and_dropping_packets&amp;diff=13&amp;oldid=prev</id>
		<title>Pablo: Created page with &quot;= Dropping packets =  You can use the &#039;&#039;drop&#039;&#039; option to drop packets. Note that drop is a &#039;&#039;&#039;terminating&#039;&#039;&#039; action, so you cannot add any other action after it.  &lt;source lang...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.nftables.org/wiki-nftables/index.php?title=Accepting_and_dropping_packets&amp;diff=13&amp;oldid=prev"/>
		<updated>2016-07-13T17:45:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Dropping packets =  You can use the &amp;#039;&amp;#039;drop&amp;#039;&amp;#039; option to drop packets. Note that drop is a &amp;#039;&amp;#039;&amp;#039;terminating&amp;#039;&amp;#039;&amp;#039; action, so you cannot add any other action after it.  &amp;lt;source lang...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Dropping packets =&lt;br /&gt;
&lt;br /&gt;
You can use the &amp;#039;&amp;#039;drop&amp;#039;&amp;#039; option to drop packets. Note that drop is a &amp;#039;&amp;#039;&amp;#039;terminating&amp;#039;&amp;#039;&amp;#039; action, so you cannot add any other action after it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nft add rule filter output drop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beware when testing this, you&amp;#039;ll likely lose any Internet connectivity :-).&lt;br /&gt;
&lt;br /&gt;
= Accepting packets =&lt;br /&gt;
&lt;br /&gt;
A simple rule to accept any sort of traffic is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nft add rule filter output accept&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can add counters to that rule:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nft add rule filter output counter accept&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So you can watch that all traffic is actually accepted:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nft list table filter&lt;br /&gt;
table ip filter {&lt;br /&gt;
        chain output {&lt;br /&gt;
                 type filter hook output priority 0;&lt;br /&gt;
                 counter packets 1 bytes 84 accept&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pablo</name></author>
	</entry>
</feed>