I had hoped that the LAMP & Basic Firewall StackScript would have set up a firewall that would survive a reboot, but apparently not. While I did verify that a couple of ports were blocked as expected when the server first came up, I should have repeated that verification after reboot.
The StackScript did store the firewall configuration in /etc/firewall.conf, but apparently did not assure reloading.
I added the following two lines to /etc/network/interfaces in the eth0 section:
Code:
post-up iptables-restore < /etc/firewall.conf
post-down iptables-save > /etc/firewall.conf
I also ran iptables-restore and that appears to have reestablished the original rules.
I don't know of a mechanism for contributing patches to a StackScript, but the post-up and post-down lines seem to be an essential part of what the StackScript should do.