none
Autodiscover | proxy.pac RRS feed

  • Allgemeine Diskussion

  • Hallo zusammen!

    Vorhanden ist EX2016 auf SRV2016 und Win 10 Ent als Client, Office 2016.
    I-Net über eine Sophos-UTM, die als Proxy fungiert.

    Die Proxy-Einstellungen verteile ich über eine proxy.pac an meine Clients.

    Wenn ich in der .pac nur auf den Proxy verweise, funktioniert Autodiscover nicht,
    daher sieht meine .pac wie folgt aus. Ohne die 3 Ausnahmen = kein Autodiscover.

    // proxy pac file
     
    function FindProxyForURL(url, host)
    {
            // proxy string to return
            var proxy = "PROXY utmappliance.dom.local:8080";
     
            // no Proxy
            if (dnsDomainIs(host, ".ex.dom.de")) { return "DIRECT"; }
            if (dnsDomainIs(host, ".autodiscover.dom.de")) { return "DIRECT"; }
            if (isInNet(host, "192.168.0.0", "255.255.0.0")) { return "DIRECT"; }
            // go Proxy
            return proxy;
    }


    Nun wollen wir MS Teams einsetzen und ich bin daher auf das PS-Script "get-pacfile" gestoßen,
    das eine fertige PAC-Datei mit allen MS-Adressen holt, die für die Nutzung von MS Teams
    bzw. MS 365 direkt, also ohne Proxy, genutzt werden sollen (Proxy-Ausnahme).

    Wenn ich nun diese "O365.pac" an Stelle meiner o.g. .pac verwende, funktioniert mein Autodiscover
    >TROTZDEM< meine Ausnahmen (s. oben) in dieser Datei nicht enthalten sind, und das verstehe ich nicht.
    Kann dazu jemand was sagen bzw. hat dazu jemand eine Idee?

    Die über das Script bezogene .pac sieht wie folgt aus:

    // This PAC file will provide proxy config to Microsoft 365 services
    //  using data from the public web service for all endpoints
    function FindProxyForURL(url, host)
    {
        var direct = "DIRECT";
        var proxyServer = "PROXY utmappliance.dom.local:8080";

        if(shExpMatch(host, "excelcs.officeapps.live.com")
            || shExpMatch(host, "ocws.officeapps.live.com")
            || shExpMatch(host, "odc.officeapps.live.com")
            || shExpMatch(host, "pptcs.officeapps.live.com")
            || shExpMatch(host, "roaming.officeapps.live.com")
            || shExpMatch(host, "uci.officeapps.live.com")
            || shExpMatch(host, "wordcs.officeapps.live.com"))
        {
            return proxyServer;
        }

        if(shExpMatch(host, "*.broadcast.skype.com")
            || shExpMatch(host, "*.compliance.microsoft.com")
            || shExpMatch(host, "*.lync.com")
            || shExpMatch(host, "*.mail.protection.outlook.com")
            || shExpMatch(host, "*.manage.office.com")
            || shExpMatch(host, "*.msftidentity.com")
            || shExpMatch(host, "*.msidentity.com")
            || shExpMatch(host, "*.officeapps.live.com")
            || shExpMatch(host, "*.online.office.com")
            || shExpMatch(host, "*.outlook.office.com")
            || shExpMatch(host, "*.portal.cloudappsecurity.com")
            || shExpMatch(host, "*.protection.office.com")
            || shExpMatch(host, "*.protection.outlook.com")
            || shExpMatch(host, "*.security.microsoft.com")
            || shExpMatch(host, "*.skypeforbusiness.com")
            || shExpMatch(host, "*.teams.microsoft.com")
            || shExpMatch(host, "account.activedirectory.windowsazure.com")
            || shExpMatch(host, "account.office.net")
            || shExpMatch(host, "accounts.accesscontrol.windows.net")
            || shExpMatch(host, "admin.microsoft.com")
            || shExpMatch(host, "adminwebservice.microsoftonline.com")
            || shExpMatch(host, "api.passwordreset.microsoftonline.com")
            || shExpMatch(host, "autologon.microsoftazuread-sso.com")
            || shExpMatch(host, "becws.microsoftonline.com")
            || shExpMatch(host, "broadcast.skype.com")
            || shExpMatch(host, "clientconfig.microsoftonline-p.net")
            || shExpMatch(host, "companymanager.microsoftonline.com")
            || shExpMatch(host, "compliance.microsoft.com")
            || shExpMatch(host, "device.login.microsoftonline.com")
            || shExpMatch(host, "graph.microsoft.com")
            || shExpMatch(host, "graph.windows.net")
            || shExpMatch(host, "home.office.com")
            || shExpMatch(host, "dom.sharepoint.com")
            || shExpMatch(host, "dom-my.sharepoint.com")
            || shExpMatch(host, "login.microsoft.com")
            || shExpMatch(host, "login.microsoftonline.com")
            || shExpMatch(host, "login.microsoftonline-p.com")
            || shExpMatch(host, "login.windows.net")
            || shExpMatch(host, "logincert.microsoftonline.com")
            || shExpMatch(host, "loginex.microsoftonline.com")
            || shExpMatch(host, "login-us.microsoftonline.com")
            || shExpMatch(host, "manage.office.com")
            || shExpMatch(host, "nexus.microsoftonline-p.com")
            || shExpMatch(host, "office.live.com")
            || shExpMatch(host, "outlook.office.com")
            || shExpMatch(host, "outlook.office365.com")
            || shExpMatch(host, "passwordreset.microsoftonline.com")
            || shExpMatch(host, "portal.microsoftonline.com")
            || shExpMatch(host, "portal.office.com")
            || shExpMatch(host, "protection.office.com")
            || shExpMatch(host, "provisioningapi.microsoftonline.com")
            || shExpMatch(host, "security.microsoft.com")
            || shExpMatch(host, "smtp.office365.com")
            || shExpMatch(host, "teams.microsoft.com")
            || shExpMatch(host, "www.office.com"))
        {
            return direct;
        }

        return proxyServer;
    }


    Mittwoch, 10. März 2021 09:49