更新:遇到這個(gè)問題的朋友,不用往下面看了,請直接使用 cntlm
吧,比ntlmaps 好用些!
在 公司里面,網(wǎng)絡(luò)訪問都是通過ISA Server的(Microsoft® Internet Security and Acceleration Server),在使用Windows的時(shí)候不會出現(xiàn)任何問題,可是前兩天裝了Ubuntu Linux,遇到了些問題。
我使用firefox訪問網(wǎng)絡(luò)沒有問題,只需要設(shè)好代理服務(wù)器地址,瀏覽網(wǎng)站時(shí)輸入相應(yīng)的用戶名和密碼即可,但在console下面使用apt-get更新系統(tǒng)時(shí)有問題。
開始我覺得應(yīng)該這樣設(shè)置代理:
export http_proxy=http://domaindomainuser:password@proxy.corpnet.com:8080
可是總會出現(xiàn)這個(gè)錯(cuò)誤:
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )
后來在網(wǎng)上搜索了一下,找到方法解決這個(gè)問題了:
Download ntlmaps-0.9.9.0.1 from here
$ tar -zxvf ntlmaps-0.9.9.0.1
$ vim ntlmaps-0.9.9.0.1/server.cfg
Edit PARENT_PROXY,PARENT_PROXY_PORT,USER,PASSWORD to match your preferences, then run main.py
$ ./ntlmaps-0.9.9.0.1/main.py &
$ export http_proxy="http://127.0.0.1:5865 "
$ sudo apt-get update
Now, everything is OK.
在 公司里面,網(wǎng)絡(luò)訪問都是通過ISA Server的(Microsoft® Internet Security and Acceleration Server),在使用Windows的時(shí)候不會出現(xiàn)任何問題,可是前兩天裝了Ubuntu Linux,遇到了些問題。
我使用firefox訪問網(wǎng)絡(luò)沒有問題,只需要設(shè)好代理服務(wù)器地址,瀏覽網(wǎng)站時(shí)輸入相應(yīng)的用戶名和密碼即可,但在console下面使用apt-get更新系統(tǒng)時(shí)有問題。
開始我覺得應(yīng)該這樣設(shè)置代理:
export http_proxy=http://domaindomainuser:password@proxy.corpnet.com:8080
可是總會出現(xiàn)這個(gè)錯(cuò)誤:
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )
后來在網(wǎng)上搜索了一下,找到方法解決這個(gè)問題了:
Download ntlmaps-0.9.9.0.1 from here
$ tar -zxvf ntlmaps-0.9.9.0.1
$ vim ntlmaps-0.9.9.0.1/server.cfg
Edit PARENT_PROXY,PARENT_PROXY_PORT,USER,PASSWORD to match your preferences, then run main.py
$ ./ntlmaps-0.9.9.0.1/main.py &
$ export http_proxy="http://127.0.0.1:5865 "
$ sudo apt-get update
Now, everything is OK.