Use cntlm to configure proxy for Internet access in Ubuntu 12.04
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 steps for Ubuntu 12.04 are as follows:
IT environment configuration in 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 to 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 browser proxy
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.