Update menu-ufw

This commit is contained in:
RaspbianProyect by HP3ICC 2023-04-07 00:34:11 +00:00
parent 0b9eba6b71
commit 20560a4cc6
1 changed files with 6 additions and 3 deletions

View File

@ -7,9 +7,9 @@ choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu UFW Firewall" --menu "Not
2 " Disable Firewall " \ 2 " Disable Firewall " \
3 " List Port open " \ 3 " List Port open " \
4 " List IP auto reject " \ 4 " List IP auto reject " \
5 " Add or Remove port in " \ 5 " Add or Remove port ( In, Out or Both ) " \
6 " Protection standard (all out open) " \ 6 " Protection standard (all port out is open) " \
7 " Protection strong (only 53,80,443 out open) " \ 7 " Protection strong (only 53,5353,80,443 out open) " \
8 " Menu Principal " 3>&1 1>&2 2>&3) 8 " Menu Principal " 3>&1 1>&2 2>&3)
exitstatus=$? exitstatus=$?
#on recupere ce choix #on recupere ce choix
@ -33,6 +33,7 @@ ufw status | grep REJECT >> /tmp/port0.txt && nano /tmp/port0.txt && rm /tmp/por
sh /bin/auto-ufw.sh ;; sh /bin/auto-ufw.sh ;;
6) 6)
sudo ufw delete allow out to any port 53 sudo ufw delete allow out to any port 53
sudo ufw delete allow out to any port 5353
sudo ufw delete allow out to any port 80 sudo ufw delete allow out to any port 80
sudo ufw delete allow out to any port 443 sudo ufw delete allow out to any port 443
sudo ufw default allow outgoing ;; sudo ufw default allow outgoing ;;
@ -46,5 +47,7 @@ esac
done done
exit 0 exit 0
EOF EOF
chmod +x /bin/menu-ufw chmod +x /bin/menu-ufw