Differences between revisions 1 and 2
Revision 1 as of 2012-06-21 14:59:56
Size: 445
Editor: PieterSmit
Comment:
Revision 2 as of 2012-06-21 16:02:52
Size: 892
Editor: fw1-IS-Ext
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
 * wpad is a javascript file that the browser loads, the script tells the browser witch proxy to use for every url request.  * wpad is a javascript "pac" file that the browser loads, the script tells the browser witch proxy to use for every url request.
Line 10: Line 10:
 * have dns setup top point wpad.COMP.com to the server.  * discovery
   * a dhcp server, configured with option 252 = "http://your.server.here/wpad.dat"
  
* have dns setup top point wpad.COMP.com to the server.
Line 14: Line 16:
 * In your /etc/dhcpd.conf global config, you need something like this:
   {{{
   # For browser auto proxy configuration
   option wpad code 252 = text;
   option wpad "http://wpad.my.lan/wpad.dat\n";
   }}}

 * Example wpad.dat file
   {{{
   function FindProxyForURL (url, host) {
     return "PROXY proxy:8080";
   }
   }}}

WPAD proxy config

  • wpad is a javascript "pac" file that the browser loads, the script tells the browser witch proxy to use for every url request.

Apache2

  • put wpad.dat file under /var/www
  • discovery
  • setup the file type, in apache to "application/x-ns-proxy-autoconfig"
  • In your /etc/dhcpd.conf global config, you need something like this:
    •    # For browser auto proxy configuration
         option wpad code 252 = text;
         option wpad "http://wpad.my.lan/wpad.dat\n";
  • Example wpad.dat file
    •    function FindProxyForURL (url, host) {
           return "PROXY proxy:8080";
         }

...

wpad.dat (last edited 2013-11-16 11:53:54 by PieterSmit)