Update INSTALL.sh

This commit is contained in:
Stefan Pejcic 2024-09-10 16:41:39 +02:00 committed by GitHub
parent 14b308474a
commit c238c31c9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -952,6 +952,10 @@ setup_firewall_service() {
open_port_csf $(extract_port_from_file "/etc/ssh/sshd_config" "Port") #ssh open_port_csf $(extract_port_from_file "/etc/ssh/sshd_config" "Port") #ssh
open_port_csf 32768:60999 #docker open_port_csf 32768:60999 #docker
open_port_csf 21 #ftp
open_port_csf 21000-21010 #passive ftp
set_csf_email_address set_csf_email_address
csf -r > /dev/null 2>&1 csf -r > /dev/null 2>&1
echo "Restarting CSF service" echo "Restarting CSF service"
@ -1001,6 +1005,8 @@ setup_firewall_service() {
debug_log ufw allow 443/tcp # https debug_log ufw allow 443/tcp # https
debug_log ufw allow 2083/tcp #openpanel debug_log ufw allow 2083/tcp #openpanel
debug_log ufw allow 2087/tcp #openadmin debug_log ufw allow 2087/tcp #openadmin
debug_log ufw allow 21/tcp #ftp
debug_log ufw allow 21000-21010/tcp #passive ftp
debug_log "yes | ufw enable" debug_log "yes | ufw enable"
if [ "$NO_SSH" = false ]; then if [ "$NO_SSH" = false ]; then