|
@@ -617,9 +617,9 @@ iptables -A INPUT -p icmp -j DROP
|
617
|
617
|
# Save the settings
|
618
|
618
|
iptables-save > /etc/firewall.conf
|
619
|
619
|
ip6tables-save > /etc/firewall6.conf
|
620
|
|
-echo '#!/bin/sh' > /etc/network/if-up.d/iptables
|
621
|
|
-echo 'iptables-restore < /etc/firewall.conf' >> /etc/network/if-up.d/iptables
|
622
|
|
-echo 'ip6tables-restore < /etc/firewall6.conf' >> /etc/network/if-up.d/iptables
|
|
620
|
+printf '#!/bin/sh\n' > /etc/network/if-up.d/iptables
|
|
621
|
+printf 'iptables-restore < /etc/firewall.conf\n' >> /etc/network/if-up.d/iptables
|
|
622
|
+printf 'ip6tables-restore < /etc/firewall6.conf\n' >> /etc/network/if-up.d/iptables
|
623
|
623
|
chmod +x /etc/network/if-up.d/iptables
|
624
|
624
|
#+END_SRC
|
625
|
625
|
|