Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: Schlumbinator on August 14, 2013, 02:25:34 PM



Title: cgminer: socks proxy function fail since 3.1.1
Post by: Schlumbinator on August 14, 2013, 02:25:34 PM
Iīm running a couple of cgminer version 3.1.0 on Win7 behind a socks5 proxy. Itīs connecting over stratum protocol to a pool.

Since version 3.1.1 I found that cgminer ignores the proxy settings in cgminer.conf ("socks-proxy" : "10.162.18.117:1337",)
Running from commandline without a cgminer.conf like this (cgminer.exe --scrypt -o "stratum+tcp://eu.wemineltc.com:3333" -u user -p pass --socks-proxy 10.162.18.117:1337) it just ignore it too, it connects directly to the external pool IPīs.

My tests are validated with ProcessExplorer from Sysinternals which allows to watch the outgoing IP connections of an exe file to outside world.

Even on the newest version 3.3.4 Cgminer the socks proxy settings doesnīt have effect.

I did not found any changes in the Manual which would explain this behavior.

Is there a trick how to enable Socks Proxy functionality again?

best regards
Schlumbinator


Title: Re: cgminer: socks proxy function fail since 3.1.1
Post by: Schlumbinator on August 15, 2013, 07:14:12 AM
??? Anyone?


Title: Re: cgminer: socks proxy function fail since 3.1.1
Post by: Schlumbinator on September 02, 2013, 12:01:06 PM
Just wondering if anyone possibly had the same behavior?


Title: Re: cgminer: socks proxy function fail since 3.1.1
Post by: -ck on September 03, 2013, 06:51:50 AM
All proxy support was disabled for stratum from 3.2.0 onwards to work around bugs from using libcurl which was making the proxy connections.


Title: Re: cgminer: socks proxy function fail since 3.1.1
Post by: Schlumbinator on September 03, 2013, 07:22:33 AM
Ah, that makes sense, thanks for the update.
Are there any plans to re-enable the Proxy feature in the future?
Iīm guessing there are a couple of more users out there which love that function too.


Title: Re: cgminer: socks proxy function fail since 3.1.1
Post by: -ck on September 03, 2013, 07:38:10 AM
Not at the moment, no. I'm surprised people are putting mining hardware behind proxies now that it's all gone custom hardware to be honest...


Title: Re: cgminer: socks proxy function fail since 3.1.1
Post by: Zanatos666 on September 03, 2013, 02:07:12 PM
Not at the moment, no. I'm surprised people are putting mining hardware behind proxies now that it's all gone custom hardware to be honest...

Well I have used a proxy for two reasons, one, I have hardware in a different site and the firewall there likes to block port 3333 which is used a lot of the time for stratum, so I would bounce my connection out of an open port to my proxy running at home so I could keep it connected.  Secondly, there were some places that would ban you if it caught you using multiple IP addresses for the same account, so I had to use my proxy in order to have rigs setup in different places show the same IP address.

Didnt know this had been disabled, which explains why when I tried using it the other day to mine scrypt I couldnt because P2Pool uses a port thats blocked and I attempted to bounce it off my proxy and it failed....


Title: Re: cgminer: socks proxy function fail since 3.1.1
Post by: -ck on September 06, 2013, 12:29:18 PM
I've just created native stratum proxy support for http1.0/1.1 and socks5 proxies for cgminer and it is now in the git master branch so it will be in the next cgminer release.


Title: Re: cgminer: socks proxy function fail since 3.1.1
Post by: Zanatos666 on September 06, 2013, 01:09:07 PM
I've just created native stratum proxy support for http1.0/1.1 and socks5 proxies for cgminer and it is now in the git master branch so it will be in the next cgminer release.

You are awesome, thanks!!


Title: Re: cgminer: socks proxy function fail since 3.1.1
Post by: -ck on September 06, 2013, 10:29:55 PM
By the way, are you using a socks4 or 5 proxy?


Title: Re: cgminer: socks proxy function fail since 3.1.1
Post by: Zanatos666 on September 07, 2013, 05:48:12 PM
By the way, are you using a socks4 or 5 proxy?

Socks 4 currently.


Title: Re: cgminer: socks proxy function fail since 3.1.1
Post by: -ck on September 08, 2013, 07:29:29 AM
By the way, are you using a socks4 or 5 proxy?

Socks 4 currently.
Ok, I've coded up socks4 support as well now.


Title: Re: cgminer: socks proxy function fail since 3.1.1
Post by: Zanatos666 on September 08, 2013, 03:40:08 PM
By the way, are you using a socks4 or 5 proxy?

Socks 4 currently.
Ok, I've coded up socks4 support as well now.

Again, thanks!  Very much appreciated.


Title: Re: cgminer: socks proxy function fail since 3.1.1
Post by: Schlumbinator on September 19, 2013, 10:48:46 AM
Just tested version 3.4.3 - this is working like a charm!
Thankyou to put Socks Proxy Feature back to the miner.
Keep up the good work.


Title: Re: cgminer: socks proxy function fail since 3.1.1
Post by: -ck on September 19, 2013, 10:53:43 AM
Just tested version 3.4.3 - this is working like a charm!
Thankyou to put Socks Proxy Feature back to the miner.
Keep up the good work.
You're most welcome. Thanks for testing it and reporting back.