yum超越ISA

两种办法,使用 ntlmaps 或者 cntlmd。使用方法见各自文档,后续补充

1。在RHEL 4 中,只要环境变量中导出了 http_proxy=http://localhost:3128 或者 http://localhost:5865 就可以了。

2。在RHEL 5 或者 Centos 5.5 中,导出之后上网是可以的,但是执行 yum 升级还是会报各种 403 错误,我一度以为是 ISA 卡得太严了,差点准备直接把升级服务器用 rsync 同步到本地了。偶然修改了下 /etc/yum.conf,增加了

#add for isa
proxy=http://localhost:3128/
#proxy_username=***
#proxy_password=***

发现就好用了啊(因为是本地代理了,密码什么都不用了)。。

其实开始也加过,但是那是可能是 cntlmd 没有开,所以不行了啊。。。

记一下,搞了好些天,悲催啊。。

2011-11-26 补充

cntlm 测试使用 cntlm -I -M http://test.com时报

Parent proxy account username missing.

主要所是因为找不到配置文件,执行

cntlm -c /etc/cntlm.conf -I -M http://test.com

就可以了

原文地址:https://www.cnblogs.com/tigertall/p/2141544.html