xref: /aosp_15_r20/external/iptables/extensions/libipt_icmp.txlate (revision a71a954618bbadd4a345637e5edcf36eec826889)
1iptables-translate -t filter -A INPUT -m icmp --icmp-type echo-reply -j ACCEPT
2nft 'add rule ip filter INPUT icmp type echo-reply counter accept'
3
4iptables-translate -t filter -A INPUT -m icmp --icmp-type 3 -j ACCEPT
5nft 'add rule ip filter INPUT icmp type destination-unreachable counter accept'
6
7iptables-translate -t filter -A INPUT -m icmp ! --icmp-type 3 -j ACCEPT
8nft 'add rule ip filter INPUT icmp type != destination-unreachable counter accept'
9
10iptables-translate -t filter -A INPUT -m icmp --icmp-type any -j ACCEPT
11nft 'add rule ip filter INPUT ip protocol icmp counter accept'
12