OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: seed on February 08, 2021, 12:20:47 PM

Title: SQUID append_domain
Post by: seed on February 08, 2021, 12:20:47 PM
When using squid i often have the problem that I cant connect to my internal server Webinterfaces using DNS.

I configured "::1, 127.0.0.1" in Squid but squid doenst want to resolve / send the hostnames to the local unbound.

For example when i want to access "webserver" in my Network. Squid has no idea what to do. when sending the request manual to unbound the host is resolved. Once i append my local search domain (For example: testdomain.local) squid is able to connect to the server.

In the local squid configuration "append_domain" is missing. It might be helpful when squid knows the local search domain.

More about that in the squid wiki.:
http://www.squid-cache.org/Doc/config/append_domain/
Title: Re: SQUID append_domain
Post by: Fright on February 08, 2021, 03:44:41 PM
i think you can add some .conf file in /usr/local/etc/squid/pre-auth with this directive and restart squid
but the question remains why use a proxy at all to access local sites
Title: Re: SQUID append_domain
Post by: seed on February 18, 2021, 12:14:56 PM
i hope the developers will add the option "append_domain" to the webinterface. i am well aware that i can customize the template myself.

To the background: in my webbrowser I can forbid the proxy use for certain domains (e.g. for my internal domain: testdomain.local). if I want e.g. to my "webserver" then it is not made webserver.testdomain.local but remains "webserver".  The proxy then receives the request to "webserver" and throws an error message because "webserver" cannot be resolved by the proxy. therefore the option "append_domain" should be added to the configuration.