Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and configure Cntlm Agent under Linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to install and configure Cntlm agent under Linux". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to install and configure Cntlm Agent under Linux.

Installation

Take the installation of Debian system as an example:

Sudo apt install cntlm

Non-Debian installation is in a similar form. Cntlm is a very old software that is released in all major Linux distributions. It is even released under Windows and can be installed through choco.

Choco install cntlm

The following introduction takes Linux as an example. The configuration under Windows is more or less the same as that of Linux, but the file location is different.

Configuration

After Cntlm is installed, there is a default configuration in / etc/cntlm.conf. If you need to view the configuration online, you can refer to cntlm.conf.

Modify cntlm.conf

The following configuration is almost the simplest configuration of / etc/cntlm.conf.

Username USERNAME Domain COMPANY_DOMAIN Password * Proxy proxy.company.com:8080 Proxy proxy2.company.com:8080 NoProxy localhost, 127.0.0.percent, 10.percent, 192.168.percent, .company.com Listen 3128

Note: USERNAME, proxy.company.com:8080, etc., should be changed to the values applicable to your own scenario. In addition, if you use the means in the next section [get Auth], the Password configuration can be omitted.

This configuration can only be accessed locally. If you want to allow access to machines other than localhost, you need to add Gateway yes.

Gateway yes

If you need to restrict external access, you can set a black (Deny) and white (Allow) list.

Allow 127.0.0.1 Deny 0/0

Get Auth

After the above configuration modifications are completed, you need to reload or restart cntlm. For more information, please see reloading or restarting.

$sudo cntlm-vc / etc/cntlm.conf-M http://baidu.com section: global, Username = 'USERNAME' section: global, Domain =' COMPANY_DOMAIN' section: global, Proxy = 'proxy.company.com:8080' section: global, Proxy =' proxy2.company.com:8080' section: global, NoProxy = 'localhost, 127.0.20', 10.33, 192.168.9, .company.com 'section: global, Listen =' 3128 '... HEAD: HTTP/1.1 200 OK OK (HTTP code: 200)-- [Profile 1]-Auth NTLM PassNT 7FA051B4B85F0E7EEBB24D3CD73E52B0 PassLM 23A1E1A7276E84EA4846D4C9FF957C35-cntlm: Terminating with 0 active threads

Add Auth to the configuration

Add the following to the / etc/cntlm.conf you just modified:

Auth NTLM PassNT 7FA051B4B85F0E7EEBB24D3CD73E52B9 PassLM 23A1E1A7276E84EA4846D4C9FF957C31

Reload or restart

In the case of a package manager installation, Cntlm is guarded by systemd by default and boots automatically.

After you modify the configuration, the reload will take effect:

Sudo systemctl reload cntlm

If it still does not take effect, you can try to restart:

Sudo systemctl restart cntlm so far, I believe you have a deeper understanding of "how to install and configure Cntlm agent under Linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report