server_under_nat.sh 395 B

123456789101112
  1. #!/bin/bash
  2. #This script is suppose to run on the private server under NAT
  3. # Ask user to input the local listening port
  4. read -p "Enter your local webserver port: " port1
  5. # Ask user to input the Zoraxy TCP stream proxy target port
  6. read -p "Enter the Zoraxy TCP stream proxy target port on your public server: " port2
  7. # Start the tcpcpy with the provided ports
  8. ./tcpcpy.exe -tran $port1 $port2