Título: Problema con Squid básico Windows [Error SSL] Publicado por: devLand93 en 11 Septiembre 2018, 09:13 am Hola, estoy proxificando una máquina con squid en Windows 10.
Pues bien, simplemente con la configuración por defecto, ya tengo un dolor de cabeza... Citar # # Recommended minimum configuration: # # Example rule allowing access from your local networks. # Adapt to list your (internal) IP networks from where browsing # should be allowed acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl localnet src fc00::/7 # RFC 4193 local private network range acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl CONNECT method CONNECT # # Recommended minimum Access Permission configuration: # # Deny requests to certain unsafe ports http_access deny !Safe_ports # Deny CONNECT to other than secure SSL ports http_access deny CONNECT !SSL_ports # Only allow cachemgr access from localhost http_access allow localhost manager http_access deny manager # We strongly recommend the following be uncommented to protect innocent # web applications running on the proxy server who think the only # one who can access services on "localhost" is a local user #http_access deny to_localhost # # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS # # Example rule allowing access from your local networks. # Adapt localnet in the ACL section to list your (internal) IP networks # from where browsing should be allowed http_access allow localnet http_access allow localhost # And finally deny all other access to this proxy http_access deny all # Squid normally listens to port 3128 http_port 3128 # Uncomment and adjust the following to add a disk cache directory. #cache_dir ufs /var/cache/squid 100 16 256 # Leave coredumps in the first cache dir coredump_dir /var/cache/squid # # Add any of your own refresh_pattern entries above these. # refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 Desde Proxifier, en otro equipo, intento conectarme a este y obtengo este resultado en el test: Citar [08:08] Testing Started. Proxy Server Address: xxx.xxx.xxx.xxx:3128 Protocol: HTTPS Authentication: NO [08:08] Starting: Test 1: Connection to the Proxy Server [08:08] IP Address: xxx.xxx.xxx.xxx [08:08] Connection established [08:08] Test passed. [08:08] Starting: Test 2: Connection through the Proxy Server Error: the proxy server (Squid) is not configured to allow SSL tunnel to port 80. To fix the problem please find and comment the following line in the Squid configuration file (squid.conf): http_access deny CONNECT !SSL_ports The proxy server reply header is: HTTP/1.1 403 Forbidden Server: squid/3.5.28 Mime-Version: 1.0 Date: Tue, 11 Sep 2018 07:08:07 GMT Content-Type: text/html;charset=utf-8 Content-Length: 3342 X-Squid-Error: ERR_ACCESS_DENIED 0 Vary: Accept-Language Content-Language: en X-Cache: MISS from DESKTOP-G0C5A5M Via: 1.1 DESKTOP-G0C5A5M (squid/3.5.28) Connection: keep-alive [08:08] Test failed. [08:08] Testing Finished. (He ocultado el IP proxificado) Y lógico, el navegador no me conecta a ningún lado. Ya abrí el puerto 3128 en el router y squid.exe está excluído del Firewall, igualmente he deshabilitado el Firewall y nada. Pues ya no sé qué hacer... Si me pueden dar una orientación... lo sabré agradecer. Pues ya he intentado proxificar con otras herramientas y con esas sí tengo éxito, CCProxy, 3Proxy, incluso AnalogX, pero con Squid nada. Pasa que quiero probar con Squid a ver si soluciono un problema que me sucede con las demás, y es que cuando conecto más de 2 usuarios a la vez, se guinda el proxy y me toca esperar par de minutos... ¡Gracias por leer! Título: Re: Problema con Squid básico Windows [Error SSL] Publicado por: warcry. en 11 Septiembre 2018, 13:24 pm [08:08] Starting: Test 2: Connection through the Proxy Server Error: the proxy server (Squid) is not configured to allow SSL tunnel to port 80. Chico no se que parte del log no entiendes, aquí dice que te estas conectando por el puerto 80 por https y que el proxy (squid) solo tiene configurado el 443 para https y por tanto te dice que se va a conectar por ese puerto (80) y con ese protocolo (https) la madre del topo. Título: Re: Problema con Squid básico Windows [Error SSL] Publicado por: devLand93 en 11 Septiembre 2018, 20:13 pm Chico no se que parte del log no entiendes, aquí dice que te estas conectando por el puerto 80 por https y que el proxy (squid) solo tiene configurado el 443 para https y por tanto te dice que se va a conectar por ese puerto (80) y con ese protocolo (https) la madre del topo. Ayer eran las 3am aquí, estaba cansado y no me di cuenta de eso. Hoy me he levantado, corregí, y aún así, el error persiste. Ya he cambiado el puerto de pruebas del proxifier a 443, y el error persiste, mismo mensaje pero ahora en vez de decir 80, dice 443. Te recuerdo que incluso usando el proxy en un navegador tampoco abre ningun sitio web... Título: Re: Problema con Squid básico Windows [Error SSL] Publicado por: OmarHack en 12 Septiembre 2018, 10:58 am To fix the problem please find and comment the following line in the Squid
configuration file (squid.conf): http_access deny CONNECT !SSL_ports El log te esta diciendo que anules la regla http_access deny CONNECT !SSL_ports comentándola. Ponle un # al inicio. Título: Re: Problema con Squid básico Windows [Error SSL] Publicado por: devLand93 en 21 Septiembre 2018, 19:01 pm To fix the problem please find and comment the following line in the Squid configuration file (squid.conf): http_access deny CONNECT !SSL_ports El log te esta diciendo que anules la regla http_access deny CONNECT !SSL_ports comentándola. Ponle un # al inicio. Sí aunque parezca que no lo he hecho, sí lo he hecho y tampoco funciona. Olvidé mencionar eso. Título: Re: Problema con Squid básico Windows [Error SSL] Publicado por: warcry. en 22 Septiembre 2018, 13:27 pm por lo que veo en tu archivo de configuración son cosas raras.
ejemplo Código: # Deny requests to certain unsafe ports y antes has definido con safe ports Código: acl Safe_ports port 80 # http luego entiendo que tu estas denegando (deny) todos esos puertos, supongo que la configuracion seria con allow, creo que deny no coge la negación "!" el codigo correcto seria Código: http_access allow lista1 !lista2 donde la lista1 seria por ejemplo tus safe ports y la lista2 seria denegada aqui tambien prohibes el uso de ssl ports Código: # Deny CONNECT to other than secure SSL ports busca un conf de squid valido, y a partir de ahi trabaja para modificarlo a tu gusto. Título: Re: Problema con Squid básico Windows [Error SSL] Publicado por: devLand93 en 10 Marzo 2019, 20:44 pm Eh, olvidé mencionar que corregí el error, era un problema con los ACL, y no precisamente con los puertos, leí con calma la documentación y solventé el problema.
Saludos y gracias. |