Skip to content

Instantly share code, notes, and snippets.

@john-auld
Last active April 17, 2019 09:50
Show Gist options
  • Save john-auld/2d84c2c33d969663b110ebc21db521f5 to your computer and use it in GitHub Desktop.
Save john-auld/2d84c2c33d969663b110ebc21db521f5 to your computer and use it in GitHub Desktop.
UDP Connectivity check

No connectivity

nc -u -z -w 3 8.8.8.8 54 && echo OK || echo failed
failed

With connectivity

nc -u -z -w 3 8.8.8.8 53 && echo OK || echo failed
OK
@john-auld
Copy link
Author

Centos 7: yum install nmap-ncat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment