| Server IP : 104.21.58.74 / Your IP : 216.73.216.213 Web Server : LiteSpeed System : Linux s12482.usc1.stableserver.net 5.14.0-570.32.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 6 11:30:41 EDT 2025 x86_64 User : snownico ( 1231) PHP Version : 8.2.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib64/nagios/plugins/ |
Upload File : |
#!/bin/bash
#
# check_a2_outbound_nat.sh - A bash script to make sure JBK servers cant talk outbound.
# Ref: SYSENG-23372
# Author : [email protected]
#
check_port() {
if nc -z -w 5 portquiz.net 80 || nc -z -w 5 portquiz.net 22; then
echo "NAT is open while checking port 22 and 80 for outbound traffic."
exit 2
else
echo "NAT is closed while checking Port 22 and 80 for outbound traffic."
exit 0
fi
}
check_port