|
@@ -38,7 +38,7 @@ function save_firewall_settings {
|
38
|
38
|
iptables-save > /etc/firewall.conf
|
39
|
39
|
ip6tables-save > /etc/firewall6.conf
|
40
|
40
|
if [ ! -d /etc/network/if-up.d ]; then
|
41
|
|
- mkdir /etc/network/if-up.d
|
|
41
|
+ mkdir -p /etc/network/if-up.d
|
42
|
42
|
fi
|
43
|
43
|
printf '#!/bin/sh\n' > /etc/network/if-up.d/iptables
|
44
|
44
|
printf 'iptables-restore < /etc/firewall.conf\n' >> /etc/network/if-up.d/iptables
|