Bitcoin Forum

Bitcoin => Mining => Topic started by: Tesla71 on April 09, 2013, 01:25:57 PM



Title: Mining behind proxy that requires authentication. Here is how it works
Post by: Tesla71 on April 09, 2013, 01:25:57 PM
Hi,

always had trouble mining behind a proxy which requires authentication, eg. domainuser and password?

Here is the way I did it:
Using cntlm authentication proxy: http://cntlm.sourceforge.net/

The proxy installs as a servive, which authenticates to the normal domain proxy and then offers a proxy port which does not need authentication.
Installed on my mining machine, it works perfectly.

1. Download cntlm from http://cntlm.sourceforge.net/
2. Unpack to a temporary directory
3. Edit the cntlm.ini to set your proxy, port and username /password
4. Use the following commands in a batch file to install as a service

Code:
set DIR=C:\Progra~1\Cntlm
if not exist "%DIR%" md "%DIR%"
copy /Y cntlm.exe "%DIR%"
if not exist "%DIR%\cntlm.ini" copy /Y cntlm.ini "%DIR%"
copy /Y cygrunsrv.exe "%DIR%"
copy /Y cygwin1.dll "%DIR%"
copy /Y uninstall.bat "%DIR%"
"%DIR%\cygrunsrv.exe" -R cntlm 2>NUL
"%DIR%\cygrunsrv.exe" -I cntlm -s KILL -t auto -p "%DIR%\cntlm.exe" -d "Cntlm Authentication Proxy" -f "HTTP Accelerator" -a "-f -c %DIR%\cntlm.ini"
pause

5. start the service and connect your miner to your pool via proxy localhost:3128 (or whatever port you set in the cntlm.ini)

If it works for you, I would be glad about some donation  :)

btw: also works with google drive this way, as the client does not support authentication..

Remark: For security reason, do not use your domainpassword in the .ini file, use cntlm -H to create a hash of it instead and then use parameter 'PassNTLMv2' instead of 'Password'