How to block any authentication requests to my Exchange Online org by IP or IP block.

Tom Sztur 0 Reputation points
2023-04-10T18:46:11.8233333+00:00

Looking over authentication requests in Azure access logs I see constant attempts from certain countries. Many of these attemps are from similar IPs. In 2023, where in the EAC can i find the section where I can input the IP/subnet or IP block so block attempts from a specific ip? 90% of the online documentation is outdated -- this site; https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/connection-filter-policies-configure?view=o365-worldwide only specifies how to do this in powershell +

Set-HostedConnectionFilterPolicy -Identity Default -IPAllowList 192.168.1.10,192.168.1.23 -IPBlockList 10.10.10.0/25,172.17.17.0/24

I am afraid if I did the above it would disallow my current Ip and I'll be locked out. Is there any other way of doing this without fooling around with Powershell and accidently locking myself out?

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andy David - MVP 157.4K Reputation points MVP Volunteer Moderator
    2023-04-10T18:50:59.97+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.