Skip to content

Instantly share code, notes, and snippets.

@aejh
Created December 10, 2019 06:03
Show Gist options
  • Save aejh/79d8290b8925e1417c7fa00ca94d4666 to your computer and use it in GitHub Desktop.
Save aejh/79d8290b8925e1417c7fa00ca94d4666 to your computer and use it in GitHub Desktop.
Check OpenVPN
# https://serverfault.com/questions/262474/how-to-check-that-an-openvpn-server-is-listening-on-a-remote-port-without-using
echo -e "\x38\x01\x00\x00\x00\x00\x00\x00\x00" |
timeout 10 nc -u openvpnserver.com 1194 | cat -v
# answer: @$M-^HM--LdM-t|M-^X^@^@^@^@^@@$M-^HM--LdM-t|M-^X^@^@^@^@^@@$M-^HM--LdM-t|M-^X...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment