Ubuntu代理上网软件cntlm
下载网址:http://sourceforge.net/projects/cntlm/files/cntlm/
$ sudo apt-get install cntlm
$ sudo vi /etc/cntlm.conf
Username aa
Domain ming.com
Password 123
Proxy 10.0.0.20:8080
:wq (保存并退出)
开启cntlm服务:
$ sudo cntlm
关闭cntlm服务:
$ sudo killall cntlm
$ sudo vi /etc/apt/apt.conf.d/proxy (或$ sudo vi /etc/apt/apt.conf)
Acquire::http::Proxy "http://127.0.0.1:3128"
:wq (保存并退出)
Redhat 设置cntlm代理步骤:
http://sourceforge.net/projects/cntlm/files/cntlm/cntlm%200.35/cntlm-0.35.tar.gz/download
$ tar zxfv cntlm-0.35.tar.gz
$ cd cntlm-0.35
$ ./configure
$ sudo make
$ sudo make install
$ sudo vi /usr/local/etc/cntlm.conf
username ming.yang
domain ming
password 123456
Proxy 10.0.0.3:8080
:wq
$ sudo killall cntlm
$ sudo cntlm
$ sudo vi /etc/profile
export http_proxy=http://127.0.0.1:3128
export ftp_proxy=http://127.0.0.1:3128
export https_proxy=http://127.0.0.1:3128
:wq
$ source /etc/profile
转载于:https://blog.51cto.com/yangzhiming/1359925