How to Get Working Internet on Linux Mint/Ubuntu from Behind A Squid Proxy

Almost all of us have to encounter proxies in our work environments. Sometimes those are useful (providing security and firewall), and sometimes those are just a pain. For example, at my work place, I have to go through a Squid proxy. In this tutorial, I will show how to set a Linux Mint/Ubuntu (and possibly other distros) computer to get “internet connection” from behind a proxy. By “internet connection”, what I mean is to get the Synaptic package manager (or APT) and other applications (like the browsers) send http requests through the proxy. Let’s get to it.

There are actually two places, where you have to set the proxy host name, port and username/password (if any). First, go to “System Preferences” and select “Networking”. Select “Network Proxy” on the list left side.

Screenshot from 2014-01-19 18:44:55

Slide the proxy ON button on the top-right. Select “Manual” from the drop-down menu below and put your proxy host name and port in the respective fields. Finally, hit close at the bottom. Now, you can browse the internet through your browser. It will ask for username and password (if your proxy server requires those) every time.

But surprisingly, Synaptic package manager doesn’t use this proxy. For getting that to work from behind a proxy, that is, to be able to install applications from the internet or update your system, you need to set proxy for Synaptic as well. To do that, go to “Administration” and select “Synaptic Package Manager”. Click on “Settings” menu and select “Preferences”. On the new window, select “Network” tab.

Screenshot from 2014-01-19 18:52:51

Under “Proxy server”, select “Manual proxy configuration” radio button, put your proxy host name and port numbers in appropriate fields. If your proxy required authentication, click the “Authentication” button and put your username and password. Click OK/Apply. To test if Synaptic is using your proxy settings properly, hit the “Refresh” button. If everything is OK, your repository list will be updated.

That’s it. You can now install applications from different repositories using Synaptic, update your system and browse the internet from behind a proxy. I hope this helps. Thank you for reading 🙂


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s