I'm trying to develop a content filter.The problem is after dropping the packets i need to send "host unreachable" icmp message.But i don't know how to send that request.Can anybody tell how to send a icmp message of "host unreachable".
Thanx in advance.............
With Hping its really easy.
Then you can even make it in a BASH script.
I hope that helps.
If you are planing on using iptables for this purpose I suggest using the "-j REJECT" flag, which will automatically send the appropriate ICMP message.
Originally Posted by bharat.bvrit
Here is what you are looking for:
-j REJECT --icmp-host-unreachable