Socat一键安装脚本,可转发TCP和UDP流量,支持IPv4和IPv6 https://github.com/baichal/Socat.git
Go to file
baichal 02b43e5b6f
Update socat.sh
1.修复脚本运行重复执行restore_forwards
2.添加,开启,关闭,重启,卸载选项
2025-07-23 16:30:19 +08:00
README.md Update README.md 2025-07-23 10:14:49 +08:00
socat.sh Update socat.sh 2025-07-23 16:30:19 +08:00

README.md

Socat一键安装脚本支持DDNS域名

系统要求支持CentOS 6+ 、Debian 7+、Ubuntu 14+

脚本说明脚本默认开启UDP、TCP转发带开机自启功能。

使用 root 运行以下命令:

wget https://raw.githubusercontent.com/baichal/Socat/main/socat.sh && bash socat.sh

按要求输入本地服务器端口要转发的目标端口和服务器IP即可