无法在ubuntu上configurationcntlm进行NTLM身份validation

我正在尝试在ubuntu13上为NTLM身份validation设置cntlm。 我使用apt-get install安装ctlm。 我的cntlm.conf文件在etc目录下复制 – 用户名/域名和密码是正确的(我已经testing了不同的应用程序)。 但是,当我尝试通过/etc/init.d/ntlm start(或重新启动)启动cntlm时,它始终会失败,并在最后复制错误消息。 任何build议来解决这个问题将不胜感激。

cntlm.conf

# Cntlm Authentication Proxy Configuration Username account Domain xxxxxx.com Password password # NOTE: Use plaintext password only at your own risk # Use hashes instead. You can use a "cntlm -M" and "cntlm -H" # command sequence to get the right config for your environment. # See cntlm man page # Example secure config shown below. # PassLM 1AD35398BE6565DDB5C4EF70C0593492 # PassNT 77B9081511704EE852F94227CF48A793 ### Only for user 'testuser', domain 'corp-uk' # PassNTLMv2 D5826E9C665C37C80B53397D5C07BBCB # Workstation netbios_hostname ###Proxy 10.0.0.41:8080 ###Proxy 10.0.0.42:8080 NoProxy localhost, 127.0.0.*, 10.*, 192.168.*, 0.0.* Listen 3128 #SOCKS5Proxy 8010 #SOCKS5User dave:password #Auth LM #Flags 0x06820000 #Gateway yes #Allow 127.0.0.1 #Deny 0/0 #ISAScannerSize 1024 #ISAScannerAgent Wget/ #ISAScannerAgent APT-HTTP/ #ISAScannerAgent Yum/ #Header User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98) #Tunnel 11443:remote.com:443 

错误信息:

 Stopping CNTLM Authentication Proxy: cntlm. Starting CNTLM Authentication Proxy: failed! 

更新 :当我运行以下:

 cntlm -v -c cntlm.conf 

错误消息提到了以下内容:

错误

 cntlm: Parent proxy address missing. Exitting with error. Check daemon logs or run with -v. 

另一个更新:

我从代理标志中删除了未注释的hashtags,并且cntlm似乎正在运行。 我会更新这个post,如果我遇到任何问题。

更新 cntlm似乎在端口3128上运行。我指出IE使用正确的IP地址和端口号的代理 – 但是,连接超时。 任何有关解决这个问题的build议将不胜感激。

configuration文件有几个不同的问题:

  • 首先,你忘了指定用来传递你的NTLM凭证的父代理,你已经解决了这个问题(据我所知,没有注释“代理”指令)。
  • 现在把你的IP地址添加到“允许”指令中,我build议同时为本地主机添加127.0.0.1和为以太网接口分配的外部IP地址,例如,如果你的子网是192.168.1.0/24,你的IP地址是你的工作站192.168.1.10然后指令应该看
允许127.0.0.1
允许192.168.1.10

简单的重新启动后,将做的伎俩。 然后,您可以使用127.0.0.1或192.168.1.10作为代理服务器在IE或任何其他浏览器,使其使用cntlm工作。