Roundcube Community Forum


How to disable a plugin 2FA for a specific IP address

Started by mdenizli, February 13, 2024, 06:18:29 AM

Previous topic - Next topic


If a connection is made with an IP other than a static IP, I want two factors to be active. How can I do that?

Local IP block: 172.16.x.x
static ip address: open the file

// whitelist, CIDR format available
// NOTE: we need to use .0 IP to define LAN because the class CIDR have a issue about that (we can't use, for example)
$rcmail_config['whitelist'] = array('', '');

I edit it like this but it doesn't work. Where am I making a mistake?


I haven't used the plugin so I can't say for sure what the configuration needs to be, but one think I noticed is that the no longer uses the "$rcmail_config" variable for the config it now uses the "$config" variable so try changing that.


But here's the thing. When is added, two factors are disabled for all IPs. So doesn't it show that the system is working? But when we add the local IP and static IP we want, it doesn't work.