2024-04-07 15:51:22 +08:00
2024-04-07 15:51:22 +08:00
2024-03-22 10:27:34 +08:00
2024-04-07 15:51:22 +08:00
2024-03-17 18:35:47 +08:00
2024-03-17 22:07:55 +08:00
2024-03-14 18:51:46 +08:00
2024-03-28 20:16:38 +08:00
2024-03-22 15:23:34 +08:00
2024-03-22 15:23:34 +08:00
2023-12-10 17:14:05 +08:00
2023-12-10 17:14:05 +08:00
2024-04-07 15:51:22 +08:00
2024-03-28 20:17:52 +08:00

使用golang实现的tcp udp端口转发

目前已实现:

  • 规则热加载
  • web管理面板
  • 流量统计

支持Linux、Windows、MacOSMacOS需要自行编译

截图

image

使用

Linux下载

sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/csznet/goForward/main/get.sh)"

运行

./goForward

参数

TCP无传输超时关闭 默认3600单位秒

./goForward -tt 18000

自定义web管理端口

./goForward -port 8899

指定IP绑定

./goForward -ip 1.1.1.1

设置web管理访问密码

./goForward -pass 666

当24H内同一IP密码试错超过3次将会ban掉

开机自启

创建 Systemd 服务

sudo nano /etc/systemd/system/goForward.service

输入内容

[Unit]
Description=Start goForward on boot

[Service]
ExecStart=/full/path/to/your/goForward -pass 666

[Install]
WantedBy=default.target

其中的/full/path/to/your/goForward改为二进制文件地址,后面可接参数

重新加载 Systemd 配置

sudo systemctl daemon-reload

启用服务

sudo systemctl enable goForward

启动服务

sudo systemctl start goForward

检查状态

sudo systemctl status goForward.service
Description
使用golang实现的tcp udp端口转发,支持流量统计、web管理、规则热加载
Readme 152 KiB
Languages
Go 92.8%
Shell 7.2%