21zoo Labs - Assorted Stuff

How to Forward a Port to Different IP using "nc"

Posted — Apr 11, 2019

For example, this will redirect all TCP connections to the local port 8001 to port 80 on IP 1.1.1.1

nc -l -p 8001 -c "nc 8.8.8.8 80"