@@ -35,10 +35,10 if [ "$ENABLE_IPTABLES" = true ] ; then | |||||
35 | chroot_exec systemctl daemon-reload |
|
35 | chroot_exec systemctl daemon-reload | |
36 | chroot_exec systemctl enable ip6tables.service |
|
36 | chroot_exec systemctl enable ip6tables.service | |
37 | fi |
|
37 | fi | |
38 | fi |
|
38 | ||
39 |
|
39 | if [ "$ENABLE_SSHD" = false ] ; then | ||
40 | if [ "$ENABLE_SSHD" = false ] ; then |
|
40 | # Remove SSHD related iptables rules | |
41 | # Remove SSHD related iptables rules |
|
41 | sed -i "/^#/! {/SSH/ s/^/# /}" "${ETC_DIR}/iptables/iptables.rules" 2> /dev/null | |
42 | sed -i "/^#/! {/SSH/ s/^/# /}" "${ETC_DIR}/iptables/iptables.rules" 2> /dev/null |
|
42 | sed -i "/^#/! {/SSH/ s/^/# /}" "${ETC_DIR}/iptables/ip6tables.rules" 2> /dev/null | |
43 | sed -i "/^#/! {/SSH/ s/^/# /}" "${ETC_DIR}/iptables/ip6tables.rules" 2> /dev/null |
|
43 | fi | |
44 | fi |
|
44 | fi |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant