Code Monkey home page Code Monkey logo

goforward's Introduction

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

目前已实现:

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

支持:Linux、Windows、MacOS(MacOS 需要自行编译)

截图

image

使用

Linux 下载

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

运行

./goForward

参数

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

./goForward -tt 18000

自定义 web 管理端口

./goForward -port 8899

指定 IP 绑定

./goForward -ip 1.1.1.1

指定数据库位置

./goForward -db /root/data.db

设置 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

goforward's People

Contributors

csznet avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.