this project is being developed for parsing, maintaining and verify new firewalls rules for pf. In the future the aim is to add support for iptables as well.
Phiptables is a free software that helps you to build your iptables rules in a simple and easy way on a web-based interface. Once your rules are created a script is written down. You can download it and activate the rules.