This patch add a rule action tracing feature to ipfw2. For example, when you have too many ipfw-rules and some packets not pass - is not easy to determine rule which block these packets. This patch allow trace each matched rule. And not needs into adding/deleting a `log' rules in some places. How to use: # ipfw add 1 count tag # sysctl net.inet.ip.fw.trace_tag= # tail -f /var/log/security - some tag number - rule for matching needed packets NOTE! Do not forget to disable tracing by resetting the net.inet.ip.fw.trace_tag variable to zero. Tracing can generate a lots of messages to syslogd. (C) Andrey V. Elsukov,