Update cloudflare.sh
This commit is contained in:
+3
-3
@@ -14,8 +14,8 @@ get_ports(){
|
||||
}
|
||||
|
||||
output "Cloudflare IPWhitelist Script"
|
||||
output "Copyright © 2020 Thien Tran <contact@thientran.io>."
|
||||
output "Support: https://thientran.io/discord"
|
||||
output "Copyright © 2021 Thien Tran <contact@tommytran.io>."
|
||||
output "Support: https://matrix.to/#/#tommytran732:matrix.org"
|
||||
output ""
|
||||
|
||||
output "Enter the list of ports you want opened, separated by a space."
|
||||
@@ -63,7 +63,7 @@ if [ "$lsb_dist" = "ubuntu" ] || [ "$lsb_dist" = "debian" ]; then
|
||||
|
||||
yes | ufw enable
|
||||
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "opensuse" ]; then
|
||||
if [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "centos" ]; then
|
||||
if [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "opensuse" ]; then
|
||||
yum -y install firewalld wget
|
||||
elif [ "$lsb_dist" = "opensuse" ]; then
|
||||
zypper in firewalld wget -y
|
||||
|
||||
Reference in New Issue
Block a user