summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_icmp.txlate
blob: 434f8cc4eb1ae18020fe9e85cce62c2adc3e72df (plain)
1
2
3
4
5
6
7
8
iptables-translate -t filter -A INPUT -m icmp --icmp-type echo-reply -j ACCEPT
nft add rule ip filter INPUT icmp type echo-reply counter accept

iptables-translate -t filter -A INPUT -m icmp --icmp-type 3 -j ACCEPT
nft add rule ip filter INPUT icmp type destination-unreachable counter accept

iptables-translate -t filter -A INPUT -m icmp ! --icmp-type 3 -j ACCEPT
nft add rule ip filter INPUT icmp type != destination-unreachable counter accept