remove ufw

This commit is contained in:
ducoterra
2018-09-30 18:18:16 -04:00
parent a059826a35
commit 7784ac5607

View File

@@ -33,18 +33,18 @@ do
done done
# firewall # firewall
ports=(22 80 443) #ports=(22 80 443)
for port in ${ports[@]}; #for port in ${ports[@]};
do #do
echo -e "ufw allow $port/tcp" > $firelogloc # echo -e "ufw allow $port/tcp" > $firelogloc
ufw allow $port/tcp 1>> $firelogloc 2>> $firelogloc # ufw allow $port/tcp 1>> $firelogloc 2>> $firelogloc
if [ $? -ne 0 ] ; then # if [ $? -ne 0 ] ; then
echo -e "\tfirewall failed to update port $port correctly. $firelogmsg" # echo -e "\tfirewall failed to update port $port correctly. $firelogmsg"
exit 1 # exit 1
fi # fi
done #done
echo -e "\tenabling ufw" #echo -e "\tEnabling ufw"
ufw --force enable #ufw --force enable 1>> $firelogloc 2>> $firelogloc
################################################################################ ################################################################################
# Python # Python