Update cloudflare.sh

This commit is contained in:
TommyTran732
2020-01-02 17:35:34 -05:00
committed by GitHub
parent 436bc2eece
commit 51cd55bca0
+4
View File
@@ -4,6 +4,10 @@ output(){
echo -e '\e[36m'$1'\e[0m';
}
if [ -r /etc/os-release ]; then
lsb_dist="$(. /etc/os-release && echo "$ID")"
fi
if [ "$lsb_dist" = "ubuntu" ] || [ "$lsb_dist" = "debian" ]; then
apt -y install ufw
# Opening Port 22 just in case so that we do not lose the internet connection when the rules are applied.