[squid-users] Website pointed to 127.0.0.1

Matus UHLAR - fantomas uhlar at fantomas.sk
Fri Sep 15 13:17:31 UTC 2017


On 15.09.17 09:58, Matheus Fernandes wrote:
>I have a fqdn that points to 127.0.0.1, when I try to access it through
>squid, I get an error.

It's forbidden with default rules. 

> I need to make it process on the same machine that
>made the request, and not on squid server. I tried using always_direct
>directive, but squid always tries to process at the server side.

1. if you want your browser to connect directly, you must configure the
browser to connect directly, e.g. put localhost into "no proxy for" list.

you can NOT do that with squid.  When browser connects to squid, it's
already too late to do anything, since the connection was already created.

2. it is not possible for any other machine to connect to your local
address. That it how local address is defined.
Therefore, squid can not connect to your local interface.

-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Depression is merely anger without enthusiasm. 


More information about the squid-users mailing list