fireice-uk / xmr-stak

Free Monero RandomX Miner and unified CryptoNight miner
GNU General Public License v3.0
4.05k stars 1.8k forks source link

socks5 proxy support #1676

Open maxfunky opened 6 years ago

maxfunky commented 6 years ago

does xmr-stak have support socks5 proxy in config ?

in a way similar to cpuminer-multi -x SOCKS5://127.0.0.1:9050

Spudz76 commented 6 years ago

No, however you may be able to use something like this where you configure a localhost port to give to xmr-stak as a "normal TCP endpoint", and configure your socks5 endpoint in rsocks.

Uses Python so it "should" work on pretty much any OS... and there could be others I only looked for a minute. Keywords "socks5 reverse proxy" mostly worked.

maxfunky commented 5 years ago

but would it be hard to implement directly into xmr-stak ?

Rock1111 commented 5 years ago

ssh -N -f -L 3333:pool.supportxmr.com:3333 root@remoteserver_can_connect_to_pool

then try localhost:3333

Spudz76 commented 5 years ago

Yes it would add complexity in the pool/socket code and using a side tunnel method works without introducing more bug vectors into the mining tool directly. Let the tools stay simple and do what they do well separately, and team them up to get features, is a much better practice.

A swiss army knife is arguably cooler to look at than actually try to get anything done with, when actual screwdrivers or razors are available. Prefer to keep things focused on the job at hand (hashing quickly) rather than the 40 ways a user might tunnel to obtain the work feed and result backchannel. We don't support PPTP either, that is part of setting up your network to talk to your pool, same as tunnels or VPNs or... etc

IMO OpenSSL doesn't even belong included. But there were likely too many requests, and an external TLS proxy wrapper is a bit tougher to set up than a SOCKS5 or SSH one when based on free software.