I have a setup where I have 2 proxy servers. One is a socks proxy which I wish to use for ALL connections by default. The second proxy is an http proxy which I wish to use for http connections to specific hosts (all on the same domain(s))
Lets assume:
- Socks proxy is hostA:9000
- Http proxy is hostB:8080
- Domain that should go through http proxy is *.foobar.com
Can iptables be configured to do this?