Hi, my first post in here. I made lots of search but couldn't find useful info about how create ICMP Code-3 (dest. unreachable) error and capture it with Wireshark. I tried to ping a closed port in Linux machine and also used host command but nothing. Could anyone help me about this please? Thank you. asked 22 Apr '14, 04:10 erer |
One Answer:
You need a router (Linux) that does not know how to forward a frame to a destination network (network unreachable), or that does not get an ARP reply (Host unreachable). Sample setup:
Set the following routes client
router
Now, ping the following IP addresses from the client:
Regards answered 22 Apr '14, 05:40 Kurt Knochner ♦ edited 22 Apr '14, 06:44 |
Big thanks Kurt. This is awesome and very straight forward answer. Cant wait to try it :)
Hint: If a supplied answer resolves your question can you please "accept" it by clicking the checkmark icon next to it. This highlights good answers for the benefit of subsequent users with the same or similar questions.