Removes miner fees using nfqueue. -Tested on ubuntu 16.04 mining on nanopool with claymore dual ethereum miner for linux version 9.4. -Tested also with Claymore 10.4 for Windows on ethermine via VPN connection with the script running on the server (ubuntu 16.04). In this case it works for all the mining rigs connected to the VPN server.
It modifies outgoing packets using nfqueue, substituting the dev fee wallet address with your own wallet address.
Disable ufw
sudo ufw disable
Install python-nfqueue and python-scapy. Has been tested with python-nfqueue 0.5-1build2 and python-scapy 2.2.0-1 from the ubuntu 16.04 repositories, if using different versions you may need to modify the code as described here
sudo apt-get install python-nfqueue python-scapy
Download the program and run it as root (nfqueue needs to be run as root). Keep it running in the background
wget https://raw.githubusercontent.com/SimoneHz/remove_miner_fees/master/mining_fees_remover.py
sudo python mining_fees_remover.py
Now you can start the miner
./ethdcrminer64 -epool eth-us-west1.nanopool.org:9999 -ewal 0xb70fc6f9865ce18c20d90ebf067d9951918f8933/someworker -epsw x -dpool stratum+tcp://siamining.com:7777 -dwal 74ab711929bfc28359c8485a4e488d2f89b623771788fbeca7e7f5fe993ec691fec713e9f35b.someworker -dcoin sia -dcri 70
Note that this program redirects mining fees to 0xe25833086cf84239fb05ba10db30a54c30c7185a
by default. You will want to substitute that with your own wallet address in the source code by editing the variable my_eth_address
Note that this program assumes port 4444
by default (used by ethermine). Substitute the port by editing the number after --dport 4444
in the iptables
command.
SimoneHz https://github.com/SimoneHz
Offer me a coffee: 0xe25833086cf84239fb05ba10db30a54c30c7185a
ETH 0xb70fc6f9865ce18c20d90ebf067d9951918f8933
BTC 1PYmDbxXDS9FjAdH8jxE2stdf1Yrsvqdos
ZEC t1Yi9izeKkWbVtXRrQNdUbs7BdZVbwVVRcw
SIA 74ab711929bfc28359c8485a4e488d2f89b623771788fbeca7e7f5fe993ec691fec713e9f35b