Office365 Pac File

Pac file yapısı kullanıyorsanız, aşağıdaki dosya office365 için gereken izinleri sağlıyor olacaktır.

 

 

function FindProxyForURL(url, host)
{
host = host.toLowerCase();

/* Don’t proxy local hostnames */
if (isPlainHostName(host))
return “DIRECT”;

// If the hostname matches, send direct.
if (dnsDomainIs(host, “.aadrm.com”) ||
dnsDomainIs(host, “.amazonaws.com”) ||
dnsDomainIs(host, “.assets-yammer.com”) ||
dnsDomainIs(host, “.cloudfront.net”) ||
dnsDomainIs(host, “.cotssl.net”) ||
dnsDomainIs(host, “.edgekey.net”) ||
dnsDomainIs(host, “.live.com”) ||
dnsDomainIs(host, “.lync.com”) ||
dnsDomainIs(host, “.microsoft.com”) ||
dnsDomainIs(host, “.microsoftonline.com”) ||
dnsDomainIs(host, “.microsoftonlineimages.com”) ||
dnsDomainIs(host, “.microsoftonline-p.com”) ||
dnsDomainIs(host, “.microsoftonline-p.net”) ||
dnsDomainIs(host, “.microsoftonlinesupport.net”) ||
dnsDomainIs(host, “.msecnd.net”) ||
dnsDomainIs(host, “.msn.co.jp”) ||
dnsDomainIs(host, “.msn.co.uk”) ||
dnsDomainIs(host, “.msn.com”) ||
dnsDomainIs(host, “.msocdn.com”) ||
dnsDomainIs(host, “.office.com”) ||
dnsDomainIs(host, “.office.net”) ||
dnsDomainIs(host, “.office365.com”) ||
dnsDomainIs(host, “.onmicrosoft.com”) ||
dnsDomainIs(host, “.outlook.com”) ||
dnsDomainIs(host, “.phonefactor.net”) ||
dnsDomainIs(host, “.sharepoint.com”) ||
dnsDomainIs(host, “.Sharepointonline.com”) ||
dnsDomainIs(host, “.teamviewer.com”) ||
dnsDomainIs(host, “.toplante.com”) ||
dnsDomainIs(host, “.verisign.com”) ||
dnsDomainIs(host, “.windowsazure.com”) ||
dnsDomainIs(host, “.yammer.com”) ||
dnsDomainIs(host, “.trendmicro.com”) ||
dnsDomainIs(host, “.yammerusercontent.com”) ||
(host == “*.aadrm.com”) ||
(host == “*.amazonaws.com”) ||
(host == “*.assets-yammer.com”) ||
(host == “*.cloudfront.net”) ||
(host == “*.cotssl.net”) ||
(host == “*.edgekey.net”) ||
(host == “*.live.com”) ||
(host == “*.lync.com”) ||
(host == “*.microsoft.com”) ||
(host == “*.microsoftonline.com”) ||
(host == “*.microsoftonlineimages.com”) ||
(host == “*.microsoftonline-p.com”) ||
(host == “*.microsoftonline-p.net”) ||
(host == “*.microsoftonlinesupport.net”) ||
(host == “*.msecnd.net”) ||
(host == “*.msn.co.jp”) ||
(host == “*.msn.co.uk”) ||
(host == “*.msn.com”) ||
(host == “*.msocdn.com”) ||
(host == “*.office.com”) ||
(host == “*.office.net”) ||
(host == “*.office365.com”) ||
(host == “outlook.office365.com”) ||
(host == “*.onmicrosoft.com”) ||
(host == “*.outlook.com”) ||
(host == “*.phonefactor.net”) ||
(host == “*.sharepoint.com”) ||
(host == “*.Sharepointonline.com”) ||
(host == “*.teamviewer.com”) ||
(host == “*.toplante.com”) ||
(host == “*.verisign.com”) ||
(host == “*.windowsazure.com”) ||
(host == “*.yammer.com”) ||
(host == “*.trendmicro.com”) ||
(host == “*.yammerusercontent.com”))
return “DIRECT”;
// If the requested website is hosted within the internal network, send direct.
if (isPlainHostName(host) ||
shExpMatch(host, “*.local”) ||
shExpMatch(host, “outlook.com”) ||
isInNet(dnsResolve(host), “10.0.0.0”, “255.0.0.0”) ||
isInNet(dnsResolve(host), “172.16.0.0”, “255.240.0.0”) ||
isInNet(dnsResolve(host), “192.168.0.0”, “255.255.0.0”) ||
isInNet(dnsResolve(host), “127.0.0.0”, “255.255.255.0”))
return “DIRECT”;

// Bypass specific host (include both wildcard and non-wildcard expression).
if ( shExpMatch(host, “*.office365.com”) || shExpMatch(host, “outlook.office365.com”) || shExpMatch(host, “*.sharepoint.com”) || shExpMatch(host, “outlook.com”))
return “DIRECT”;

return “PROXY proxygw.domain.com:8080; DIRECT”;
}

No Comments

Post a Comment