This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Proxy PAC - Finde den Fehler

Hallo zusammen,

kann mal bitte jemand über den Code meiner Proxy PAC Konfig gucken. Scheinbar bin ich zu blind um zu erkennen warum die Ausschlüsse nicht funktieren wollen.

Ich habe auf einem Server (10.11.0.5) auf Port 80 einen Webserver am laufen welchen ich hier zum testen missbrauchen kann. Sobald ich im Browser aber auf http://10.11.0.5 gehe erscheint ein Fenster indem ich mich auf der IP der Astaro authentifizieren soll...

function FindProxyForURL(url, host)

{
   //The following URLs will not be proxied
   if (shExpMatch(url, "*MeineInterneDomain.local"))
         {return "DIRECT";}
   if (shExpMatch(url, "*intranet"))
         {return "DIRECT";}
   if (shExpMatch(url, "*sv-exchange"))
         {return "DIRECT";}
   if (shExpMatch(url, "10.1.*"))
         {return "DIRECT";}
   if (shExpMatch(url, "10.10.*"))
         {return "DIRECT";}
   if (shExpMatch(url, "10.11.*"))
         {return "DIRECT";}
   if (shExpMatch(url, "10.99.0.*"))
         {return "DIRECT";}
   if (shExpMatch(url, "10.100.0.*"))
         {return "DIRECT";}
   if (shExpMatch(url, "*10.1.255.252*"))
         {return "DIRECT";}

   // Set the desired proxy server for local addresses
   if (isInNet(myIpAddress(), "10.10.0.0", "255.255.0.0"))
         {return "PROXY 10.1.255.252:8080" ;}

   // For all other networks, do not proxy
   return "DIRECT" ;
}


Cu, Abyss_X


This thread was automatically locked due to age.
Parents
  • Moin,

    nimm mal die geschweiften Klammern weg.
    Ich nutze keine.

    Bsp:
     

    function FindProxyForURL(url, host)
    {
    if (isPlainHostName(host))
      return "DIRECT";
    else if (isInNet(host, "192.168.yyy.0", "255.255.255.0") ||
            isInNet(host, "192.168.yyy.0", "255.255.255.0") ||
            isInNet(host, "192.168.yyy.0", "255.255.255.0") ||
            isInNet(host, "127.0.0.0", "255.0.0.0"))
      return "DIRECT";
    else if (dnsDomainIs(host, "intern.yyyy.de") ||   // lokale Domäne
            dnsDomainIs(host, "intern2.yyyy2.de"))
     return "DIRECT";
    else if (shExpMatch(url,"* beispiel.yyyyy.de*/*") ||
             shExpMatch(url,"*:4444*/*") ||
             shExpMatch(url,"*:4422*/*") ||
             shExpMatch(url,"*:10000*/*") ||
             shExpMatch(url,"*:6667*/*"))
     return "DIRECT";
    else 
    return "PROXY 192.168.yyy.2:8080; DIRECT";
    }

    Astaro user since 2001 - Astaro/Sophos Partner since 2008

  • Hi, das brachte leider keine Besserung :-(

    Cu, Abyss_X
  • Mit folgendem Code läuft es jetzt

    function FindProxyForURL(url, host)
    {
       //The following URLs will not be proxied
       if (shExpMatch(url, "*MeineInterneDomain.local*"))
             return "DIRECT";
       if (shExpMatch(url, "*intranet*"))
             return "DIRECT";
       if (shExpMatch(url, "*sv-exchange*"))
             return "DIRECT";
       if (shExpMatch(host, "10.1.*"))
             return "DIRECT";
       if (shExpMatch(host, "10.10.*"))
             return "DIRECT";
       if (shExpMatch(host, "10.11.*"))
             return "DIRECT";
        if (shExpMatch(host, "10.99.0.*"))
             return "DIRECT";
       if (shExpMatch(host, "10.100.0.*"))
             return "DIRECT";
       if (shExpMatch(host, "*10.1.255.252*"))
             return "DIRECT";

       // Set the desired proxy server for local addresses
       if (isInNet(myIpAddress(), "10.10.0.0", "255.255.0.0"))
             return "PROXY 10.1.255.252:8080" ;

       // For all other networks, do not proxy
       return "DIRECT" ;
    }


    Cu, Abyss_X
Reply
  • Mit folgendem Code läuft es jetzt

    function FindProxyForURL(url, host)
    {
       //The following URLs will not be proxied
       if (shExpMatch(url, "*MeineInterneDomain.local*"))
             return "DIRECT";
       if (shExpMatch(url, "*intranet*"))
             return "DIRECT";
       if (shExpMatch(url, "*sv-exchange*"))
             return "DIRECT";
       if (shExpMatch(host, "10.1.*"))
             return "DIRECT";
       if (shExpMatch(host, "10.10.*"))
             return "DIRECT";
       if (shExpMatch(host, "10.11.*"))
             return "DIRECT";
        if (shExpMatch(host, "10.99.0.*"))
             return "DIRECT";
       if (shExpMatch(host, "10.100.0.*"))
             return "DIRECT";
       if (shExpMatch(host, "*10.1.255.252*"))
             return "DIRECT";

       // Set the desired proxy server for local addresses
       if (isInNet(myIpAddress(), "10.10.0.0", "255.255.0.0"))
             return "PROXY 10.1.255.252:8080" ;

       // For all other networks, do not proxy
       return "DIRECT" ;
    }


    Cu, Abyss_X
Children
  • Hallo Zusammen,

    die Proxy Konfig läuft bisher ohne Probleme ich hätte allerdings noch eine Frage an die Leute welche eine ähnliche Konstellation haben. 

    Im LAN läuft alles wie geschmiert, wenn jetzt allerdings ein Außendienstler bpsw. aus dem Hotel über WLAN ins Internet geht versucht der IE natürlich zuerst die WPAD.dat auf der Firewall zu finden und bricht dieses nach 5-10 sec. ab um anschließend direkt ins Internet zu gehen.

    Soweit so gut, weiß zufällig jemand wie ich dem IE bei bringen nicht 5-10 sec zu suchen sondern nur 1-2? Da der IE bei jedem Start das geiche verhalten an den Tag legt bekommt der user den Eindruck das, nennen wir es mal "vorher alles besser war".

    Cu, Abyss_X
  • Niemand eine Idee? [:(]

    Cu, Abyss_X