Bitcoin Forum
August 22, 2024, 07:37:32 AM *
News: All versions of Windows are affected by a critical security bug; make sure you update.
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Mining behind proxy that requires authentication. Here is how it works  (Read 4940 times)
Tesla71 (OP)
Sr. Member
****
Offline Offline

Activity: 302
Merit: 252



View Profile
April 09, 2013, 01:25:57 PM
Last edit: April 09, 2013, 02:23:02 PM by Tesla71
 #1

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  Smiley

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'
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!