Debian
This is the way you can install a Debian firewall rule in Debian Lenny.
iptables-save > /etc/iptables.up.rules
vi /etc/network/if-pre-up.d/iptables
#!/bin/bash /sbin/iptables-restore < /etc/iptables.up.rules
chmod +x /etc/network/if-pre-up.d/iptables