Network limting

Network limting

by Tõnis Tartes -
Number of replies: 1
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Hi,

I'm trying to achieve quiz network limiting with IPv6 addresses. Before with IPv4 addresses, it was easy to limit specific computers in class by inserting for example: 195.123.74.104-123. I want to achieve the same result with IPv6 addresses but i'm confused how to do that.

From code comments in moodlelib.php i see that it should be possible to add xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx::xxxx-yyyy

With IPv6 the addresses look like 2002:bb6:2001:2000:d3d:20dd:bbcb:dd7a. I know that the first four parts are network prefix (2002:bb6:2001:2000) and the last 4 parts are meant for device addressing. How can i add specific computer range from 104-123 with IPv6?

Can someone give me an example or hints how to insert the correct syntax? Using Moodle 2.5.4+.

 

Average of ratings: -