I know I can have ipfw rules matching the ICMP protocol and specify one or more icmptypes. But how do I also match on the ICMP type's code (those that have such)? For example I can easily match ICMP type 3 (destination unreachable) messages:
BUT I really need to NOT match ALL destination unreachable ICMP messages, just ICMP type 3's code 3 (port unreachable) only. How do I do that? Is it possible? I had a vague memory of it being possible, but I cannot find any documentation matching my vague impression.
Wishfully, I'd love something like this (this does NOT exist):
Any chance I've missed something simple that lets me accomplish a match ONLY for ICMP port unreachable messages?
Thanks,
--Aaron
ipfw add 1000 count log icmp from me to 192.168.1.200 out icmptypes 3
BUT I really need to NOT match ALL destination unreachable ICMP messages, just ICMP type 3's code 3 (port unreachable) only. How do I do that? Is it possible? I had a vague memory of it being possible, but I cannot find any documentation matching my vague impression.
Wishfully, I'd love something like this (this does NOT exist):
ipfw add 1000 count log icmp from me to 192.168.1.200 out icmptypes 3 icmpcode 3
Any chance I've missed something simple that lets me accomplish a match ONLY for ICMP port unreachable messages?
Thanks,
--Aaron