Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
while read line; do $line echo $line | cut -d' ' -f1 index=$? echo $line | cut -d' ' -f2 routerip=$? echo $line | cut -d' ' -f3 serverip=$? ping -c1 $routerip | grep -q "64 bytes from $routerip" routerstatus=$? ping -c1 $serverip | grep -q "64 bytes from $serverip" serverstatus=$? #echo $index #echo $routerip #echo $serverip #echo "$index Router ($routerip) ping status: $routerstatus" #echo "$index Server ($serverip) status: $serverstatus" #echo "$index $routerstatus $serverstatus" >>output.txt; done < input.txt end
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.