Below is an example of the IP Tables script I use on many of my servers. The names and IP addresses have been changed to reserved addresses and obviously it needs to be tweaked each time for relevent rules.
#!/bin/bash
# This script is symlinked to /etc/network/if-pre-up.d …