–j LOG –log-prefix='filter FORWARD:'
iptables -t filter -A FORWARD -p icmp –icmp-type echo-reply
–j LOG –log-prefix='filter FORWARD:'
#
# NAT table, all chains except OUTPUT which don't work.
#
iptables -t nat -A PREROUTING -p icmp –icmp-type echo-request
–j LOG –log-prefix='nat PREROUTING:'
iptables -t nat -A PREROUTING -p icmp –icmp-type echo-reply
–j LOG –log-prefix='nat PREROUTING:'
iptables -t nat -A POSTROUTING -p icmp –icmp-type echo-request
–j LOG –log-prefix='nat POSTROUTING:'
iptables -t nat -A POSTROUTING -p icmp –icmp-type echo-reply
–j LOG –log-prefix='nat POSTROUTING:'
iptables -t nat -A OUTPUT -p icmp –icmp-type echo-request
–j LOG –log-prefix='nat OUTPUT:'
iptables -t nat -A OUTPUT -p icmp –icmp-type echo-reply
–j LOG –log-prefix='nat OUTPUT:'
#
# Mangle table, all chains
#
iptables -t mangle -A PREROUTING -p icmp –icmp-type echo-request
–j LOG –log-prefix='mangle PREROUTING:'
iptables -t mangle -A PREROUTING -p icmp –icmp-type echo-reply
–j LOG –log-prefix='mangle PREROUTING:'
iptables -t mangle -I FORWARD 1 -p icmp –icmp-type echo-request
–j LOG –log-prefix='mangle FORWARD:'
iptables -t mangle -I FORWARD 1 -p icmp –icmp-type echo-reply
–j LOG –log-prefix='mangle FORWARD:'
iptables -t mangle -I INPUT 1 -p icmp –icmp-type echo-request
–j LOG –log-prefix='mangle INPUT:'
iptables -t mangle -I INPUT 1 -p icmp –icmp-type echo-reply
–j LOG –log-prefix='mangle INPUT:'
iptables -t mangle -A OUTPUT -p icmp –icmp-type echo-request
–j LOG –log-prefix='mangle OUTPUT:'
iptables -t mangle -A OUTPUT -p icmp –icmp-type echo-reply
–j LOG –log-prefix='mangle OUTPUT:'
iptables -t mangle -I POSTROUTING 1 -p icmp –icmp-type echo-request
–j LOG –log-prefix='mangle POSTROUTING:'
iptables -t mangle -I POSTROUTING 1 -p icmp –icmp-type echo-reply
–j LOG –log-prefix='mangle POSTROUTING:'