代理软件cntlm之下载、安装、配置及使用

1.由于公司设置了网络访问权限,服务器需要安装一些命令工具与软件,只能装一个代理软件

2.去官网下载cntlm软件https://sourceforge.net/projects/cntlm/files/cntlm/

3.我安装window版本运行有问题,加上公司电脑权限问题,转而将代理安装在服务器上。

4.即我是在centos7系统安装的,下载的是cntlm-0.92.3.tar.gz ,使用tar -zxf cntlm-0.92.3.tar.gz进行 解压

5.安装方法见cntlm-0.92.3/README文件,
执行./configure
make
make install

6.安装成功后就是需要配置文件了:
配置文件路径/etc/cntlm.conf,,或不知道配置文件在哪,可使用find / -name “cntlm.conf” 命令查找
需要配置
Username ###usename域账户名
Domain ## Domain配置域名
Password ## Password配置域登录密码
Proxy ## 配置的Proxy
Gateway yes ## 允许其他设备访问改

7.获取Auth
运行cntlm -vc /etc/cntlm.conf -M http://baidu.com
运行中需要输入密码,即配置的域登录密码
将运行获取到的
PassNTLMv2 84B6FCE6A45BC04413FDC0E5031758E5
粘贴到/etc/cntlm.conf 文件中

8.设置cntlm的环境变量:
/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

9.启动cntlm
命令: cntlm -c /etc/cntlm.conf
可以在/etc/rc.d/rc.local文件中加入cntlm -c /etc/cntlm.conf
这样开机时就自动启动cntlm了
有些系统开机时不会加载/etc/rc.d/rc.local,可以在/etc/rc.d/rc.sysinit文件中加入 /etc/rc.d/rc.local,若没有rc.sysinit文件,就新建一个。
一般/etc/rc.local 是软链接指向/etc/rc.d/rc.local

10 测试:
使用yum安装一些命令,来校验安装是否安装成功
比如:yum install -y rpm-build或yum install -y lshw
要是不成功,一般会报HTTP 407故障,

第一篇博客,全部是文件描述,觉得加图片浪费篇幅长度,如果在安装中有什么问题,欢迎一块探讨。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
About Cntlm proxy Cntlm (user-friendly wiki / technical manual) is an NTLM / NTLM Session Response / NTLMv2 authenticating HTTP proxy intended to help you break free from the chains of Microsoft proprietary world. You can use a free OS and honor our noble idea, but you can't hide. Once you're behind those cold steel bars of a corporate proxy server requiring NTLM authentication, you're done with. The same even applies to 3rd party Windows applications, which don't support NTLM natively. Here comes Cntlm. It stands between your applications and the corporate proxy, adding NTLM authentication on-the-fly. You can specify several "parent" proxies and Cntlm will try one after another until one works. All auth'd connections are cached and reused to achieve high efficiency. Just point your apps proxy settings at Cntlm, fill in cntlm.conf (cntlm.ini) and you're ready to do. This is useful on Windows, but essential for non-Microsoft OS's. Cntlm integrates TCP/IP port forwarding (HTTP tunneling), SOCKS5 proxy mode, standalone proxy allowing you to browse intranet as well as Internet and to access corporate web servers with NTLM protection. There are many advanced features like NTLMv2 support, password protection, password hashing, completely mutliplatform code (running on just about every architecture and OS out there) and so much more. Cntlm eats up so little resources it can be used on embedded platforms as well - it's written in plain C without any external dependencies. Cntlm has been tested against various ISA servers, WinGate, NetCache, Squid and Tinyproxy with and without NTLM auth. Memory management audits and profiling are inherent part of the development process. Each change in the code is audited using Valgrind, which acts as a virtual CPU and checks behaviour of each instruction of the application being profiled. Using this marvelous tool, you can uncloak any imbalance in malloc/free calls (double free's or leaks), operations with uninitialized memory, access outside of properly allocated memory and oh so much more.
配置Docker网络代理,你可以参考Docker官方文档中的配置方法。首先,你需要确定要使用的代理服务器的地址和端口。如果你使用的是本地代理,比如localhost:3128,你需要在docker命令中添加--network host参数。这样Docker容器将能够正常使用本地代理。如果你使用的是外部IP地址的代理服务器,并且代理本身需要开启Gateway模式,你需要在Docker守护进程的配置文件中添加代理设置。具体的配置方法可以参考Linux安装配置Cntlm代理的教程。完成配置后,你需要重启Docker守护进程使配置生效。你可以使用以下命令来重启Docker守护进程并查看配置是否正确: sudo systemctl daemon-reload sudo systemctl restart docker systemctl show --property=Environment docker /etc/systemd/system/docker.service.d 这样你就成功配置了Docker的网络代理。请根据你的实际情况进行相应的配置。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [快速设置 Docker 的三种网络代理配置](https://blog.csdn.net/peng2hui1314/article/details/124267333)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [Docker 配置网络代理](https://blog.csdn.net/qq_39698985/article/details/123748820)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值