1
0
mirror of https://github.com/tommytran732/Pterodactyl-Script synced 2024-11-22 18:41:32 -05:00

Fix Firewall Ports

This commit is contained in:
HeyJack 2020-10-15 15:41:34 +01:00
parent 3241f4b32e
commit de2a087a95

View File

@ -1838,10 +1838,24 @@ EOF
ufw allow 443 ufw allow 443
ufw allow 3306 ufw allow 3306
elif [ "$installoption" = "2" ]; then elif [ "$installoption" = "2" ]; then
ufw allow 80
ufw allow 443
ufw allow 3306
elif [ "$installoption" = "3" ]; then
ufw allow 80 ufw allow 80
ufw allow 8080 ufw allow 8080
ufw allow 2022 ufw allow 2022
elif [ "$installoption" = "3" ]; then elif [ "$installoption" = "4" ]; then
ufw allow 80
ufw allow 8080
ufw allow 2022
elif [ "$installoption" = "5" ]; then
ufw allow 80
ufw allow 443
ufw allow 8080
ufw allow 2022
ufw allow 3306
elif [ "$installoption" = "6" ]; then
ufw allow 80 ufw allow 80
ufw allow 443 ufw allow 443
ufw allow 8080 ufw allow 8080
@ -1858,10 +1872,24 @@ EOF
firewall-cmd --add-service=https --permanent firewall-cmd --add-service=https --permanent
firewall-cmd --add-service=mysql --permanent firewall-cmd --add-service=mysql --permanent
elif [ "$installoption" = "2" ]; then elif [ "$installoption" = "2" ]; then
firewall-cmd --add-service=http --permanent
firewall-cmd --add-service=https --permanent
firewall-cmd --add-service=mysql --permanent
elif [ "$installoption" = "3" ]; then
firewall-cmd --permanent --add-service=80/tcp firewall-cmd --permanent --add-service=80/tcp
firewall-cmd --permanent --add-port=2022/tcp firewall-cmd --permanent --add-port=2022/tcp
firewall-cmd --permanent --add-port=8080/tcp firewall-cmd --permanent --add-port=8080/tcp
elif [ "$installoption" = "3" ]; then elif [ "$installoption" = "4" ]; then
firewall-cmd --permanent --add-service=80/tcp
firewall-cmd --permanent --add-port=2022/tcp
firewall-cmd --permanent --add-port=8080/tcp
elif [ "$installoption" = "5" ]; then
firewall-cmd --add-service=http --permanent
firewall-cmd --add-service=https --permanent
firewall-cmd --permanent --add-port=2022/tcp
firewall-cmd --permanent --add-port=8080/tcp
firewall-cmd --permanent --add-service=mysql
elif [ "$installoption" = "6" ]; then
firewall-cmd --add-service=http --permanent firewall-cmd --add-service=http --permanent
firewall-cmd --add-service=https --permanent firewall-cmd --add-service=https --permanent
firewall-cmd --permanent --add-port=2022/tcp firewall-cmd --permanent --add-port=2022/tcp