remove ufw
This commit is contained in:
24
install.sh
24
install.sh
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user