privoxy (see http://www.privoxy.org/ ) with some enhancement, such as forward configuration selection