alexandregz / twofactor_gauthenticator

This RoundCube plugin adds the 2-step verification(OTP) to the login proccess
MIT License
221 stars 78 forks source link

CIDR format available? #188

Closed zirvesosyal closed 6 months ago

zirvesosyal commented 9 months ago

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: 31.223.10.104

config.inc.php 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 129.168.1.2/24, for example)
$rcmail_config['whitelist'] = array('172.16.0.0/16', '31.223.10.104');

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

alexandregz commented 6 months ago

Your situation? I think you need put only static IP:

$rcmail_config['whitelist'] = array('31.223.10.104');