Wpad-php

Genereates wpad files.

The idea came last year. We have two proxies running as siblings. I wanted them to share the load, so two solutions came :

  1. Set up a LVS or something similar.
  2. Generating a wpad file with a different proxy each time.

I choose the second solution, it was easier to setup and simple. So I made a little PHP script and it went for a year. Last week I had to dig again in the script and found :

  1. Only hardcoded value
  2. Could be useful for someone else

I took a little time to clean it up and make it easier to re-use it and here it is. All features come from the original script.

Features

  • Share the load between proxies in a round-robin fashion
  • Kind of failover (always all proxies are listed)
  • Check for availability each proxy, a proxy that don't respond is discarded
  • Generate rules that should go direct (isInNet, shExpMatch, by protocol), based on configuration

Whishlist

  • I wanted to setup a url like proxies.example.com which would return all proxies as CNAME, but I had problem … I'll be working on.

License

http://www.gnu.org/copyleft/gpl.html

Wpad-php is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.

Wpad-php is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Wpad-php.  If not, see <http://www.gnu.org/licenses/>.tt

Files

SVN

Download

 
projects/wpad-php.txt · Last modified: 2010/02/22 14:53 by tchetch
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Debian Driven by DokuWiki