Socat 一键安装脚本,可转发 TCP 和 UDP 流量

2025 年 5 月 8 日 1881 点热度 0 人点赞 0 条评论

主要功能/特性

1,使用 Socat 进行端口转发

2,兼容主流 Linux 操作系统

3,交互式可视化界面风格

 

安装运行

root 下执行脚本

if [ -f /usr/bin/curl ];then curl -sSO https://raw.githubusercontent.com/99u/socat/refs/heads/main/socat.sh;else wget -O socat.sh https://raw.githubusercontent.com/99u/socat/refs/heads/main/socat.sh;fi;bash socat.sh

 

运行截图

注意事项,如启用了防火墙,需放行端口,如宝塔面板,需在安全-系统防火墙-添加端口放行规则.

 

Gcod

人生若只如初见,何事秋风悲画扇

文章评论