To allow connections only from DuoCircle Cloud IPs within Office 365 – Exchange Online you will need to create an Inbound Connector that is restricted to DuoCircle Cloud IPs. This is not covered by this example.
From within the Exchange Admin Center.
- Select mail flow
- Select connectors
- Click the plus sign to add a new Inbound connector
- Complete the Select Your Mail Flow Scenario dialog as follows:
Field | Option |
---|---|
From | Partner organization |
To | Office 365 |
Within the new inbound connector properties give the connector a name eg. (DuoCircle Cloud IPs).
In the Sender IP address field click the plus sign to start entering IPs.
The list of IP's are here - https://support.duocircle.com/support/solutions/articles/5000524218-ip-addresses-for-firewalls
Powershell
-When prompted for a username and password please enter an O365 Admin Credentials -Inbound Connector created will be disabled by default. #> Set-ExecutionPolicy RemoteSigned -Force $UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection Import-PSSession $Session New-InboundConnector -Enable $False -Name "DuoCircle Cloud IP Ranges" -SenderDomains * -RestrictDomainsToIPAddresses $true -RequireTls $false -ConnectorType "Partner" -SenderIPAddresses 54.191.214.3,54.149.210.130,54.191.214.36,54.191.151.194,54.148.219.64,54.149.206.185,54.186.27.61,54.191.158.99,54.186.172.23,54.149.36.10,54.149.155.156,54.69.130.42,54.213.22.21,54.200.247.200,54.186.218.12,54.200.129.228,54.149.205.143,54.148.222.11,54.148.30.215,54.69.62.154,54.68.193.51,54.186.60.165,54.149.154.28,54.148.229.97,54.186.22.84,54.149.26.35,52.28.30.98,52.29.118.68,52.29.142.239,52.29.144.204,52.29.147.143,52.29.152.107,52.29.162.96,52.58.5.29,52.58.7.81,52.58.7.120,104.232.45.0/24