Proxy connections to certain addresses on Linux

view story

http://serverfault.com – I need to find a way to proxy all connections to example.com through a proxy server, it needs to work on the command line, as well as automatically within Python (much like exporting http_proxy would), but I want all other traffic to go through the network as it normally does. ()