My magento installation has integration with a ERP that uses multiple IPs to connect to it that keep changing. This makes it very difficult to develop the webshop in maintenance mode. How can I let magento 2.4 in maintenance mode while also allowing ERPs to perform their needed API calls?
You can disable maintenance mode for IP
exempt IP-addresses enable disable for using the below command.
Maintenance mode Enable List of exempt IP-addresses
php bin/magento maintenance:enable --ip=22.214.171.124 --ip=126.96.36.199
Maintenance mode remove List of exempt IP-addresses
php bin/magento maintenance:disable --ip=none
I hope this will help you.