Skip to content
This repository has been archived by the owner on Jan 23, 2019. It is now read-only.

Proxy support #1

Closed
denics opened this issue Apr 20, 2017 · 7 comments
Closed

Proxy support #1

denics opened this issue Apr 20, 2017 · 7 comments

Comments

@denics
Copy link

denics commented Apr 20, 2017

Hi and thanks for the nice work. Is it possible to add proxy support to nheqminer?

@kozyilmaz
Copy link
Owner

Hi @denics, what is the setup exactly or which pools are you trying to connect? Are you unable to connect "stratum+tcp" ports of pools because of port restrictions in your environment?

@denics
Copy link
Author

denics commented May 5, 2017

@kozyilmaz , yes, thanks. my environment use a http_proxy and I did not find how to make nheqminer through

@kozyilmaz
Copy link
Owner

kozyilmaz commented May 5, 2017

@denics as far as I understand you need to route miner's tcp traffic (stratum connection) through http proxies, assuming the pool you are trying to connect does not provide 80/443 port options. Can you check this project https://github.com/rofl0r/proxychains-ng

@kozyilmaz
Copy link
Owner

@denics I tested with a public http proxy that supports "connect" and nheqminer combined with proxychains works! This is the command line I used:

./bin/proxychains4 -f etc/proxychains.conf ./bin/nheqminer -l zec.suprnova.cc:2142 -u WORKERNAME -p PASSWORD -t 1 -d 0

with the result:

Setting log level to 0
[19:01:59][0x00007f8ed75a3740] Using SSE2: YES
[19:01:59][0x00007f8ed75a3740] Using AVX: NO
[19:01:59][0x00007f8ed75a3740] Using AVX2: NO
[19:01:59][0x00007f8ed60c7700] stratum | Starting miner
[19:01:59][0x00007f8ed60c7700] stratum | Connecting to stratum server zec.suprnova.cc:2142
[19:01:59][0x00007f8ed58c6700] miner#0 | Starting thread #0 (CPU-TROMP-SSE2) 
[proxychains] Strict chain  ...  45.32.167.150:8080  ...  zec.suprnova.cc:2142  ...  OK
[19:02:00][0x00007f8ed60c7700] stratum | Connected!
[19:02:00][0x00007f8ed60c7700] stratum | Sending: {"id":1,"method":"mining.subscribe","params":["nheqminer/0.5c", null,"zec.suprnova.cc","2142"]}

[19:02:00][0x00007f8ed60c7700] stratum | Received: {"id":1,"result":[null,"5ce6f647000000000000000047f6e65b"],"error":null}
[19:02:00][0x00007f8ed60c7700] stratum | Subscribed to stratum server
[19:02:00][0x00007f8ed60c7700] miner | Extranonce is 5ce6f647000000000000000047f6e65b

and this is the proxychains configuration file change I made:

--- proxychains-ng-4.12/src/proxychains.conf	2016-12-24 16:15:08.000000000 +0300
+++ b/etc/proxychains.conf	2017-05-05 18:59:44.452690131 +0300
@@ -112,5 +112,6 @@ tcp_connect_time_out 8000
 # add proxy here ...
 # meanwile
 # defaults set to "tor"
-socks4 	127.0.0.1 9050
+#socks4 	127.0.0.1 9050
+http 45.32.167.150 8080

@kozyilmaz
Copy link
Owner

@denics Any chance to miner test with proxychains?

@denics
Copy link
Author

denics commented May 9, 2017

Hi @kozyilmaz it is working! I think you should add this in the instructions.

@kozyilmaz
Copy link
Owner

@denics Great! I can add proxychains to the build as a separate package if you like

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants