Forums:
Buenas,
Tengo implementada una aplicación cliente-servidor a modo de puente entre el navegador y squid, de tal forma que la cosa queda así:
Internet Explorer (Port: 8080) <--->Cliente-Servidor<-----> (Port: 3127) squid <-----> INTERNET
El cliente servidor usa sockets TCP para redireccionar el puerto 8080 al que se conecta el navegador con el 3128 del squid. De momento no filtra ni hace nada más, simplemente lo que llega por un puerto lo manda por otro.
El problema es que no puedo navegar en las webs HTTPs, como por ejemplo ww.google.es estando logeado. En webs HTTP normales no tengo ningún problema.
Instalando solo el squid funciona todo perfectamente, pero tengo la necesidad de añadir el cliente servidor entre medias para un aplicación futura.
¿sabéis que puede estar fallando?
Aquí os pongo la comunicación de los sockets.
Ésto es lo que envía el Internet Explorer:
Socket: 1
GET http://www.google.es/ HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: es
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Accept-Encoding: gzip, deflate
Proxy-Connection: Keep-Alive
Host: www.google.es
Cookie: PREF=ID=f6bf53e55e108c88:U=3ecf1b930df95bc7:FF=0:LD=es:TM=1334313841:LM=1355609054:S=JMtDhDq9j87CjRs2; NID=67=Co89cEHoQf0loZKe3auF6Efd_vJuX9QhNga2OVwcrdmNy2ASAl6aeschW_5JlLlXFRUihC0Awes3QVPfKh_Bm7KHzFbOMSATo5XqVvyNPms9RWWX4A2izQ7IU-6sB0lusMYXZGTR10UZwXZfR4KKPMlenknn13N_F2t7KCwzaXQ; SID=DQAAANMAAACTdM3Peo31U2d_DlXTH3UCY9f6o-MXJ1LSl9aBbH83yUCbykIsUQGROud2nArpdexylb1JfrPXZxGjw5UWw1KABg6irRSmLqN9BHgrybP_x0HKRynvfcwanzn-8Ml5BTQystOeDibT8jZNKyE1GjNXAzYpPkEYpzuPrMtN5xXjCW0AGuaAaCBOsiUIf6cvH4uptdEYntKZHVU6UANMrYISL_9Y32wvbdRIbNu3FrAota2l8ABT2oyExX3VF8kyFYb5GC-q3UDONvXN75GbhfClDR_N25kFC3D0O2tlDA7CGw; HSID=A1ZwZ8CWiqaf0nejn; APISID=H2olXXq-UeJ8JrjK/A-qufaUTt8bxNIRpE
Socket: 2
CONNECT www.google.es:443 HTTP/1.0
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Host: www.google.es:443
Content-Length: 0
Proxy-Connection: Keep-Alive
Pragma: no-cache
Socket: 2
Socket: 2
CONNECT www.google.es:443 HTTP/1.0
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Host: www.google.es:443
Content-Length: 0
Proxy-Connection: Keep-Alive
Pragma: no-cache
Socket: 2
Y ésto es lo envía squid al internet explorer:
Socket: 1
HTTP/1.0 302 Moved Temporarily
Location: https://www.google.es/
Cache-Control: private
Content-Type: text/html; charset=UTF-8
Date: Fri, 21 Dec 2012 17:30:10 GMT
Server: gws
Content-Length: 219
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
X-Cache: MISS from dell
X-Cache-Lookup: MISS from dell:3128
Via: 1.0 dell:3128 (squid/2.7.STABLE8)
Connection: keep-alive
Proxy-Connection: keep-alive
Socket: 1
302 Moved
302 Moved
The document has moved
here.
Socket: 2
HTTP/1.0 200 Connection established
Socket: 2
HTTP/1.0 400 Bad Request
Server: squid/2.7.STABLE8
Date: Fri, 21 Dec 2012 17:30:12 GMT
Content-Type: text/html
Content-Length: 1197
X-Squid-Error: ERR_INVALID_REQ 0
X-Cache: MISS from dell
X-Cache-Lookup: NONE from dell:3128
Via: 1.0 dell:3128 (squid/2.7.STABLE8)
Connection: close
ERROR: The requested URL could not be retrieved
ERROR
The requested URL could not be retrieved
While trying to process the request:
The following error was encountered:
Invalid Request
Some aspect of the HTTP Request is invalid. Possible problems:
- Missing or unknown request method
- Missing URL
- Missing HTTP Identifier (HTTP/1.0)
- Request is too large
- Content-Length missing for POST or PUT requests
- Illegal character in hostname; underscores are not allowed
Your cache administrator is webmaster.
Generated Fri, 21 Dec 2012 17:30:12 GMT by dell (squid/2.7.STABLE8)
Socket: 2
HTTP/1.0 200 Connection established
Socket: 2
HTTP/1.0 400 Bad Request
Server: squid/2.7.STABLE8
Date: Fri, 21 Dec 2012 17:30:12 GMT
Content-Type: text/html
Content-Length: 1196
X-Squid-Error: ERR_INVALID_REQ 0
X-Cache: MISS from dell
X-Cache-Lookup: NONE from dell:3128
Via: 1.0 dell:3128 (squid/2.7.STABLE8)
Connection: close
gracias por vuestra ayuda