diff --git a/install-freedombone.sh b/install-freedombone.sh index 0f1e3e7e..c209827a 100644 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -295,7 +295,12 @@ function configure_firewall_for_email { } function save_firewall_settings { - # TODO + iptables-save > /etc/firewall.conf + ip6tables-save > /etc/firewall6.conf + printf '#!/bin/sh\n' > /etc/network/if-up.d/iptables + printf 'iptables-restore < /etc/firewall.conf\n' >> /etc/network/if-up.d/iptables + printf 'ip6tables-restore < /etc/firewall6.conf\n' >> /etc/network/if-up.d/iptables + chmod +x /etc/network/if-up.d/iptables } function configure_internet_protocol {