I have a magento2 web application which I need to enable maintenance mode excluding a specific IP. The following command did enable the maintenance mode without excluding my IP.
php bin/magento maintenance:enable --ip=188.8.131.52
and I tried the following since the above command didn't work.
php bin/magento maintenance:allow-ips 184.108.40.206
var/.maintenance.ip does exist and it has my ip listed in it.