mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update menu-ufw
This commit is contained in:
parent
0b9eba6b71
commit
20560a4cc6
|
|
@ -7,9 +7,9 @@ choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu UFW Firewall" --menu "Not
|
|||
2 " Disable Firewall " \
|
||||
3 " List Port open " \
|
||||
4 " List IP auto reject " \
|
||||
5 " Add or Remove port in " \
|
||||
6 " Protection standard (all out open) " \
|
||||
7 " Protection strong (only 53,80,443 out open) " \
|
||||
5 " Add or Remove port ( In, Out or Both ) " \
|
||||
6 " Protection standard (all port out is open) " \
|
||||
7 " Protection strong (only 53,5353,80,443 out open) " \
|
||||
8 " Menu Principal " 3>&1 1>&2 2>&3)
|
||||
exitstatus=$?
|
||||
#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 ;;
|
||||
6)
|
||||
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 443
|
||||
sudo ufw default allow outgoing ;;
|
||||
|
|
@ -46,5 +47,7 @@ esac
|
|||
done
|
||||
exit 0
|
||||
|
||||
|
||||
|
||||
EOF
|
||||
chmod +x /bin/menu-ufw
|
||||
|
|
|
|||
Loading…
Reference in New Issue