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

Language:
English Edit question
Status:
Solved
For:
Ubuntu squid Edit question
Assignee:
No assignee Edit question
Solved by:
Chris L
Solved:
2011-02-02
Last query:
2011-02-02
Last reply:
2011-01-06

Here's what worked for me.
Add the following line to /etc/environment :
Code:
http_proxy="http://user:pw@proxyaddress:port"
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.

Source:
http://ubuntuforums.org/showthread.php?t=215627

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.

https://teklimbu.wordpress.com/2007/10/11/running-a-transparent-linux-squid-bridge/ (skip steps 1-6, and adjust for the fact that your squid file is /etc/squid.conf)
https://help.ubuntu.com/community/NetworkConnectionBridge
http://www.linuxjournal.com/article/8172

Chris L (racerxpa7777) said : #5

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