Use cntlm to configure proxy for Internet access in Ubuntu 12.04

Source: Internet
Author: User
Background

The company network uses the domain account management mechanism. The specified Machine name and domain name must be used to access the Internet, and a password is required. when accessing the website, the window for entering the user name and password is often displayed. Many software cannot be upgraded automatically, in the Console mode, Apt-Get cannot be used. The above problem can be solved by using cntlm. The procedure is as follows:

Configure IT environment in the agent environment 1. First, install the cntlm Tool)

Software Official Website: http://cntlm.sourceforge.net

# Directly download the Deb installation package for Installation

Sudo dpkg-I cntlm_0.92.3_amd64.deb
2. modify the configuration file cntlm. conf.

$ Sudo VI/etc/cntlm. conf

Username: San. Zhang # change it to the employee's own Internet account
Domain: Company. Domain # enter the Internet domain name
Password: 123456 # change the password of the employee's account

Search for this line of proxy 10.0.0.19: 8080 # change it to the IP address and port of the company's proxy server.

Other Default values

Pay special attention to the cntlm listening port number "Listen3128"

3. Restart the cntlm service $ sudo killall cntlm # disable the cntlm Service
$ Sudo cntlm # enable the cntlm Service
4. Change the proxy server address and port $ sudo apt-Get update # Check whether the proxy can connect to the Internet
$ Sudo VI/etc/profile # Check the proxy server port and set the port 3128

1) Add the following statement:

Export http_proxy = "http: // 127.0.0.1: 3128"
Export https_proxy = "http: // 127.0.0.1: 3128"
Export ftp_proxy = "http: // 127.0.0.1: 3128"

$ Source/etc/profile application proxy server settings
5. Modify the Firefox agent. 1) Open the Firefox browser and click Edit -- preferences -- Advanced-Network -- settings in the browser menu.

2) Select manual proxy configuration -- HTTP proxy, enter the proxy server address 127.0.0.1 port: 3128, and check use this proxy server for all protocols.

6. modify the system network proxy (or modify the chromium browser proxy). 1. Click the icon "system settings-hardware-network" in the upper-right corner of the desktop and double-click it.
2) Click network proxy-method and enter the proxy server 127.0.0.1, Port: 3128 or proxy server: IP address, and port: xxxx in HTTP proxy.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.