- #!/bin/bash
- # This script is suppose to run on the public server with public IP access
- # Ask user to input the local listening port
- read -p "Enter the local listening port for Zoraxy HTTP proxy endpoint: " port1
- echo "OK! Remember to add a proxy rule that points your preferred domain (e.g. service.example.com) to 127.0.0.1:$port1"
- # Ask user to input the Zoraxy TCP stream proxy target port
- read -p "Enter the Zoraxy TCP stream proxy listening port: " port2
- echo "OK! Remember to add a TCP stream proxy rule that points your WAN exposed port to 127.0.0.1:$port2"
- # Start the tcpcpy with the provided ports
- ./tcpcpy.exe -listen $port1 $port2
|