I'm trying to forward all icmp requests from source ip to new destination ip IP of current local machine, where i'm applying iptables rule is I apply this rule:

sudo iptables -t nat -A PREROUTING -p icmp –icmp-type 8 -s -j DNAT –to-destination

The issue is in replying to this icmp request from In other words, in my tcpdump

tcpdump -ni eth0 -p

I saw this records:

IP > ICMP echo request
IP > ICMP echo reply

Question: Why forwarding of icmp request works normally, but replying to this icmp request working too

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.