I have a problem when I configure proxy on my server Centos 6.
Here is my /etc/cntlm.conf:
and my /etc/yum.conf:[root@localhost]# vim /etc/cntlm.conf
Username candidate
Domain test.vn
Password zaq12wsx
Proxy 192.168.1.11:3128 ## This is my proxy port. It the same with listen port on localhost
Listen 3128
NoProxy localhost, 127.0.0.*, 192.168.*
and netstat[root@localhost]# vim /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php? ... tegory=yum
distroverpkg=centos-release
proxy = http://localhost:3128/
netstat -anp | grep 3128
tcp 0 0 127.0.0.1:3128 0.0.0.0:* LISTEN 30859/cntlm
Everything seem ok, but error occur when i use yum update command
So I think I have somthing wrong when I configure proxy.[root@localhost]# yum update
Loaded plugins: downloadonly, fastestmirror, refresh-packagekit, replace, security
Setting up Update Process
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... 64&repo=os error was
14: PYCURL ERROR 52 - "Empty reply from server"
Error: Cannot find a valid baseurl for repo: base
On Windows, I can use this proxy with no problem.
So anyone can help me for this issue.
## UPDATE: When I disable proxy authentication, I no need configure cntlm service.
Just only use and yum working ok.
proxy = http://192.168.1.11:3128/ on yum.conf
But it's didn't recommend, I want server need to authenticate, so anyone can help me ?
Thanks