Skip to content

Redirecting all domains (Linux)

M4T edited this page Jul 22, 2017 · 2 revisions

Redirecting all DevFee domains

If you use ETH-fork (or -allcoins 1), you have to redirect the domain and port which are been hard-coded for DevFee mining. This tutorial is for Linux OS.

1. Redirecting the domain

Edit the hosts file as Administrator. /etc/hosts

Place this at the end:

127.0.0.1 us1.ethermine.org
127.0.0.1 us2.ethermine.org
127.0.0.1 eu1.ethermine.org
127.0.0.1 eu2.ethermine.org
127.0.0.1 asia1.ethermine.org
127.0.0.1 eth-asia1.nanopool.org
127.0.0.1 eth-us-west1.nanopool.org
127.0.0.1 eth-us-east1.nanopool.org
127.0.0.1 eth-eu2.nanopool.org
127.0.0.1 eth-eu1.nanopool.org
127.0.0.1 eu1.ethpool.org
127.0.0.1 asia1.ethpool.org
127.0.0.1 us1.ethpool.org
127.0.0.1 us2.ethpool.org
127.0.0.1 eth-eu.dwarfpool.com
127.0.0.1 eth-us.dwarfpool.com
127.0.0.1 eth-us2.dwarfpool.com
127.0.0.1 eth-ru.dwarfpool.com
127.0.0.1 eth-asia.dwarfpool.com
127.0.0.1 eth-cn.dwarfpool.com
127.0.0.1 eth-cn2.dwarfpool.com
127.0.0.1 eth-sg.dwarfpool.com
127.0.0.1 eth-au.dwarfpool.com
127.0.0.1 eth-ru2.dwarfpool.com
127.0.0.1 eth-hk.dwarfpool.com
127.0.0.1 eth-br.dwarfpool.com
127.0.0.1 eth-cn.dwarfpool.com
127.0.0.1 eth-ar.dwarfpool.com

Make sure your real mining pool is not listed in this file!

2. Redirecting the ports

As root execute

iptables -t nat -A OUTPUT -p tcp --dport 4444 -j REDIRECT --to 8888
iptables -t nat -A OUTPUT -p tcp --dport 3333 -j REDIRECT --to 8888
iptables -t nat -A OUTPUT -p tcp --dport 9999 -j REDIRECT --to 8888