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