Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Probeme proxy (WPAD)

3 réponses
Avatar
xavier
Bonjour,

J'ai déclaré un CNAME wpad dans mon DNS et créé un fichier wpad.dat
minimal :

> [xavier@valinor ~] cat /usr/local/www/data/wpad.dat
> function FindProxyForURL(url, host)
> { return "PROXY proxy.groumpf.org:3128"; }

Je configure mon réseau en Auto Proxy Discovery.
Lorsque je lance le navigateur, je vois bien passer la requête dans les
logs http :

> 2a01:e35:2e41:f5d0:21e:c2ff:fec6:68e7 - - [18/Jul/2010:15:59:45 +0200]
> "GET /wpad.dat HTTP/1.1" 200 79 "-" "PubSubAgent/65.19
> CFNetwork/454.9.7 Darwin/10.4.0 (i386) (MacBookPro4%2C1)"

Code retour 200, 79 octets, donc ça marche.

Et pourtant, il n'y a rien dans les logs de Squid. Alors que si je
déclare manuellement le *même* proxy, je vois les logs défiler.

Même comportement avec Safar ou Firefox.

Quelqu'un a une idée de ce qui se passe ?

Merci,

--
XAv
In your pomp and all your glory you're a poorer man than me,
as you lick the boots of death born out of fear.

3 réponses

Avatar
Stéphane Le Men
"Xavier" a écrit :

Quelqu'un a une idée de ce qui se passe ?



tu as mis le mime type qui va bien sur le serveur web ?

http://en.wikipedia.org/wiki/Proxy_auto-config

"Even though most clients will process the script regardless
of the MIME type returned in the HTTP request, for the
sake of completeness and to maximize compatibility,
you should instruct your web server to declare the MIME
type of this file to be either application/x-ns-proxy-autoconfig"
Avatar
xavier
Stéphane Le Men wrote:

tu as mis le mime type qui va bien sur le serveur web ?



Mmmmh.. Oui, je l'ai fait. Dans un VirtualHost, alors que j'ai été
obligé de mettre le fichier dans /usr/local/www/data/ Ca m'a intrigué,
puis je n'y ai plus pensé...

Ma déclaration de VHost serait toute moisie que ça m'étonnerait pas.

Bon, j'ai mis le mime-type dans la conf globale, ça change rien ...

Merci quand même

--
XAv
In your pomp and all your glory you're a poorer man than me,
as you lick the boots of death born out of fear.
Avatar
xavier
Xavier wrote:

Bon, j'ai mis le mime-type dans la conf globale, ça change rien ...



Pourtant le tcpdump est on ne peut plus explicite :

[ ~]$ sudo tcpdump -i en1 -A port 80
[...]
11:22:42.243232 IP doriath.groumpf.org.55501 > valinor.groumpf.org.http:
Flags [P.], seq 1:144, ack 1, win 65535, options [nop,nop,TS val
493274543 ecr 2942119334], length 143
@.....d
.......P............K
.f...]-.GET /wpad.dat HTTP/1.1
Host: wpad
User-Agent: Safari/6533.16 CFNetwork/454.9.7 Darwin/10.4.0 (i386)
(MacPro1%2C1)
Connection: keep-alive


11:22:42.246278 IP valinor.groumpf.org.http > doriath.groumpf.org.55501:
Flags [P.], seq 1:797, ack 144, win 8326, options [nop,nop,TS val
2942119340 ecr 493274543], length 796
E..P"@.....d...d
.P............ ..).....
.]-..f..HTTP/1.1 200 OK
Date: Mon, 19 Jul 2010 09:22:42 GMT
Server: Apache/2.2.15 (FreeBSD) mod_ssl/2.2.15 OpenSSL/0.9.8e DAV/2
PHP/5.3.2 with Suhosin-Patch
Last-Modified: Sun, 18 Jul 2010 21:16:15 GMT
ETag: "126190-19e-48baff652c5c0"
Accept-Ranges: bytes
Content-Length: 79
Keep-Alive: timeout=5, max0
Connection: Keep-Alive
Content-Type: application/x-ns-proxy-autoconfig

function FindProxyForURL(url, host) { return "PROXY
proxy.groumpf.org:3128"; }


Et tout le reste part sur le port 80 vers wikipedia.org. Aucun trafic
sur le 3128

--
XAv
In your pomp and all your glory you're a poorer man than me,
as you lick the boots of death born out of fear.