Tuesday, 15 July 2008

Ubuntu behind proxy server

Computer service department just cannot do anything right. Restricting people using Internet makes them feel that they are doing the job. Now I have to go through the proxy server to connect Ubuntu to the internet.

This link is useful. (http://ubuntuforums.org/showpost.php?p=3340662&postcount=25)

Install NTLMAPS first from http://packages.ubuntu.com/feisty/web/ntlmaps

Make some change of /etc/ntlmaps/server.cfg

1. Provide proxy IP for PARENT_PROXY
2. Give the right port number to PARENT_PROXY_PORT
3. Leave LISTEN_PORT: 5865
4. Under the [CLIENT_HEADER] section, comment out the first Accept and User-Agent part (Windows 9x, and then uncomment the next part (Windows 2000 emulation).
5. Fill in NT_HOSTNAME and NT_DOMAIN
6. Put the username in USER and password in PASSWORD
7. Restart ntlmaps: /etc/init.d/ntlmaps restart
8. Make a file: /etc/apt/apt.conf
Acquire::http::Proxy "http://127.0.0.1:5865";
9. Insert 8 into: System -> Preferences -> Network Proxy
10. In Synaptics: System -> Administration -> Synaptics -> Settings -> Preferences -> Network:
Manual proxy configuration: 127.0.0.1 port 5865 (no authentication)

Job done. Damn the ICT!

No comments: