This commit is contained in:
esrrhs 2020-02-23 16:47:41 +08:00
parent 2b1abdf783
commit 2d3ed37feb
3 changed files with 95 additions and 55 deletions

View File

@ -117,6 +117,26 @@ QT GUI: https://github.com/esrrhs/pingtunnel-qt
-type 服务器或者客户端 -type 服务器或者客户端
server端参数:
-key 设置的密码默认0
-nolog 不写日志文件只打印标准输出默认0
-noprint 不打印屏幕输出默认0
-loglevel 日志文件等级默认info
-maxconn 最大连接数默认0不受限制
-maxprt server最大处理线程数默认100
-maxprb server最大处理线程buffer数默认1000
-conntt server发起连接到目标地址的超时时间默认1000ms
客户端参数:
-l 本地的地址,发到这个端口的流量将转发到服务器 -l 本地的地址,发到这个端口的流量将转发到服务器
-s 服务器的地址,流量将通过隧道转发到这个服务器 -s 服务器的地址,流量将通过隧道转发到这个服务器
@ -147,16 +167,8 @@ QT GUI: https://github.com/esrrhs/pingtunnel-qt
-sock5 开启sock5转发默认0 -sock5 开启sock5转发默认0
-maxconn 最大连接数默认1000
-maxprt server最大处理线程数默认100
-maxprb server最大处理线程buffer数默认1000
-profile 在指定端口开启性能检测默认0不开启 -profile 在指定端口开启性能检测默认0不开启
-conntt server发起连接到目标地址的超时时间默认1000ms
-s5filter sock5模式设置转发过滤默认全转发设置CN代表CN地区的直连不转发 -s5filter sock5模式设置转发过滤默认全转发设置CN代表CN地区的直连不转发
-s5ftfile sock5模式转发过滤的数据文件默认读取当前目录的GeoLite2-Country.mmdb -s5ftfile sock5模式转发过滤的数据文件默认读取当前目录的GeoLite2-Country.mmdb

View File

@ -109,6 +109,26 @@ QT GUI: https://github.com/esrrhs/pingtunnel-qt
-type client or server -type client or server
server param:
-key Set password, default 0
-nolog Do not write log files, only print standard output, default 0 is off
-noprint Do not print standard output, default 0 is off
-loglevel log level, default is info
-maxconn the max num of connections, default 0 is no limit
-maxprt max process thread in server, default 100
-maxprb max process thread's buffer in server, default 1000
-conntt The timeout period for the server to initiate a connection to the destination address. The default is 1000ms.
client param:
-l Local address, traffic sent to this port will be forwarded to the server -l Local address, traffic sent to this port will be forwarded to the server
-s The address of the server, the traffic will be forwarded to this server through the tunnel -s The address of the server, the traffic will be forwarded to this server through the tunnel
@ -139,16 +159,8 @@ QT GUI: https://github.com/esrrhs/pingtunnel-qt
-sock5 Turn on sock5 forwarding, default 0 is off -sock5 Turn on sock5 forwarding, default 0 is off
-maxconn the max num of connections, default 1000
-maxprt max process thread in server, default 100
-maxprb max process thread's buffer in server, default 1000
-profile Enable performance detection on the specified port. The default 0 is not enabled. -profile Enable performance detection on the specified port. The default 0 is not enabled.
-conntt The timeout period for the server to initiate a connection to the destination address. The default is 1000ms.
-s5filter Set the forwarding filter in the sock5 mode. The default is full forwarding. For example, setting the CN indicates that the Chinese address is not forwarded. -s5filter Set the forwarding filter in the sock5 mode. The default is full forwarding. For example, setting the CN indicates that the Chinese address is not forwarded.
-s5ftfile The data file in sock5 filter mode, the default reading of the current directory GeoLite2-Country.mmdb -s5ftfile The data file in sock5 filter mode, the default reading of the current directory GeoLite2-Country.mmdb

40
main.go
View File

@ -35,6 +35,34 @@ Usage:
-type 服务器或者客户端 -type 服务器或者客户端
client or server client or server
server端参数server param:
-key 设置的密码默认0
Set password, default 0
-nolog 不写日志文件只打印标准输出默认0
Do not write log files, only print standard output, default 0 is off
-noprint 不打印屏幕输出默认0
Do not print standard output, default 0 is off
-loglevel 日志文件等级默认info
log level, default is info
-maxconn 最大连接数默认0不受限制
the max num of connections, default 0 is no limit
-maxprt server最大处理线程数默认100
max process thread in server, default 100
-maxprb server最大处理线程buffer数默认1000
max process thread's buffer in server, default 1000
-conntt server发起连接到目标地址的超时时间默认1000ms
The timeout period for the server to initiate a connection to the destination address. The default is 1000ms.
客户端参数client param:
-l 本地的地址发到这个端口的流量将转发到服务器 -l 本地的地址发到这个端口的流量将转发到服务器
Local address, traffic sent to this port will be forwarded to the server Local address, traffic sent to this port will be forwarded to the server
@ -80,21 +108,9 @@ Usage:
-sock5 开启sock5转发默认0 -sock5 开启sock5转发默认0
Turn on sock5 forwarding, default 0 is off Turn on sock5 forwarding, default 0 is off
-maxconn 最大连接数默认0不受限制
the max num of connections, default 0 is no limit
-maxprt server最大处理线程数默认100
max process thread in server, default 100
-maxprb server最大处理线程buffer数默认1000
max process thread's buffer in server, default 1000
-profile 在指定端口开启性能检测默认0不开启 -profile 在指定端口开启性能检测默认0不开启
Enable performance detection on the specified port. The default 0 is not enabled. Enable performance detection on the specified port. The default 0 is not enabled.
-conntt server发起连接到目标地址的超时时间默认1000ms
The timeout period for the server to initiate a connection to the destination address. The default is 1000ms.
-s5filter sock5模式设置转发过滤默认全转发设置CN代表CN地区的直连不转发 -s5filter sock5模式设置转发过滤默认全转发设置CN代表CN地区的直连不转发
Set the forwarding filter in the sock5 mode. The default is full forwarding. For example, setting the CN indicates that the Chinese address is not forwarded. Set the forwarding filter in the sock5 mode. The default is full forwarding. For example, setting the CN indicates that the Chinese address is not forwarded.