any answer to this question – how to restrict azure appservice to a domain

I posted the following question on stackoverflow and forums.asp.net but never got any answer. hopefully, someone can help me out with this one.

http://stackoverflow.com/questions/37871795/restrict-azure-appservice-website-to-a-domain

https://forums.asp.net/p/2097395/6059242.aspx?restrict+azure+appservice+website+to+a+domain

I have a WCF service running on a azure app service. I want to restrict this WCF to a few azure website, external IPs and some other deployments. I am using IPSecurity tag for that in my WCF web.config

My issue is the IP restrictions work, but the azure website domains that i allow access to, dont seem to work.

for exmaple, i have an azure website with a custom domain, abcdef.info. i am trying to give this domain access to wcf, but it doesnt seem to be working. below is my configuration.

<ipSecurity enableReverseDns="true" allowUnlisted="false">
        <add ipAddress="127.0.0.1" allowed="true" /> 
        <add ipAddress="xx.xx.xx.xx" allowed="true" />  (IP of azure website i got after nslookup)  
        <add domainName="azurewebsitedomain.azurewebsites.net" allowed="true" />
        <add domainName="abcdef.info" allowed="true" /> (custom domain tied to my azure website)    
</ipSecurity>

i was assuming that one of the last 3 settings here will whitelist my wcf client running to azure website to access WCF but so far nothing.

Will appreciate any help. Thanks.

Advertisements

One thought on “any answer to this question – how to restrict azure appservice to a domain

  1. No reply yet on any forum on domain restriction issue
    So This was achieved by whitelisting wcf client app services ips on wcf service web.config
    We can get client outbound ips of app devices in application properties

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s