Is there a way for Azure Worker and Web Roles to allow traffic only from certain range of host names or IP addresses? I see the option of adding firewall rules only for SQL Azure database from Management Portal.
We are deploying Mongo database to Azure worker role. The data has to be accessed from multiple deployments and from machines running from our corp network. So roles running Mongo database have public endpoints to consume the data. Mongo
DB uses form based authentication.
Is there a way that I can configure in Azure to restrict traffic for a role that has public endpoints? Requirement is that only certain IP address range or host names must be allowed to connect to Mongo role (DB).
If there is no out of box solution, I am planning to configure Windows firewall on Mongo role and allow only traffic only from Remote IP addresses I specify. Is this a reasonable approach? Are there any better alternatives? Please clairfy.