This script gives connection tests output with Linux netcat command. Please run dos2unix/chmod 777 before running it.
Lab output:
dos2unix: converting file gaia_nc_tests.sh to Unix format ...
[Expert@LIN_FW_01:0]# ./gaia_common_nc_tests.sh
2026-01-21 09:34:57 nc binary: nc
2026-01-21 09:34:57 timeout=3s parallel=12 retries=1 profile=default no_dns=0 source_ip=none
2026-01-21 09:34:57 == DNS resolver tests (UDP/53 and TCP/53) ==
2026-01-21 09:34:57 | udp | 8.8.4.4 | 53 | DNS UDP/53 - Google Public DNS (Secondary) | SENT | 16022ms
2026-01-21 09:34:57 | udp | 8.8.8.8 | 53 | DNS UDP/53 - Google Public DNS | SENT | 16024ms
2026-01-21 09:34:57 | tcp | 8.8.8.8 | 53 | DNS TCP/53 - Google Public DNS | OPEN | 16030ms
2026-01-21 09:34:57 | udp | 149.112.112.112 | 53 | DNS UDP/53 - Quad9 DNS (Secondary) | SENT | 16025ms
nc: dns.google [8.8.8.8] 53 (domain) open
2026-01-21 09:34:57 | udp | 1.1.1.1 | 53 | DNS UDP/53 - Cloudflare DNS | SENT | 16031ms
2026-01-21 09:34:57 | udp | 9.9.9.9 | 53 | DNS UDP/53 - Quad9 DNS | SENT | 16026ms
2026-01-21 09:34:57 | udp | 1.0.0.1 | 53 | DNS UDP/53 - Cloudflare DNS (Secondary) | SENT | 16031ms
2026-01-21 09:34:57 | tcp | 8.8.4.4 | 53 | DNS TCP/53 - Google Public DNS (Secondary) | OPEN | 16038ms
2026-01-21 09:34:57 | tcp | 1.0.0.1 | 53 | DNS TCP/53 - Cloudflare DNS (Secondary) | OPEN | 16035ms
2026-01-21 09:34:57 | tcp | 1.1.1.1 | 53 | DNS TCP/53 - Cloudflare DNS | OPEN | 16036ms
nc: dns.google [8.8.4.4] 53 (domain) open
nc: one.one.one.one [1.0.0.1] 53 (domain) open
nc: one.one.one.one [1.1.1.1] 53 (domain) open
2026-01-21 09:34:57 | tcp | 149.112.112.112 | 53 | DNS TCP/53 - Quad9 DNS (Secondary) | OPEN | 16047ms
2026-01-21 09:34:57 | tcp | 9.9.9.9 | 53 | DNS TCP/53 - Quad9 DNS | OPEN | 16049ms
nc: dns.quad9.net [149.112.112.112] 53 (domain) open
nc: dns9.quad9.net [9.9.9.9] 53 (domain) open
2026-01-21 09:35:13 | udp | 208.67.222.222 | 53 | DNS UDP/53 - OpenDNS | SENT | 16032ms
2026-01-21 09:35:13 | tcp | 208.67.222.222 | 53 | DNS TCP/53 - OpenDNS | OPEN | 16036ms
nc: dns.sse.cisco.com [208.67.222.222] 53 (domain) open
2026-01-21 09:35:13 | udp | 208.67.220.220 | 53 | DNS UDP/53 - OpenDNS (Secondary) | SENT | 16032ms
2026-01-21 09:35:13 | tcp | 208.67.220.220 | 53 | DNS TCP/53 - OpenDNS (Secondary) | OPEN | 16038ms
nc: resolver2.opendns.com [208.67.220.220] 53 (domain) open
2026-01-21 09:35:29 == Web tests (TCP/443 and TCP/80) ==
2026-01-21 09:35:29 | tcp | www.cloudflare.com | 80 | HTTP - Cloudflare Web | OPEN | 24052ms
nc: Warning: Inverse name lookup failed for `104.16.124.96' Warning: Inverse name lookup failed for `104.16.123.96' www.cloudflare.com [104.16.124.96] 80 (http) open
2026-01-21 09:35:29 | tcp | www.cloudflare.com | 443 | HTTPS - Cloudflare Web | OPEN | 24055ms
nc: Warning: Inverse name lookup failed for `104.16.123.96' Warning: Inverse name lookup failed for `104.16.124.96' www.cloudflare.com [104.16.123.96] 443 (https) open
2026-01-21 09:35:29 | tcp | www.github.com | 80 | HTTP - GitHub Web | OPEN | 24076ms
nc: www.github.com [140.82.113.3] 80 (http) open
2026-01-21 09:35:29 | tcp | www.microsoft.com | 443 | HTTPS - Microsoft Web | OPEN | 24082ms
nc: www.microsoft.com [104.88.157.251] 443 (https) open
2026-01-21 09:35:29 | tcp | www.github.com | 443 | HTTPS - GitHub Web | OPEN | 24088ms
nc: www.github.com [140.82.113.3] 443 (https) open
2026-01-21 09:35:29 | tcp | www.microsoft.com | 80 | HTTP - Microsoft Web | OPEN | 24146ms
nc: www.microsoft.com [104.88.157.251] 80 (http) open
2026-01-21 09:35:29 | tcp | support.checkpoint.com | 443 | HTTPS - Check Point Support | OPEN | 72164ms
nc: support.checkpoint.com [13.227.246.38] 443 (https) open
2026-01-21 09:35:29 | tcp | support.checkpoint.com | 80 | HTTP - Check Point Support | OPEN | 72196ms
nc: support.checkpoint.com [13.227.246.28] 80 (http) open
2026-01-21 09:35:29 | tcp | www.google.com | 443 | HTTPS - Google Web | OPEN | 104300ms
nc: www.google.com [192.178.192.106] 443 (https) open
2026-01-21 09:35:29 | tcp | www.google.com | 80 | HTTP - Google Web | OPEN | 104329ms
nc: www.google.com [192.178.192.105] 80 (http) open
2026-01-21 09:37:14 == Summary ==
2026-01-21 09:37:14 OPEN/OPEN? : 0
2026-01-21 09:37:14 SENT (UDP) : 0
2026-01-21 09:37:14 FAILED : 0
2026-01-21 09:37:14 SKIPPED : 0
2026-01-21 09:37:14 Done.
Best,
Andy