Link to home
Start Free TrialLog in
Avatar of Chandler B
Chandler B

asked on

How to route all traffic on a network through Squid Proxy Server on Ubuntu 14.04 LTS

I had this question after viewing How to configure network to use squid proxy server for web filtering?.


I have set up an ubuntu server using 14.04 LTS and Squid Proxy for caching. We want to route all client traffic through the server, so it can cache all this data, and then access the internet. How can we go about that and It would be greatly appreciated if someone could include a Step-By-Step guide on how to achieve this.  We viewed the question above but could not determine the correct answer for us. The idea we had at first was to:

PC ---> Switch(L3 w/ Routing(Cisco Catalyst 3550)) ---> Cache(Ubuntu 14.04 w/ Squid) ---> Firewall ---> WEB


We built the proxy/cache server and successfully had the one client running its data through the access logs by inserting the SSL and Proxy data into the browser settings. We could see the access logs on Ubuntu caching the data when the pages load. Now we want to supersize that, if possible, and run all traffic through the server WITHOUT having to input the SSL and PROXY data into numerous clients browsers on a larger network, as you can tell that would be tedious and repetitive to go into each individuals device to add SSL and proxy data by hand. Our test network for this has one PC Client. We intend to use this and implement it into a larger network that is BYOD(bring your own device). Please Help and we appreciate the help ahead of time!
Avatar of noci
noci

All traffic is asking for too much..., Squid handles HTTP formatted traffic.
You can create an environment variable named http_proxy See here for more info in how to use it:

https://www.cyberciti.biz/faq/linux-unix-set-proxy-environment-variable/
Avatar of Chandler B

ASKER

Am I creating that variable on the Ubuntu Server itself? Not 100% sure where to add the global environment variable in the system-wide .profile file for the Bourne Shell.  I have attached the output. Also, my client connecting is windows OS and the server laptop is running Ubuntu 14.04 w/ Squid Proxy(as you already know).
ASKER CERTIFIED SOLUTION
Avatar of noci
noci

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,
Create a PAC file for proxy configuration and push it using DHCP server.
Configure your browser "automatically detect the proxy from network"

No need of manual configuration
check here for how to create PAC file for the proxy.

https://campus.barracuda.com/product/websecurityservice/doc/6553612/how-to-configure-proxy-settings-using-pac-files-and-wpad/
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: noci (https:#a42631184)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

FireRunt
Experts-Exchange Cleanup Volunteer