====== Wpad-php ====== Genereates [[wp>wpad|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 : - Set up a [[wp>Linux_Virtual_Server|LVS]] or something similar. - Generating a [[wp>wpad|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 : - Only hardcoded value - 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 .tt ===== Files ===== ==== SVN ==== * SVN trnuk : [[http://www.tchetch.net/svn/wpad-php/trunk]] * SVN latest release : [[http://www.tchetch.net/svn/wpad-php/tags/latest-release]] * [[http://www.tchetch.net/websvn/listing.php?repname=wpad-php&path=%2F&sc=0|Websvn]] ==== Download ==== Generated with [[http://www.narfation.org/2009/01/08/creating-recreatable-tar-gz-from-svn]]. * Latest release, .tar.gz : [[http://www.tchetch.net/wpad/releases/wpad-php_0.9.1.tar.gz]] * Latest release, GPG signature : [[http://www.tchetch.net/wpad/releases/wpad-php_0.9.1.tar.gz.asc]] * Latest release, md5 sum : [[http://www.tchetch.net/wpad/releases/wpad-php_0.9.1.tar.gz.md5]] * Latest release, sha1 sum : [[http://www.tchetch.net/wpad/releases/wpad-php_0.9.1.tar.gz.sha1]] * Latest release, sha256 sum : [[http://www.tchetch.net/wpad/releases/wpad-php_0.9.1.tar.gz.sha256]]