IPFW is designed primarily for BSD systems, and I would not recommend using it for Linux systems when there are options such as iptables. On modern Ubuntu distributions, the package is no longer included and is not supported.
Having said that, disclaimer:
loader.conf /boot/loader.conf, BSD- . Linux . Ubuntu /etc/modules. , "ipfw" . ipfw ( ), .