I am trying to create a script that will check if my firewall works correctly.
For that I need a command that checks our range.
I am trying to create a script that will check if my firewall works correctly.
For that I need a command that checks our range.
You can use the nmap command
sudo nmap -sT remote_host
For more information https://www.digitalocean.com/community/tutorials/how-to-use-nmap-to-scan-for-open-ports-on-your-vps