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