Firewall rules for white-listing Office 365
Office
365 portal (Ports 443 and 80)
111.221.111.196 portal.microsoftonline.com
65.52.196.64 portal.microsoftonline.com
94.245.108.85 portal.microsoftonline.com
70.37.97.234 portal.microsoftonline.com
65.52.148.27 portal.microsoftonline.com
65.52.184.75 portal.microsoftonline.com
65.52.208.73 passwordreset.microsoftonline.com
65.52.240.233 passwordreset.microsoftonline.com
157.55.185.100 passwordreset.microsoftonline.com
157.55.194.46 passwordreset.microsoftonline.com
65.54.165.55 g.msn.com
65.55.239.168 g.msn.com
207.46.216.54 g.msn.com
207.46.73.250 g.msn.co.jp
94.245.117.53 g.msn.co.uk
65.54.55.201 osub.microsoft.com
Remote
Connectivity Analyzer (Ports 443 and 80)
65.55.150.61
65.55.150.158
65.55.150.160
207.46.14.52
207.46.14.62
207.46.14.63
Microsoft
Online Services (Ports 443 and 80)
65.54.74.0/23 *.msecnd.net
65.54.80.0/20 *.msecnd.net
65.55.86.0/23 *.msecnd.net
70.37.128.0/23 *.msecnd.net
70.37.142.0/23 *.msecnd.net
70.37.159.0/24 *.msecnd.net
94.245.68.0/22 *.msecnd.net
94.245.82.0/23 *.msecnd.net
94.245.84.0/24 *.msecnd.net
94.245.86.0/24 *.msecnd.net
111.221.70.0/25 *.msecnd.net
111.221.71.0/25 *.msecnd.net
157.56.200.0/23 *.msecnd.net
207.46.70.0/24 *.msecnd.net
207.46.206.0/23 *.msecnd.net
213.199.148.0/23 *.msecnd.net
65.55.233.0/27 g.microsoftonline.com
65.54.165.0/25 g.microsoftonline.com
157.56.23.32/27 g.microsoftonline.com
132.245.0.0/16
157.55.59.128/25
157.55.155.0/25
157.55.130.0/25
157.55.145.0/25
157.56.53.128/25
157.56.55.0/25
157.56.58.0/25
157.56.151.0/25
157.55.227.192/26
207.46.150.128/25
207.46.198.0/25
213.199.182.128/25
207.46.57.128/25
111.221.127.112/28
65.54.82.0/24
157.56.236.0/22
URLs/FQDNs
(Ports 443 and
80)
*.outlook.com
*.microsoftonline.com
*.microsoftonline-p.com
*.microsoftonline-p.net
*.microsoftonlineimages.com
*.microsoftonlinesupport.net¹
*.msecnd.net
*.office365.com
*.officeapps.live.com
*.office.net
Hosted Exchange (Ports 25, 587, 443 and 80) * optionally 143, 993,995 if Imap
and POP will be used
r3.res.outlook.com
65.54.62.0/25
65.55.39.128/25
65.55.78.128/25
65.55.94.0/25
65.55.113.64/26
65.55.126.0/25
65.55.174.0/25
65.55.181.128/25
70.37.151.128/25
157.55.49.0/25
157.55.49.128/25
157.55.61.0/24
157.55.61.128/25
157.55.157.128/25
157.56.24.0/25
157.56.232.0/21
157.56.234.0/24
157.56.236.0/24
157.56.237.0/24
157.56.240.0/21
157.56.241.0/24
157.56.244.0/24
157.56.245.0/24
207.46.4.128/25
207.46.198.0/25
207.46.203.128/26
Federated Gateway
207.46.150.128/25
207.46.164.0/24
*.microsoftonline-p.com
*.live.com
*.microsoftonline.com
*.microsoftonlinesupport.net