Using squid to bridge proxies
Hi,
i've never used squid before, but I work in web development and am behind a company proxy to access the Internet. I'm currently using OSx but want to use Linux. One of the tools we use if phantomJS to test our sites. On OSx, phantomJS uses the system proxy and also adheres to the exception list for local IP addresses; therefore when I run phantomJs against something like 192.168.1.10, it does not attempt to use the system proxy, but for routable IP addresses, phantomJS does use the system proxy.
On Linux however, there is a bug in that phantomJS will use the system proxy, but will ignore and exceptions, therefore it will try and use the proxy to access any IP address, even on my local network, and timeout for these. I cannot see a way around this, and the bug has been in a bug fix queue for 2 years now.
I was wondering if if would be possible to locally install squid proxy on my machine, and configure squid to forward web requests out to the company proxy for external IP addresses, but pass the request through to any exceptions which I specify (local IPs) .. Then I could set the system proxy for my desktop to its local squid proxy, so phantomJs would pass all traffic through to squid, and squid could take care of where to send requests.
Does anybody know if this is a.) possible, b.) easy, & c.) the best solution?
Thanks everyone.
|