GitHub

您所在的位置:网站首页 eth服务器抽水软件 GitHub

GitHub

2023-08-07 20:10| 来源: 网络整理| 查看: 265

StableTaxMinerProxy 稳定的MinerProxy,以太坊抽水,比特币抽水,莱特币等多币种抽水,ssl加密中转,https加密中转软件 Stable miner charging software 更新日志 2023-04-15 2.0.4>>> 1. 更新了linux版本kas的支持 2022-09-16 2.0.3>>> 1. 更新了ETHW和ETF的支持 2022-05-23 2.0.2>>> 1. 更新了抽水算法,通过gpu_pool_mode和asic_pool_mode来控制平滑抽水,抽水机不再心电图 2. 新增了拒绝率优化功能,使btc等专业机抽水时拒绝率进一步优化,提高收益 3. 新增了内置于币印盒子的内置抽水的特殊版本 4. 新增了自定义证书配置,支持凤凰内核的ssl连接 5. 优化了多人抽水逻辑,使其更加合理 6. 支持了DCR,ZEC的抽水 2022-05-12 2.0>>> 1. 增加了web监控,任务难度检查(减少拒绝率),矿场抽水模式(显卡模式和asic专业机模式) 2022-05-1 1.2>>> 1. 修复bug,优化BTC,LTC,ETC抽水逻辑,增加稳定性 2022-03-2 1.1.9>>> 1. 更新了本地隧道加密,配合本地端使用实现https混淆加密 2022-03-2 1.1.7>>> 1. 新增了对Ton双挖的转发和抽水支持 2. 新增了多人抽水功能 3. 新增一键安装启动脚本 交流

