mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update f2b+ufw.sh
This commit is contained in:
parent
46bc856b2d
commit
67451a86f2
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue