linux cntlm代理的配置
2016-06-13 17:12
211 查看
在linux下需要配置代理上网,如yum, wget等。如果直接配置windows下的代理,如下:
export http_proxy=http://<proxyIP>:<port>
使用wget时会出错,407 Proxy need authentication, 网上搜了一下用一个叫ntlmaps的东西,结果不好使。于是又换了cntlm一切ok。
linux下使用windows代理的代理. 网址: https://sourceforge.net/projects/cntlm/
Step 1: install
rpm -ivh cntlm-0.92.3-1.x86_64.rpm
Step 2: configuration
refer to cntlm.conf(/etc) as example.
to restart cntlm:
ps -ef|grep cntlm
kill -9 <pid>
cntlm
Step 3: env
change .bashrc, or export http_proxy
export http_proxy=http://127.0.0.1:3128
Step 4: verify
[root@localhost ~]# netstat -nl |grep 3128
tcp 0 0 127.0.0.1:3128 0.0.0.0:* LISTEN
wget -d -v www.baidu.com
NOTE: 如果不work, 在linux上打开firefox, 手动设置代理, 然后提示输入用户名密码后,再进行上面的配置.
ok!
export http_proxy=http://<proxyIP>:<port>
使用wget时会出错,407 Proxy need authentication, 网上搜了一下用一个叫ntlmaps的东西,结果不好使。于是又换了cntlm一切ok。
linux下使用windows代理的代理. 网址: https://sourceforge.net/projects/cntlm/
Step 1: install
rpm -ivh cntlm-0.92.3-1.x86_64.rpm
Step 2: configuration
refer to cntlm.conf(/etc) as example.
to restart cntlm:
ps -ef|grep cntlm
kill -9 <pid>
cntlm
Step 3: env
change .bashrc, or export http_proxy
export http_proxy=http://127.0.0.1:3128
Step 4: verify
[root@localhost ~]# netstat -nl |grep 3128
tcp 0 0 127.0.0.1:3128 0.0.0.0:* LISTEN
wget -d -v www.baidu.com
NOTE: 如果不work, 在linux上打开firefox, 手动设置代理, 然后提示输入用户名密码后,再进行上面的配置.
ok!
相关文章推荐
- CentOS 6.5下Samba服务器的安装与配置
- linux基础命令
- could not bind listening IPv4 socket错误
- linux工具---windows文件传输到linux工具以及SSH客户端软件
- linux工具---windows文件传输到linux工具以及SSH客户端软件
- Linux系统常用指令、管道(pipe)、文件查找(find)
- Semi-Automatic 3D Annotation3D源码编译过程记录
- linux下开发android_jni过程及错误经历
- linux IIC子系统分析(八)——实例分析通过sysfs访问I2c设备
- linux IIC子系统分析(七)——实例分析通过i2c-dev操作I2C设备
- linux基本命令
- linux IIC子系统分析(六)——I2c plaform driver 初始化
- linux IIC子系统分析(五)——I2C plaform device 初始化
- linux IIC子系统分析(四)——I2c bus初始化
- Linux防火墙的配置方法(firewalld服务)
- Linux系统Root密码破解(RHEL7&Centos7版本)
- 【PHP】linux搭建PHP运行环境
- Linux下的Mysql,导入执行sql文件命令
- linux IIC子系统分析(三)——I2c子系统初始化顺序分析
- Linux iptables 防火墙详解