I have setup a MongoDB replica cluster on 3 virtual machines (Ubuntu 14), on MS azure cloud. The mongodb cluster has been setup with MMS (https://mms.mongodb.com amazing tool btw) and it works fine.
I have also an azure website with PHP, the mongodb driver has been installed.
Now I want to connect my website to my mongoDB cluster master and of course, I don't want to open the port 27017 to anyone, how should I configure it?