• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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