I have improved the previous version of the firewall script to reduce some security flaws.
Have a look
Creative thoughts from a corrupted mind.