I need apply the same rules (lists of IPs with allow and drop rules) in firewalls of Linux and *BSD. Do you know some application (CLI) for to convert a list of rules in the specific format of each firewall?.
The application for to convert the rules is only a idea. Other solutions for the problem are welcome.
http://www.fwbuilder.org/
See the intro: http://www.fwbuilder.org/4.0/docs/firewall_builder_intro.html
Such conversion is not always possible, since different packet filters have different logic and packet processing scheme. For example, there is no simple and straight way to convert iptables rules (with all those tables and chains) to ipfw or pf rules. It's better to just write new ruleset for needed firewall type with knowing what you need to get in the end.