summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_icmp.txlate
blob: e7208d8b874c77e1c2a71ddc1f625c8c1c0d97c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
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'

iptables-translate -t filter -A INPUT -m icmp --icmp-type any -j ACCEPT
nft 'add rule ip filter INPUT ip protocol icmp counter accept'