Difference between revisions of "Bridge filtering"

From nftables wiki
Jump to navigation Jump to search
Line 1: Line 1:
== Examples ==
== Examples ==


Filter on TCP destination port:
Filter on TCP destination port in ipv4 packets:


<source lang="bash">
<source lang="bash">

Revision as of 23:12, 26 November 2020

Examples

Filter on TCP destination port in ipv4 packets:

nft add rule bridge filter forward ether type ip tcp dport 22 accept

Accept arp packet:

nft add rule bridge filter forward ether type arp accept