You may also find reviewing the Remote and Office Management Solution (ROMS) template which has an admin screen that sets up the custom security rule useful. Once it’s setup you can review it.
Once you’ve reviewed this let me know if you need more assistance or your developer is able to get it working?