icePatrick 10 Geschrieben 7. April 2012 Melden Geschrieben 7. April 2012 Hallo zusammen, ich beschäft mich momentan mit der Proxy Konfiguration über wpad.dat. Nach sehr langem ausprobieren und testen habe ich es jetzt auch soweit hinbekommen, dass ich im IE9 und Firefox nur den Haken 'Automatische Suche der Einstellungen' setzen muss und es funktioniert. Nun habe ich allerdings noch mit der Syntax der wpad.dat ein Problem. Ich kann die Weboberfläche der Firewall nicht mehr aufrufen. Setze ich eine Außnahme in die wpad.dat kann ich zwar die Weboberfläche aufrufen, komme aber nicht mehr ins Internet... Umgebung: Firewall / Proxy: virtuelle Astaro (192.168.0.1) Weboberfläche Firewall: https://192.168.0.1:4444 Speicherort wpad.dat: auf Firewall ( http://wpad/wpad.dat ) Inhalt der wpad.dat: function FindProxyForURL(url, host) { // variable strings to return var proxy_yes = "PROXY 192.168.0.1:80"; var proxy_no = "DIRECT"; //exceptions if (shExpMatch(url, "https://srv-dc01*")) { return proxy_no; } if (shExpMatch(url, "http://127.0.0.1*")) { return proxy_no; } //if (shExpMatch(url, "https://192.168.0.1:4444)) { return proxy_no; } //if (dnsDomainIs(host, “localhost”)) { return proxy_no; } if (dnsDomainIs(host, ".intern.domain.de")) { return proxy_no; } // Proxy if PC is on local LAN if (isInNet(myIpAddress(), "192.168.0.0", "255.255.255.0")) return proxy_yes; else return proxy_no; } Aktiviere ich diesen Teil //if (shExpMatch(url, "https://192.168.0.1:4444)) { return proxy_no; } komme ich auf die Weboberfläche, aber nicht mehr ins Internet. Hat jemand eine Idee?
Dukel 468 Geschrieben 7. April 2012 Melden Geschrieben 7. April 2012 Fehlt im Teil // Proxy if PC is on local LAN if (isInNet(myIpAddress(), "192.168.0.0", "255.255.255.0")) return proxy_yes; else return proxy_no; } nicht diverse geschweifte Klammern? Da brauchst du dann auch die Ausnahme für die IP der Firewall nicht, da 192.168.0.1 in 192.168.0.0 ist.
icePatrick 10 Geschrieben 7. April 2012 Autor Melden Geschrieben 7. April 2012 Danke für den Hinweis, habe den Code jetzt angepasst, Fehler besteht leider immer noch. Problem ist, dass der Aufruf von https://192.168.0.1:4444 am Proxy aufschlägt, für diese Adresse soll aber kein Proxy verwendet werden. function FindProxyForURL(url, host) { // variable strings to return var proxy_yes = "PROXY 192.168.0.1:80"; var proxy_no = "DIRECT"; //exceptions if (shExpMatch(url, "https://srv-dc01*")) { return proxy_no; } if (shExpMatch(url, "http://127.0.0.1*")) { return proxy_no; } //if (shExpMatch(url, "https://192.168.0.1*)) { return proxy_no; } //if (dnsDomainIs(host, “localhost”)) { return proxy_no; } if (dnsDomainIs(host, ".intern.domain.de")) { return proxy_no; } // Proxy if PC is on local LAN if (isInNet(myIpAddress(), "192.168.0.0", "255.255.255.0")){ return proxy_yes; } else { return proxy_no; } }
Empfohlene Beiträge
Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren
Du musst ein Benutzerkonto haben, um einen Kommentar verfassen zu können
Benutzerkonto erstellen
Neues Benutzerkonto für unsere Community erstellen. Es ist einfach!
Neues Benutzerkonto erstellenAnmelden
Du hast bereits ein Benutzerkonto? Melde dich hier an.
Jetzt anmelden