• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 957
  • Last Modified:

How to distribute "Proxy Settings" automatically to clients. (Proxy Server is on Ubuntu Linux-based )

We are running following servers:

(1) DHCP Server on a Windows 2003 Server. (

(2) Squid Proxy and Bind DNS and Fireall on Ubuntu Linux Server. (

Now, I want to configure my Linux Server so that client browers can detect Proxy Server automatically. Because we have arround 400 Client PCs and configuring them manually is a lenghty and cumborsome job.

Previously, we were using ISA 2006 as proxy and I had made WPAD entry in Windows-based DHCP to distribute proxy address: http://isaserver:8080/wpad.dat, and it was working well.

But now, I have removed ISA and using Linux-based Proxy and I don't know"

1. How and where to make wpad.dat file ?

2. Will I need to configure Apache so that clients get wpad.dat file using "http://myapacheserver:3128/wpad.dat ? (Proxy Server is listening on by default 3128 port number)

Please note that everything is running well. I just want to know how can I distribute the "proxy settings" automatically.

2 Solutions
Have a look at http://tldp.org/HOWTO/TransparentProxy.html
If you do it this way you wont have to send any proxy settings at all.
Without any DHCP options,  and the " automatically detect proxy settings" checked in your browser, the browser will look for a server named wpad in the doamin suffix search order and attempt to download a file from the it on port 80 named, yes, wpad.dat.

I would run another instance of apache on port 80 on either the same server or another server that will serve the wpad.dat file. Put a dns entry for wpad.yourinternaldomain.com. You can look up how to craft the wpad file by looking at netscape's java pac file syntax, as nobody is autogenerating the file like ISA used to.

Or do transparent proxy, you have options.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now