Quick test of TCP between firewalls with Netcat
So sometimes I’m on a box and need to test if a port is cleared on a firewall.. i may not yet have apache installed but I want to test if port 80 is open, or I may want to act as a server to grab a request..
simple with Netcat.
nc -l -p 8080
will open a listen on port 8080 and after the first connect, exit and go back to shell… useful for testing