gredir

command module
v0.0.0-...-188e966 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

README

Gredir

一个支持多用户多端口tcp转发工具,该工具支持作为大部分矿池的中转代理服务器。同时支持tls加密选项。该工具使用golang开发。

Contributors Forks Stargazers Issues GPL License

目录

安装
tar xzvf gredir*.tar.gz && cd gredir && bash install.sh
生成自签名证书
# 创建根证书私钥,长度2048
openssl genrsa -out ca.key 2048
# 创建根证书
openssl req -new -x509 -days 36500 -key ca.key -out ca.crt
# 创建ssl证书私钥
openssl genrsa -out server.key 2048
# 创建ssl证书,xxxx改为奇数
openssl req -new -key server.key -out server.csr
mkdir dir demoCA &&cd demoCA&&mkdir newcerts&&echo 'xxxx' > serial &&touch index.txt&&cd ..
# 用CA根证书签署ssl证书,生成server.crt与server.key
openssl ca -in server.csr -out server.crt -cert ca.crt -keyfile ca.key
配置说明
proxies:
  - id: 0
    local_addr: ":20000" //中转服务器转发端口
    remote_addr: "btc.f2pool.com:1314" //待转发的远程目的服务器
    user: "zcy" 
    date: "2022-2-22"
    tls: true //是否启用tls转发
    
log: "/var/log/gredir.log"  //log文件路径
  
tls:
  public_file: "/usr/local/gredir/server.crt" //tls证书路径
  private_file: "/usr/local/gredir/server.key" //密钥路径
作者

zcylove1995@gmail.com

版权说明

该项目签署了GPL 授权许可,详情请参阅 LICENSE.txt

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL