0

I have implemented a ping request with pcap.net. Everything is working fine but when the destination replies with a icmp echo response windows immediatly sends an icmp destination port unreachable.

me        other host
|           |
|---------->| Ping using pcap.net to send
|           |
|<----------| Ping-reply
|           |
|---------->| icmp Port unreachable

How can i prevent windows from doing this?

Firo
  • 30,626
  • 4
  • 55
  • 94
  • So the packet looks (to windows) like an invalid response right? Is this just as simple as disallowing incoming ping/ICMP altogether in your windows firewall? (note: winpcap will emit packets, but I don't think it usually blocks them) –  Jan 11 '13 at 19:18
  • you are right. pcap can't block packets – Firo Jan 11 '13 at 21:16

1 Answers1

0

Looks like you should just be able to turn that packet off in Windows:

see: http://msdn.microsoft.com/en-us/library/ms912869

In Windows Firewall settings:

Allow outgoing destination unreachable

Data sent over the Internet that fails to reach this computer due to an error will be discarded and acknowledged with a "destination unreachable" message explaining the failure.

Firo
  • 30,626
  • 4
  • 55
  • 94