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"