Forum Discussion
abdullahsalam
Aug 04, 2020Copper Contributor
Block Microsoft Exchange Server 2016 Exchange Admin Center (EAC) website from Internet
Hi, As per requirements from our customer to restrict EAC from External network, We have configured Exchange 2016 servers configured with Option 2 using the article below: https://docs.micr...
- Aug 05, 2020I would highly recommend using a reverse proxy between your perimeter firewall and your Exchange server[s]. You can configure the reverse proxy to only pass through OWA traffic and ignore/drop ECP URL requests.
Once this is properly configured, you don't need to go through the hassle of disabling ECP on your Exchange Server or even creating a separate ECP site. (Although if you've already done that work, there's no reason to undo it.) Regardless of your choice, just be sure to set your external ECP URL values to null.
Off the top of my head, two potential solutions for a reverse proxy (I'm sure there are many) might be Citrix ADC (Netscaler) or Traefik. This is essentially what AAP does, but AAP (Azure App Proxy) is running in Azure, whereas your reverse proxy could run on premises.
abdullahsalam
Aug 04, 2020Copper Contributor
Hi manuphilip,
Thanks for your reply.
How the users will access OWA from the internet if we delete the records? even if we delete the records, ECP default website will still be accessible using the public IP mapped to the server.
We want to make sure that OWA is accessible from the internet using https://mail.domain.com/owa but to block https://mail.domain.com/ecp URL or EAC login page.
Currently, if any user/admin access https://mail.domain.com/ecp its reachable and can access the login page from the internet which we want to restrict/block/deny access.
As mentioned earlier, if user/admin try to login to https://mail.domain.com/ecp then it gets redirected to OWA settings page which is the expected behaviour as we have disabled admin access to EAC on default ECP website. But the requirement is to block the EAC login page itself making sure OWA is accessible.
Is there any other way we can achieve this?
Thanks for your reply.
How the users will access OWA from the internet if we delete the records? even if we delete the records, ECP default website will still be accessible using the public IP mapped to the server.
We want to make sure that OWA is accessible from the internet using https://mail.domain.com/owa but to block https://mail.domain.com/ecp URL or EAC login page.
Currently, if any user/admin access https://mail.domain.com/ecp its reachable and can access the login page from the internet which we want to restrict/block/deny access.
As mentioned earlier, if user/admin try to login to https://mail.domain.com/ecp then it gets redirected to OWA settings page which is the expected behaviour as we have disabled admin access to EAC on default ECP website. But the requirement is to block the EAC login page itself making sure OWA is accessible.
Is there any other way we can achieve this?
manuphilip
Aug 04, 2020MCT
Hi abdullahsalam,
I didn't notice the original request is for disabling only ECP. I think you can disable the ECP access by the following cmdlet
Get-EcpVirtualDirectory | Set-EcpVirtualDirectory -AdminEnabled $false
- abdullahsalamAug 04, 2020Copper ContributorHi manuphilip,
Thanks again for your reply. Again, If you have noticed in my question (1st Post) I have mentioned that its already configured on the default ECP website but still in that case https://mail.domain.com/ecp login page is accessible which we want to block. We created a second ECP website with internal Private IP for administration purpose where -AdminEnabled:$true and default ECP website is -AdminEnabled:$false.
Hope this will clarify and you will understand the requirements 🙂- manuphilipAug 04, 2020MCT
The page reference clearly says the following
Verify that https://mail.contoso.com/ecp and https://mbx01.contoso.com/ecp return either of the following results:
404 - website not found
In that case, please make sure that, the steps followed are correct.
- abdullahsalamAug 04, 2020Copper ContributorHi manuphilip,
I think you need to review my previous posts.
The steps followed are correct and yes It shows show 404 error or it redirects to owa settings page AFTER USER/ADMIN LOGINS to the ecp/EAC login page.
The requirement is to restrict/block the ECP login page also.
Hope this will clarify things for you the requirements.