Posted by Nobody on 30 Sep, 2020
To list all the running rules in sequence:
ipfw list
To list all the running rules with a time stamp of when the last time the rule was matched:
ipfw -t list
The next example lists accounting information and the packet count for matched rules along with the rules themselves. The first column is the rule number, followed by the number of matched packets and bytes, followed by the rule itself.
ipfw -a list
/etc/rc.conf
:firewall_enable="YES"
firewall_type="workstation"
firewall_myservices="ssh/tcp"
firewall_allowservices="any"