Port forwarding: Socat one-click installation script can forward TCP and UDP traffic

888u

Last update at :2024-06-12,Edit by888u

Function: Mainly to improve the network

Assume there are two servers, namely 1.1.1.1 and 2.2.2.2. After using this script on the 1.1.1.1 server, the 2.2.2.2 server can be directly accelerated.

System requirements: Support CentOS 6+, Debian 7+, Ubuntu 14+.

Script description: a. The script enables UDP and TCP forwarding by default; b. It has an auto-start function; c. Only a single port can be forwarded at a time. If you want to forward multiple ports, please run this script repeatedly.

Installation (root user):

wget https://us.com/wp-content/uploads/2018/12/socat.sh && bash socat.sh

Enter the following information as required:

#If you want to use the 3333 port of the local server to forward the 6666 port of the 2.2.2.2 server, then fill in the specified parameters in sequence. Please enter local port:3333 Please enter the remote port: 6666 Please enter remote IP:2.2.2.2

After inputting, wait until the configuration is completed.

Script from: https://www.moerats.com/archives/621/

Recommended site searches: domain name proxy, how to check ip address, mainland China proxy ip, US website server, check ip, ip168, high-defense server rental, domain name transfer, Hengchuang host, Hengchuang host,

Port forwarding: Socat one-click installation script can forward TCP and UDP traffic

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码