Accessing internet from Ubuntu behind the ISA Server

When you are behind a ISA server in let’s say business network you can use Firefox to just surf the net. Because Firefox detects can detect the proxy settings and it will trow you the login screen. But when you need to be able to update your Ubuntu from that network or just proxy your whole Ubuntu PC/laptop you can use NTLMAPS to accomplish that.

What NTLMAPS actually does is connects to the ISA server and sets up a local proxy. By setting your Ubuntu to use the local proxy you are acutely surfing trough the proxy.

Step 1) Download NTLMAPS

wget http://jaist.dl.sourceforge.net/sourceforge/ntlmaps/ntlmaps-0.9.9.0.1.tar.gz

Step 2)
Unpack the tar file

tar xvfz  ntlmaps-0.9.9.0.1.tar.gz

Step 3)
Install python

sudo apt-get install python

Step 4)
Edit server.cfg

gedit server.cfg

Interesting things to edit in the server.cfg are:

LISTEN_PORT (local port on witch your local proxy server will listen)  
PARENT_PROXY (IP address of the ISA server)  
PARENT_PROXY_PORT (port on witch the ISA server is listening mostly port 80)  
NT_DOMAIN (fill in the domain)  
USER (your domain user)  
PASSWORD (your domain user password)

Step 5)
Start NTLMAPS

./main.py

Step 6)
Setup your Ubuntu to use your local proxy. You can set the proxy setting for Ubuntu:

Now you are done, start using your Ubuntu behind the ISA server.