Include ftp ports in ufw config

This commit is contained in:
VirtuBox
2022-10-24 16:25:48 +02:00
parent 508debb930
commit ee8f426b6b
2 changed files with 8 additions and 1 deletions

View File

@@ -732,7 +732,7 @@ wo_woconf() {
echo -e '\n[letsencrypt]\n\nkeylength = "ec-384"' >>/etc/wo/wo.conf
fi
if ! grep -q "php" /etc/wo/wo.conf; then
echo -e '\n[php]\n\nversion = 7.4' >>/etc/wo/wo.conf
echo -e '\n[php]\n\nversion = 8.0' >>/etc/wo/wo.conf
fi
fi
}

View File

@@ -46,6 +46,13 @@ wo_ufw_setup() {
# wordops backend
ufw limit 22222
fi
# allow proftpd port if installed
if [ -f /etc/proftpd/proftpd.conf ]; then
ufw limit 21
ufw allow 49000:50000/tcp
fi
# enable ufw
if [ -n "$CURRENT_SSH_PORT" ]; then
ufw --force enable