Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: Morphz on November 27, 2016, 11:30:37 PM



Title: How to remove devfee from optiminer on ethos and other ubuntu distros
Post by: Morphz on November 27, 2016, 11:30:37 PM
Due to the fact that the dev of optiminer stopped developing his miner i decided i am no longer paying his devfee. Here is the steps i took to work around paying his ridiculous 10% fee.

Code:
git clone https://github.com/rgerganov/nfqsed
for ethos:
Code:
sudo apt-get-ubuntu -y install libnetfilter-queue-dev
for ubuntu:
Code:
sudo apt-get install -y libnetfilter-queue-dev

next compile nfqsed:

Code:
cd nfqsed
make
sudo cp nfqsed /usr/local/bin

for ethos: edit your custom.sh script that runs at boot:
Code:
cd /home/ethos
vi custom.sh

Add these lines before exit 0:

Code:
sudo iptables -t nat -A OUTPUT -p tcp --dport 3333 -d eu1-zcash.flypool.org -j DNAT --to 192.99.33.207
sudo iptables -A OUTPUT -p tcp --dport 3333 -d eu1-zcash.flypool.org -j NFQUEUE
sudo iptables -A OUTPUT -p tcp --dport 3333 -d us1-zcash.flypool.org -j NFQUEUE
sudo /usr/local/bin/nfqsed -s /t1RsS2XVTjEeGST1RdKzPRSu5GTu45WsqcU/t1dHzudQn6gxUncY1o9wqu8T6BM26c5qzVY >/dev/null &
minestop && minestart

for other ubuntu distros add that to your startup scripts, minus the minestop line


Basically what this does is watch the packets for his Zcash address mining to eu1-zcash.flypool.org and replace it with your address mining on us1-zcash.flypool.org (or change that to your pool)
Also you’ll wanna change the 2nd Zcash address in the nfqsed line to your own address, or leave it in for a little while to donate some to me, since i just saved you a 10% dev fee to someone who doesn’t do development work any longer.


Title: Re: How to remove devfee from optiminer on ethos and other ubuntu distros
Post by: cryptomined on November 27, 2016, 11:52:25 PM
this would work for "other" miners with dev fees also right?


Title: Re: How to remove devfee from optiminer on ethos and other ubuntu distros
Post by: Morphz on November 27, 2016, 11:55:18 PM
this would work for "other" miners with dev fees also right?

Yes but I support miner developers who are actively developing and supporting the community, I encourage everyone else to as well.


Title: Re: How to remove devfee from optiminer on ethos and other ubuntu distros
Post by: cryptomined on November 27, 2016, 11:56:20 PM
just curious, thanks for sharing


Title: Re: How to remove devfee from optiminer on ethos and other ubuntu distros
Post by: NameTaken on November 28, 2016, 12:02:54 AM
https://forum.z.cash/t/about-linux-dev-fees/9600/37

Systemd nfqsed.service:

Code:
[Unit]
Description=Transparently modifies network traffic using a predefined set of substitution rules
Wants=optiminer.service
After=optiminer.service

[Service]
ExecStartPre=/sbin/iptables -A OUTPUT -p tcp -d eu1-zcash.flypool.org --dport 3333 -j NFQUEUE
ExecStart=/usr/bin/stdbuf -oL /usr/local/bin/nfqsed -v -s /t1RsS2XVTjEeGST1RdKzPRSu5GTu45WsqcU/t1TNT1oDGRfvJwQ2CQdLT8U8U9GMXrVHhRJ
ExecReload=/bin/kill -HUP $MAINPID
ExecStopPost=/sbin/iptables -D OUTPUT -p tcp -d eu1-zcash.flypool.org --dport 3333 -j NFQUEUE

Nice=-20
SendSIGHUP=yes
KillMode=mixed
RestartSec=10s
Restart=always

PrivateDevices=yes
ProtectSystem=full
ProtectHome=yes
NoNewPrivileges=yes

[Install]
WantedBy=multi-user.target


Title: Re: How to remove devfee from optiminer on ethos and other ubuntu distros
Post by: cryptomined on November 28, 2016, 12:20:12 AM
how about for people who theoretically wanted to use his windows optiminer?
how can they do this?
thanks


Title: Re: How to remove devfee from optiminer on ethos and other ubuntu distros
Post by: NameTaken on November 28, 2016, 12:24:49 AM
how about for people who theoretically wanted to use his windows optiminer?
how can they do this?
thanks
If a Windows computer is connected through a Linux computer then that Linux computer can be the man in the middle to accomplish the same result.


Title: Re: How to remove devfee from optiminer on ethos and other ubuntu distros
Post by: joaogti36 on November 28, 2016, 01:42:50 AM
works nice on ethos!!!!


Title: Re: How to remove devfee from optiminer on ethos and other ubuntu distros
Post by: grizscom on November 28, 2016, 03:14:24 PM
Author fellow, and thank him for the product, but it ruined by greed. 10% - it is very much IMHO.
He had to use SSL connection to your server.
I did not want to spread in Public technique, but once it happened already.

You can instead nfqsed, use netsed.


Title: Re: How to remove devfee from optiminer on ethos and other ubuntu distros
Post by: lakat on December 13, 2016, 01:53:06 PM
This method is not working with the new Optiminer 1.0.1


Title: Re: How to remove devfee from optiminer on ethos and other ubuntu distros
Post by: doktor83 on December 13, 2016, 02:17:03 PM
so tell me something, it's ok for you folks to hack a miner that has a devfee because you think the fee should be smaller, but it's not ok to hack a miner that has a fee of 2.5%, because that percentage is ok ?

So who are you now to decide what fee is ok , and what isn't ?

If 10% is much for you, don't use the miner. :)