<p>There are bitcoin mining proxies, some code is available on github (use the search).
For example <a href="https://github.com/cdhowie/Bitcoin-mining-proxy" rel="nofollow">https://github.com/cdhowie/Bitcoin-mining-proxy</a>
(*pls make your own security evaluations on opensource code)</p>

<p>Im not aware of a "intermediate pool", of course proxies are popular for mining.</p>

CC BY-SA 3.0
2013-05-18T12:36:54.953Z
Thanks, but is there is a solution in C/C++?
Roman
CC BY-SA 3.0
2013-05-18T13:09:46.507Z
@Roman While I agree that this specific example uses PHP to relay the *getwork* protocol instead of *stratum*, and that that's not wise, languages like Java or Go often outperform C/C++. Although performance hardly seems relevant in this case.
Tom van der Woerdt
CC BY-SA 3.0
2013-05-18T12:28:14.320Z
2013-05-18T12:28:14.320Z
Aurigae
<p>Yes there are lots of ways to do this, the easiest of which is likely using Startum Proxy as described here: <a href="https://litecointalk.org/index.php?topic=4831.0" rel="nofollow noreferrer">https://litecointalk.org/index.php?topic=4831.0</a></p>

<p>Also I found something which may be able to help here on SE: <a href="https://bitcoin.stackexchange.com/questions/22476/i-have-8-antminers-is-there-a-way-i-could-change-their-pool-credentials-all-at/22551?noredirect=1#22551">I have 8 Antminers, is there a way I could change their pool credentials all at the same time like through ssh with a script</a></p>

<p>It should be noted that the Stratum Mining Proxy was developed to port old machinery (early ASICs, mainly) to Stratum by having the proxy create getwork from a stratum request for you.</p>

<p>I would look at some open source pools: <a href="https://en.bitcoin.it/wiki/Software#Mining_Pool_Servers_.28backend.29" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/Software#Mining_Pool_Servers_.28backend.29</a></p>

<p>Getwork has a great feature built in called "hostlist", which was created by slush and is described here: <a href="https://en.bitcoin.it/wiki/Getwork#hostlist" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/Getwork#hostlist</a></p>

<p>I am not sure how this transitioned into stratum or getblocktemplate.</p>

<p>It has not been included in most pool software and is not native to bitcoind (it is a miner-side protocol and thus does not NEED to be in bitcoind): <a href="https://en.bitcoin.it/wiki/Poolservers" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/Poolservers</a></p>

<p>Until last year hostlist had transitioned into more modern mining software, I would recommend testing this function before getting too far into development ;) Unfortunately I do not have the time right now to test this but hopefully this puts you on the right path of hacking together something which works for you.</p>

CC BY-SA 3.0
2014-08-15T15:03:08.823Z
2014-08-15T15:03:08.823Z
2017-04-13T12:47:33.583Z
Mark
<p>Is it possible to make "intermediate" pool server, which will be gateway to real pool?</p>

<p>I have about 200 pc's, each pc connects to my intermediate pool using own login pass. Intermediate pool should get work (using stratum) from real pool using own login and pass, and submit shares using own login password.</p>

<p><img src="https://i.sstatic.net/3rv0M.jpg" alt="Gateway Example"></p>

<mining-pools><miner-configuration><server>
Intermediate pool server
Roman
# Intermediate pool server

(Asked by: username_0 on 2013-05-18)

Is it possible to make "intermediate" pool server, which will be gateway to real pool?

I have about 200 pc's, each pc connects to my intermediate pool using own login pass. Intermediate pool should get work (using stratum) from real pool using own login and pass, and submit shares using own login password.

![Gateway Example](https://i.sstatic.net/3rv0M.jpg)

**Tags:** mining-pools, miner-configuration, server


---

## 2 answers

### Answer by username_1 on 2013-05-18. Score: 2

There are bitcoin mining proxies, some code is available on github (use the search).
For example <https://github.com/cdhowie/Bitcoin-mining-proxy>
(\*pls make your own security evaluations on opensource code)

Im not aware of a "intermediate pool", of course proxies are popular for mining.

> **Comments:**
> **username_0**: Thanks, but is there is a solution in C/C++?  
> **username_2**: @username_0 While I agree that this specific example uses PHP to relay the *getwork* protocol instead of *stratum*, and that that's not wise, languages like Java or Go often outperform C/C++. Although performance hardly seems relevant in this case.  

---

### Answer by username_3 on 2014-08-15. Score: 1

Yes there are lots of ways to do this, the easiest of which is likely using Startum Proxy as described here: <https://litecointalk.org/index.php?topic=4831.0>

Also I found something which may be able to help here on SE: [I have 8 Antminers, is there a way I could change their pool credentials all at the same time like through ssh with a script](https://bitcoin.stackexchange.com/questions/22476/i-have-8-antminers-is-there-a-way-i-could-change-their-pool-credentials-all-at/22551?noredirect=1#22551)

It should be noted that the Stratum Mining Proxy was developed to port old machinery (early ASICs, mainly) to Stratum by having the proxy create getwork from a stratum request for you.

I would look at some open source pools: <https://en.bitcoin.it/wiki/Software#Mining_Pool_Servers_.28backend.29>

Getwork has a great feature built in called "hostlist", which was created by slush and is described here: <https://en.bitcoin.it/wiki/Getwork#hostlist>

I am not sure how this transitioned into stratum or getblocktemplate.

It has not been included in most pool software and is not native to bitcoind (it is a miner-side protocol and thus does not NEED to be in bitcoind): <https://en.bitcoin.it/wiki/Poolservers>

Until last year hostlist had transitioned into more modern mining software, I would recommend testing this function before getting too far into development ;) Unfortunately I do not have the time right now to test this but hopefully this puts you on the right path of hacking together something which works for you.


---

