Skip to content

Commit

Permalink
Display IOT blocking allowed ports and protocols in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamm00 committed Feb 7, 2024
1 parent 99d8966 commit 8c681ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions firewall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2588,6 +2588,7 @@ Load_Menu() {
;;
4)
option3="ports"
if [ -n "$iotports" ]; then echo "Current Custom Ports Allowed: $(Grn "$iotports")"; echo; fi
echo "Input Custom Ports(s) To Allow:"
echo "Seperate Multiple Ports With A Comma"
echo
Expand Down Expand Up @@ -4401,6 +4402,13 @@ case "$1" in
fi
printf '%-40s | %-16s | %-20s | %-15s\n' "$localname" "$ipaddr" "$macaddr" "$state"
done
echo;echo
echo "Allowed Traffic Protocols: $(Grn "$iotproto")"
if [ -z "$iotports" ]; then
echo "Allowed Ports: $(Grn 123)"
else
echo "Allowed Ports: $(Grn "123,${iotports}")"
fi
;;
ports)
if [ -z "$4" ]; then echo "[*] Ports(s) Not Specified - Exiting"; echo; exit 1; fi
Expand Down

0 comments on commit 8c681ba

Please sign in to comment.