@@ -9,14 +9,16 | |||||
9 | if [ "$ENABLE_IPTABLES" = true ] ; then |
|
9 | if [ "$ENABLE_IPTABLES" = true ] ; then | |
10 | # Create iptables configuration directory |
|
10 | # Create iptables configuration directory | |
11 | mkdir -p "${ETC_DIR}/iptables" |
|
11 | mkdir -p "${ETC_DIR}/iptables" | |
12 |
|
12 | |||
13 | # make sure iptables-legacy,iptables-legacy-restore and iptables-legacy-save are the used alternatives |
|
13 | if ! [ "$RELEASE" = jessie ] ; then | |
14 | chroot_exec update-alternatives --verbose --set iptables /usr/sbin/iptables-legacy |
|
14 | #setting slaves | |
15 |
|
|
15 | #chroot_exec update-alternatives --verbose --install /usr/sbin/iptables iptables /usr/sbin/iptables-legacy 1 \ | |
16 | #chroot_exec update-alternatives --verbose --set iptables-restore /usr/sbin/iptables-legacy-restore |
|
16 | --slave /usr/sbin/iptables-save iptables-save /usr/sbin/iptables-legacy-save \ | |
17 |
|
|
17 | --slave /usr/sbin/iptables-restore iptables-restore /usr/sbin/iptables-legacy-restore | |
18 | chroot_exec update-alternatives --verbose --install /usr/sbin/iptables-restore iptables-restore /usr/sbin/iptables-legacy-restore 1 |
|
18 | # make sure iptables-legacy,iptables-legacy-restore and iptables-legacy-save are the used alternatives | |
19 |
|
19 | chroot_exec update-alternatives --verbose --set iptables /usr/sbin/iptables-legacy | ||
|
20 | fi | |||
|
21 | ||||
20 | # Install iptables systemd service |
|
22 | # Install iptables systemd service | |
21 | install_readonly files/iptables/iptables.service "${ETC_DIR}/systemd/system/iptables.service" |
|
23 | install_readonly files/iptables/iptables.service "${ETC_DIR}/systemd/system/iptables.service" | |
22 |
|
24 |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant