Update f2b+ufw.sh

This commit is contained in:
RaspbianProyect by HP3ICC 2023-04-07 01:55:50 +00:00
parent 46bc856b2d
commit 67451a86f2
1 changed files with 10 additions and 10 deletions

View File

@ -67,7 +67,7 @@ else
fi
echo ""
echo "--------------------------------------"
read -p " Select port in, out or Both, press (I,O,B) :" rulev
read -p " Port in, Port out or Both, press (I,O,B) :" rulev
if [ -z "$rulev" ]; then
exit 0
elif [ $rulev = i ]; then
@ -83,15 +83,7 @@ elif [ $rulev = b ]; then
elif [ $rulev = B ]; then
rulev=b
fi
while :
do
read -p " Port number :" proto
if [ -z "$proto" ]; then
exit 0
fi
echo ""
echo "--------------------------------------"
read -p " Select protocol TCP,UDP or Both, press (T,U,B) :" portx
read -p " Protocol TCP,UDP or Both, press (T,U,B) :" portx
if [ -z "$portx" ]; then
exit 0
elif [ $portx = t ]; then
@ -109,6 +101,14 @@ elif [ $portx = B ]; then
fi
#echo ""
#echo "--------------------------------------"
while :
do
read -p " Port number :" proto
if [ -z "$proto" ]; then
exit 0
fi
echo ""
echo "--------------------------------------"
add_rule() {