summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_pkttype.txlate
blob: 6506a380b6f0f46703cf427c6dc4504f7e0bfa54 (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