Portable firewall rules for Linux and Free/Net/Open/DragonFlyBSD

view story

http://serverfault.com – I need apply the same rules in firewalls of Linux and *BSD. Do you know some application (CLI) for to convert a list of rules in specific format of each firewall?. The application for to convert the rules is only a idea. Other solutions for the problem are welcome. (HowTos)