iptables -t {mangle|filter|nat} -L
You can also add the --line-number
option to print rules numbers
iptables -t {mangle|filter|nat} -D CHAIN RULE_NUMBER
Notice that to get the row number you can ues the first command in this gist
iptables -t filter -I INPUT -p icmp --icmp-type echo-request -j REJECT
Notice that REJECT
returns error, you can use DROP
to totally not respond on the request
iptables -t filter -I OUTPUT -p icmp --icmp-type echo-request -j REJECT
iptables -t mangle -I POSTROUTING -j TTL --ttl-set 100
Thanks !