Include ftp ports in ufw config
This commit is contained in:
2
install
2
install
@@ -732,7 +732,7 @@ wo_woconf() {
|
|||||||
echo -e '\n[letsencrypt]\n\nkeylength = "ec-384"' >>/etc/wo/wo.conf
|
echo -e '\n[letsencrypt]\n\nkeylength = "ec-384"' >>/etc/wo/wo.conf
|
||||||
fi
|
fi
|
||||||
if ! grep -q "php" /etc/wo/wo.conf; then
|
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
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,6 +46,13 @@ wo_ufw_setup() {
|
|||||||
# wordops backend
|
# wordops backend
|
||||||
ufw limit 22222
|
ufw limit 22222
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# allow proftpd port if installed
|
||||||
|
if [ -f /etc/proftpd/proftpd.conf ]; then
|
||||||
|
ufw limit 21
|
||||||
|
ufw allow 49000:50000/tcp
|
||||||
|
fi
|
||||||
|
|
||||||
# enable ufw
|
# enable ufw
|
||||||
if [ -n "$CURRENT_SSH_PORT" ]; then
|
if [ -n "$CURRENT_SSH_PORT" ]; then
|
||||||
ufw --force enable
|
ufw --force enable
|
||||||
|
|||||||
Reference in New Issue
Block a user