Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eclecticmiraclecat/9e4d42c54822a451faa9fde9ae9d2d75 to your computer and use it in GitHub Desktop.
Save eclecticmiraclecat/9e4d42c54822a451faa9fde9ae9d2d75 to your computer and use it in GitHub Desktop.
open in firewall
On client:
# nc -vz 192.168.1.29 80
Connection to 192.168.1.29 80 port [tcp/http] succeeded!
On server:
# nc -vl 192.168.1.29 80
Connection from 192.168.1.28 port 80 [tcp/http] accepted
blocked in firewall
On client:
# nc -vz 192.168.1.29 80
On server:
# nc -vl 192.168.1.29 80
UDP
# nc -vzu 192.168.1.29 80
Connection to 192.168.1.29 80 port [udp/http] succeeded!
# nc -vlu 192.168.1.29 80
Connection from 192.168.1.28 port 80 [udp/http] accepted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment