Proxy with ubuntu

Asked by Chris L on 2011-01-04

My boss would like to deploy proxy servers to all 10 of our locations, and I'm in charge of configuring and deploying them. Most locations just have a simple Belkin switch that I can plug the ubuntu box into. The other 3 computers all run Windows XP. I want to run all traffic through the ubuntu box. My boss only want employees to access our certain sites. I am having trouble doing so. Currently I have a Ubuntu 10.10 box. I installed squid and Web content control. The setting are all at the defaults. How do I go about running all traffic through this ubuntu box so that the other 3 computers only have access to these sites? Thanks for your time.

Question information

English Edit question
Ubuntu squid Edit question
No assignee Edit question
Solved by:
Chris L
Last query:
Last reply:

Here's what worked for me.
Add the following line to /etc/environment :
I'm not sure when exactly it's loaded, but a restart made it load on my box. You can then see it appear in the output of "export".
This works much like exporting the variable in the shell, only for the entire session.


This will be added to aall users and only be changable by users in the admin group.

mycae (mycae) said : #2

You need to adjust your network topology to make your linux box bridge the two connections; thus ensuring all traffic runs through the box at the physical level. Then you can then look at installing a transparent proxy, so users don't complain when opening a web browser doesn't work.

Chris L (racerxpa7777) said : #3

Could you please further assist me by providing a link of instructions that I could follow? Do I need two network cards in order to do so?

mycae (mycae) said : #4

If you need to bridge two networks, yes. (skip steps 1-6, and adjust for the fact that your squid file is /etc/squid.conf)

Chris L (racerxpa7777) said : #5

We decided to go with a different solution to accomplish similar tasks. Thanks for your help.