The PHP firewall generator is a simple PHP script that generates a firewall script for ipchains-based firewalls. The aim is to support an easily configurable rule set similar to those supported by commercial firewall systems.
You can download it from the following link: https://packetstormsecurity.com/files/download/11116/phpfwgen-0.2.tar.gz
Source: https://packetstormsecurity.com/files/11116/phpfwgen-0.2.tar.gz.html