Bitcoin Forum
November 19, 2017, 02:11:00 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Mining behind proxy that requires authentication. Here is how it works  (Read 4800 times)
Tesla71
Sr. Member
****
Offline Offline

Activity: 293



View Profile
April 09, 2013, 01:25:57 PM
 #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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!