Code:
gid group
Matches all TCP or UDP packets sent by or received for a group.
A group may be specified by name or number.
Where exactly should I place this in a rule? Also is ipfw available in Linux and iptables available on FreeBSD?