I manage high traffic web servers that are constantly under attack. To manage the security of these web servers, I need to routinely update my iptables rules, and by routinely, I mean every morning when I roll into the office. When I searched for a solution that allowed me to dynamically define my rules with a merge option, nothing come to the forefront. There are some miscellaneous posts about using PERL and cat, but nothing really useful. Then I remember M4. If you don't know about M4, then you should man it. Here's what you do. iptables.m4: ---- start ---- # Firewall configuration written by # system-config-securitylevel # Manual customization of this file is not # recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :RH-Firewall-1-INPUT - [0:0] -A INPUT -j RH-Firewall-1-INPUT -A FORWARD -j RH-Firewall-1-INPUT include(/root/iptables/iptables_special) include(/root/iptables/iptables_reject) include(/root/iptables/iptables_accept) # # The final r...