summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_pkttype.txlate
blob: c69f56f9d3cd2465e5d84f3078cc5ed489a00948 (plain)
1
2
3
4
5
6
7
8
iptables-translate -A INPUT -m pkttype --pkt-type broadcast -j DROP
nft 'add rule ip filter INPUT pkttype broadcast counter drop'

iptables-translate -A INPUT -m pkttype ! --pkt-type unicast -j DROP
nft 'add rule ip filter INPUT pkttype != unicast counter drop'

iptables-translate -A INPUT -m pkttype --pkt-type multicast -j ACCEPT
nft 'add rule ip filter INPUT pkttype multicast counter accept'