Telegram: 电报加群链接(https:///StableTaxMinerProxy)

QQ群:

项目介绍

该项目提供了抽水和转发功能,支持跨矿池抽水。不设置抽水上限,并且具有更低的内抽费用。该功能可以关闭,在关闭时作为纯转发程序使用

This program is used to charge miners that connect to your server. You can use this program to charge miners hosted by you in your cryptocurrency mine for a maintenance fee.

支持币种(Supported cryptocurrencies):

专业机(ASIC):BTC / ETH / LTC / ETC / ScPrime / BCH / DCR / ZEC

显卡机(GPU):ETHW / ETHF / ETC / RVN / ERG / CFX / Ton /Kas

软件仅供学习参考,请勿用于其他目的,不承担任何责任。

注意!本项目不同于隔壁miner-proxy,曹操,老矿等,是自己的项目!

后续更新

支持ton的双挖转发和抽水

支持一键启动脚本

支持矿机端和服务器端隧道加密,防止SSL转发被查问题

支持web端启动和统一后台启动

详细图文教程以太坊比特币LTC多币种抽水教程linux和windows.pdf 使用方法 1. 最简单的启动方法(HOW TO USE)

Linux或ubuntu系统下载项目: For Linux, download and run (please install “git” and “tmux” first):

git clone https://github.com/MieBaMinerProxy/StableTaxMinerProxy.git cd StableTaxMinerProxy/linux sudo chmod 777 tax.miner.proxy ./tax.miner.proxy -conf config/config.yaml

Windows直接网页下载ZIP文件,解压,进入windows文件夹,点击bat文件即可运行: For Windows, download, unzip, and double click the bat file to run :

在config文件夹中有配置文件,修改配置yaml文件中的端口、钱包、抽水比例即可自定义启动:

The config yaml files are in the config folder. One config file for one forward. Just use config files with different file names, if you want to use this program to charge miners for different cryptocurrencies, different mining pools, or different ports

配置多个config文件,指定不同config.yaml来启动多个矿池抽水转发端口

./tax.miner.proxy -conf config/config1.yaml ./tax.miner.proxy -conf config/config2.yaml

云服务器需要打开对应本地端口的安全组(防火墙)

Note that the corresponding port of the server firewall should be allowed to connect

2. 完整配置config.yaml方式启动

修改config.yaml文件

# 代币类型,目前支持:eth/etc/rvn/erg/cfx/btc/ltc/scp/bch/ton/dcr/ckb/zec/kas coin_type: "eth" # 程序本地转发地址,矿机等其它终端接入本程序所在服务器的端口 # Miners connect to your server through this port local_addr: ":9998" # 是否启用客户端 SSL 加密 # Enable Secure Sockets Layer for the connection between miners and your server # 如果内核里边使用 SSL 连接的话,需要设置这个选项为 true enable_client_ssl: false # 远程代理地址,常用地址(E池/鱼池/币印等)已经内置 SSL/TCP 判断 # The address of the mining pool that you want to forward remote_addr: "asia2.ethermine.org:5555" # 是否启用服务端 SSL 加密 # Enable Secure Sockets Layer for the connection between your server and the mining pool # in "remote_addr" # 大部分常用矿池已经自动进行了判断,无需特殊设置,若设置为 true,则优先级最高 enable_server_ssl: false # 抽水钱包,请务必自行确认其有效性(优先级低于 wallets 参数,不会 merge) # 支持鱼池,币印等矿池的子钱包 # Support user-defined mining account such as "test01" in f2pool, poolin, etc. # Income will be transferred to this wallet wallet: "0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" # 多人抽水能力支持,当存在 wallets 时候,会覆盖 wallet 参数 # Support for multiple wallets. When wallets exist, the wallet parameter will be overwritten # Shares will be transferred to these wallets in turn. For example, 1 share will go to # wallet1 and another share will go to wallet2. The sum of shares of each wallet should # be no larger than 10 and no less than 1. # shares 仅支持整数,且所有 shares 的和应为 (0,10],超出范围会直接终止程序运行(注意前开后闭) # shares 为 0 意味暂时不为该地址就行 shares 分配,请知悉 # wallets: # - content: "0xxxxxxxxx001" # shares: 1 # - content: "0xxxxxxxxx002" # shares: 1 # 开启性能模式:解除 ulimit -n 1024 限制 # Remove the limit on the number of connections enable_performance_mode: true # 开启利润优先模式,默认为 true # 开启此模式后,会优先保证抽水收益 # 可能会导致抽水比例略微超过设定值 # NOTICE:如果机器频繁掉线,不建议开启 # Profit first mode # If the miner is frequently disconnected, switch off this mode enable_profit_mode: true # 开启新抽水逻辑,低于 6% 建议使用新逻辑,会让算力曲线更加平稳 # 高抽水比例时,关闭此项可能会提抽水收益 is_experiment_devfee: true # 抽水矿池地址,默认使用远程代理地址 # The mining pool to which you want your income to go # By default this mining pool is your "remote_addr" devfee_addr: "" # Enable Secure Sockets Layer for the connection between your server and the mining pool # in "devfee_addr" # 是否启用抽水 SSL 加密 # 大部分常用矿池已经自动进行了判断,无需特殊设置,若设置 true,则优先级最高 enable_devfee_ssl: false # 抽水比例(支持小数),最高 100,默认值 0,不抽水 # The percentage of shares you take from the miners who connect to this server. devfee_rate: 10.3 # 抽水时候指定的 worker 名称 # You could use one name to represent all the miners connected to this server in the user # history page of the mining pool. # Devfee_worker: "worker name" # Leave the name blank, all the miners will be listed on the user history page of the mining pool. devfee_worker: "" # debug 模式,如遇到异常情况,请开启 debug 模式,并反馈日志给开发者 # 正常情况不要开启,会导致日志量增加非常多,导致硬盘爆掉 enable_debug: false # 日志输出位置, 目前日志是加密存储,格式为 *.xlog # 如果在程序使用过程中出现异常情况,请将日志提交给开发者进行排查 # 请尽量使用绝对路径 log_dir: "/tmp" # 详细日志采样级别,用于开发者排查问题使用, 日常使用建议设置为 0 # 0: 不开启详细日志采样 # 1: 记录 0.1% 日志采样 # 2: 记录 1% 日志采样 # 3: 全量日志记录,当机器数量超过 50 时候,当心磁盘存不下 log_sampling_level: 0 # DNS 服务器地址:避免 DNS 污染,请使用安全/可访问通的 DNS 地址 # 默认:8.8.8.8, 8.8.4.4 dns_server: "8.8.8.8, 8.8.4.4" # 临时 block 掉出问题的 IP # 在使用过程中,发现有些场景下会出现后端可达但是不可使用的场景: # DNS 返回的地址,可以访问通,但是无法正常使用) # 当出现此类场景后,请添加对应 IP 至此 block_ips: "" # DNS 解析重试次数 # 当通过 dnsServer 解析到对应后端地址后,proxy 会尝试与其建立 TLS/TCP 连接 # 如果 1s 内无法建立成功,则判断当前后端不可达 # 随后将重新向 DNS 发起解析请求 # 默认重试 10 次,超过重试次数后,服务会退出 dns_retry_times: 10 # IP可连接性校验时长(单位:秒) # 目前会校验矿池 IP 的可连接性,如规定时间内未能成功连接,则认为该 IP 不可用 # 默认 1s,0 表示不校验 dns_ip_verify_seconds: 1

2.0版本新增参数

####################### # 新增功能配置区 # ###################### # 加密模式 # 0: 不启用加密,2:服务端(接收加密数据),发送加密数据请使用本地解密端 encrypt_mode: 0 # 显卡机(RTX3080) 矿场抽水模式开关 # 推荐大客户使用,抽水更加平稳且不会心电图 # 但是机器之间抽水份额会不平均,存在随机性 # 会增加一定随机性,每次掉线 10% ~ 30% 左右的机器 # If the miners are all GPU miners, turning on this mode will cause the program # to take shares from 10%~30% miners each time. By default, the program will # take shares from 100% miners. # Once you enable gpu_pool_mode, ASIC miners could not connect to your server gpu_pool_mode: false # 专业机(蚂蚁,芯动,阿瓦隆) 矿场抽水模式开关 # 推荐大客户使用,抽水更加平稳且不会心电图 # 但是机器之间抽水份额可能会不平均,存在随机性 # If the miners are all ASIC miners, turning on this mode will cause the program # to take shares from a certain percentage of the miners each time. By default, # the program will take shares from 100% miners. # Once you enable asic_pool_mode, GPU miners could not connect to your server # If you want to allow both ASIC and GPU miners connect to you server by this port, # please turn off both gpu_pool_mode and asic_pool_mode. # Of course, you can config one port (local_addr) only for GPU miners and config # another port only for ASIC miners. asic_pool_mode: false # The percentage of ASIC workers will be charged each time # 仅当 asic_pool_mode 为 true 时候生效 # 抽水平滑级别,默认为 2 # level 1: 每次抽 50% ~ 100% worker # level 2: 每次抽 25% ~ 50% worker # level 3: 每次抽 10% ~ 25% worker smooth_level: 2 # 实验性功能:任务难度检查 v2,有效降低低难度提交造成的拒绝率 # 开启后如发现算力波动明显,建议关闭此项后再进行观察 enable_reject_checker_v2: false # 是否启用任务前后难度检查,有效降低同一个任务因多次拒绝导致拒绝率暴涨 # Effectively reduce the rejection rate caused by the same task enable_reject_checker_v1: true ####################### # Dashboard 配置区 # ###################### # 是否开启 Dashboard WEB UI,默认关闭 # Enable Dashboard WEB UI enable_dashboard: false # 程序本地地址, 格式同 local_addr # 默认为空, 表示不开启管理后台 # 当 enable_dashboard 为 true 且 dashboard_addr 不为空时候,才会开启 dashboard # The port of the Dashboard WEB UI dashboard_addr: ":3333" # 管理员 token dashboard_admin_token: "tax-yyds" # 观察者 token dashboard_observer_token: "tax-yyds" ####################### # 自定义域名证书配置区 # ###################### # 当且仅当下面两项都不为空,自定义域名证书配置才会生效 # 自行签发域名证书推荐使用: https://github:com/acmesh-official/acme.sh # 自定义域名证书路径,请使用绝对地址 # User-defined SSL certificate path, please use absolute path # 例如 C:/User/tmp/certs/server.pem domain_cert: "" # 自定义域名证书私钥路径,请使用绝对地址 # User-defined SSL private key path, please use absolute path # 例如 C:/User/tmp/certs/private.key domain_private_key: "" 3. 后台启动

测试成功后可以ctrl+c杀死进程后,使用后台启动:

nohup ./tax.miner.proxy -conf config/config.yaml&

即可后台运行,这样可以实现关掉命令行窗口后,矿机依然可以连上节点,保持抽水和中转的运行。

查看后台运行情况

tail -f /tmp/tax_proxy--端口.stat.log

停止后台运行的程序

输入

ps -aux | grep "tax.miner.proxy"

得到进程id

kill -9 进程id

即可删除后台运行软件

或者用终端软件tmux You can use software "tmux" to let the program running in the background

4. 开机自启动,进程守护,设置开机自启动后,自动后台运行

Config auto-start (the corresponding program will strat once the server reboot)

执行pwd获取当前路径,并复制输出 Use "pwd" to get the absolute path of the current directory

pwd

Use the absolute path of the config yaml file to install and remove the auto-start

安装:

./tax.miner.proxy -conf pwd的结果/config.yaml -install

删除开机自启:

./tax.miner.proxy -conf pwd的结果/config.yaml -remove

光安装自启动程序不会自动运行,需要重启服务器或者用以下命令运行 Once you installed the auto-start, use "-start" to start the program if you do not want to reboot

运行:

./tax.miner.proxy -conf pwd的结果/config.yaml -start

停止:

Manually stop the program with "-stop"

./tax.miner.proxy -conf pwd的结果/config.yaml -stop

如果需要修改本地端口,需要先删除开机自启动再修改,修改完后再安装。

本地加密端使用方式

使用本地端加密时候,服务器启动的config中,加密模式选 “2”

# 加密模式 # 0: 不启用加密,1:客户端(发送加密数据)2:服务端(接收加密数据) encrypt_mode: 2

前台启动

tax.miner.connector -l :本地端口 -r 服务器ip:服务器端口

进程守护+开机自启

tax.miner.connector -l :本地端口 -r 服务器ip:服务器端口 -install tax.miner.connector -l :本地端口 -r 服务器ip:服务器端口 -start

注意:使用隧道混淆模式在纯转发时,会有0.1%的抽水,如果仅仅使用ssl来纯转发则不会有

windows直接编辑批处理文件修改参数保存,双击批处理文件运行connector

给只能用tcp协议的专业矿机套上ssl,只需要在矿机局域网的一台机器上装tax.miner.proxy,将tcp转成ssl,然后让矿机连这个局域网的proxy即可。从局域网的proxy到服务器这一段是ssl加密的

答疑

1. 抽水机曲线心电图

正常,因为我用的方法是按照时间,是在矿池发现机器掉线之前切换抽水和挖矿,所以客户机器不会心电图,而抽水机器会,不影响收益。这样做的好处是不会因为份额替换产生高的拒绝率,坏处就是抽水机心电图,得看24小时算力来算算自己抽了多少。

2. 统一抽水worker后reported为0

统一抽水之后往矿池提交的report算力被我们设置为0,并不影响收益,收益计算靠的是份额,平均算力是正常的。

3. 开起来一段时间没有抽水

同问题1,抽水会在一小时内随机启动

4. 关于利润优先模式和新抽水逻辑

抽水btc的时候请使用新逻辑,以太坊如果出现客户那边心电图的话,可以切换回老抽水模式试试。对网吧等频繁启停矿机的应用场景,推荐关闭利润优先模式,不然可能比预期的抽的多。

开发费用 (DEV FEE)

开发费用从0.25%起随着抽水比例的提高线性上浮,在抽10%时开发费用0.75%, 同时支持满抽100,满抽时候开发会抽10%,纯转发功能时不抽水。请大家善良使用。

Development fee linearly increases from 0.25%. When you charge 10% of the shares from the miners, we take 0.75% of the shares.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3