squid, firefox, "no proxy for" and local networks
Posted on 2009-04-20
My company network is named ".mycomp.local" (I wish it were mycomp.net, something "more real", but it's too late now :)
I'm setting up a squid proxy running on a Debian stable box for external web accesses.
I can't really use the "no proxy for" option in firefox - it's OK in Internet Explorer
(for everything related to internet accesses, firefox and IE are working fine with my proxy)
1) At first, with the proxy configuration active in firefox, I coudn't access local hosts with short names, like "myhost". Entire names were OK: myhost.mycomp.local
With IE and its "no proxy for local blah blah" checked, everything was OK.
So I tried to add some restrictions in the "no proxy for" part in firefox:
- added my entire sub-net IPs: 192.168.0.0/16
- added my entire sub-net: .mycomp.local (with a leading dot :)
Now the entire line is: .MYCOMP.local, localhost, 127.0.0.1, 192.168.0.0/16
Still, short names couldn't be used.
2) Then I added my domain in squid's "append_domain"
=> It's now working, BUT: I'm accessing squid to get to these "local" hosts !
This is stupid.
I'm sure of it when looking at squid's access.log file
=> How am I supposed to tell Firefox not to bother me with the proxy for my internal hosts?
Some things I've tried :
- my debian box and my windows computer have no problem resolving names, external or internal, short or FQDN
- I tried to add DNS suffixes (that kind of thing) in my windows network card configuration, it didn't change anything