Click here to download the script.
Please note that I do not take any responsibility for the effects of running the script! It is risk-free to run the script since it runs off-line and only parses a text-file. However, do NOT use the commands that this script outputs and paste them into a live firewall without analyzing the consequences first! Always do backups. Always verify what each command does before pasting it!
If you find any flaws in the scripts, have ideas for future improvements or any other feedback, please let me know! Send an email to email@example.com with your thoughts and ideas.