SREd-URV / moodle-auth_ip

Manual authentication plugin that prevents access to your Moodle from different IPs than those allowed.
GNU General Public License v3.0
1 stars 6 forks source link

Support for IPv6 #16

Open jpahullo opened 5 months ago

jpahullo commented 5 months ago

From an email:


We would like to use the Authentication plugin restricted by IP. We use Moodle 4.1.

I have the following question: Is the plugin Authentication by IP working well with IPv6 addresses and domains?

If so, what is the acceptable format?

For example :

2b00:1110:217:d962:0:33:e35e:1f00 - this format seems to be working 2b00:1110:217:d962:0:33:e35e::/96 - not working 2b00:1110:217:d962:0:33:e35e:0000 - not working 2b00:1110:217:d962:0000:0033:e35e:0000/96 - not working

Thank you, Judit Gyulai

jpahullo commented 5 months ago

Hi Judit:

My reply on the https://moodle.org/plugins/auth_ip site was:


Hi Judit,

This plugin is minimally updated. We added full support for IPv4 adresses and network adressing (CIDR notation). I suppose that full suport for IPv6 notations is not currently implemented. I have not checked it, but from your comment, I understant it does not.

I suggest you to rise an issue on the github repo, and, even better, provide a patch for supporting it.

Thanks,

Jordi


Thanks,

Jordi