Installation Proxy Squid + SquidGuard

Salut

Bah je t’avais prévenu qu’il était pas sexy mon fichier ^^

Bon j’ai essayé d’utiliser ton script, en faisant comme ça

function FindProxyForURL(url, host) { // our local URLs from the domains below example.com don't need a proxy: if (shExpMatch(url,"localhost*")) {return "DIRECT";} if (shExpMatch(url,"127.0.0.1/*")) {return "DIRECT";} if (shExpMatch(url, "*192.168.10.*:*/*")) {return "DIRECT";} }

Malheureusement, aucune amélioration…

Aurais tu encore des idées ?

Bon, je viens de voir un topic dans lequel le mec dit que cela a fonctionné :
http://sysadmin10.blogspot.fr/2011_05_01_archive.html

function FindProxyForURL(url, host) { // variable strings to return var proxy_yes = "PROXY 192.168.10.1:3128"; //Mon proxy var proxy_no = "DIRECT"; if (isPlainHostName(host)) { return proxy_no; } //Ne pas utiliser le proxy pour les adresses locales comme http://intranet if (shExpMatch(url, "localhost")) { return proxy_no; } if (shExpMatch(url, "http://*.mondomain.com/*")) { return proxy_no; } //Ne pas utiliser le proxy pour les adresses en mondomain.com if (shExpMatch(url, "http://192.168.10.*")) { return proxy_no; } //Ne pas utiliser le proxy pour le réseau 192.168.10.0 if (shExpMatch(url, "https://192.168.10.*")) { return proxy_no; } //Idem pour le https if (shExpMatch(url, "http://127.0.0.1")) { return proxy_no; } //Idem pour le local // Proxy anything else return proxy_yes; }

ooooh ChrOmy

Si je n’étais pas déjà marié et père de famille, je ferais ma vie avec toi ! :049

Effectivement, ce script fonctionne !!! Reste à trouver la GPO pour diffusion automatique dans Firefox et c’est du tout bon !

Merci beaucoup !

Si tu étais blonde à forte poitrine… :030 :007