Reputation: 96
I am just about to build a new cloud in azure to be used as image server for multiple websites. I created is a storage, endpoint, cdn - all working well. I set up an Ubuntu host in the middle that will be used to resize images from original size in the storage accordingly to the request parameters in the URL, using apache2 and php.
If I would want to restrict access to only one IP - where would I do this?
Upvotes: 4
Views: 8033
Reputation: 312
If you use the new Azure Premium CDN offering (available as of Dec.2015), you can make IP-based rules.
Please see https://azure.microsoft.com/en-us/documentation/articles/cdn-rules-engine-details/ for a full rules reference.
Upvotes: 3
Reputation: 24148
Tips that if serving images from Ubuntu Host, you can try to use the iptables
to control the network traffic, please see the Ubuntu community doc https://help.ubuntu.com/community/IptablesHowTo.
Upvotes: 0
Reputation: 71111
Azure's CDN is public, without IP-filtering. Azure Storage (direct access to blobs, without the CDN) may have both public and private links, and you may grant temporary access to private blobs with a shared access signature - again, no IP-level filtering.
If you serve your images from your linux VM, then you may set up inbound rules to filter traffic based on IP ranges, by setting up Access Control Lists (ACLs).
Upvotes: 1