Hello,
I needed this functionality on a company project, and have created an (almost fully working, still in progress) version of a D8 adaptation of the module, forked from the repo by @bjaxelsen .
You can find the code on Github while still being developed.
Module features:
- Support for both IPv4 and IPv6
- Field instance settings for:
- IP family (IPv4, IPv6, or both)
- Allow IP ranges (both in simple and CIDR format*)
- Limit IPs to specific ranges
* Though CIDR is accepted as data entry, it is saved and then displayed as a simple range. So, for instance, 192.168.0.0/24 is recognized and validated as an IPv4 range of IPs, and saved as 192.168.0.0-192.168.0.255 . There is currently no special provision for usable IPs in that range.
Please share any thoughts here, or feedback in the github issue queue.
Thank you in advance!
Checklist
- Link to project: IP address fields
- Record of owner agreement: No.
- Maintainers: JSON
- Year of last Drupal.org activity of maintainers:
- Aidan Lister : 2014 (owner)
- Bjørn Axelsen: 2020 - Record of attempts to PM owner and maintainers
hexblot: 2019-03-28 PM to Aidan Lister - Project covered by Drupal’s security advisory policy: No
Comments
Comment #2
hexblot CreditAttribution: hexblot as a volunteer commentedAuthor was contacted for comments the same day as the issue was opened, have not received any.
Original project page is https://www.drupal.org/project/field_ipaddress
Comment #3
gislehexblot,
thank you for offering to maintain this project.
Since the last release was in 2012, there two issues RTBC not acted upon for more than four years, and no Drupal 8 branch, I agree that this could use a maintainer.
I've added you to the project as maintainer.
As a project maintainer, I suggest you read our page about Issue Etiquette.
Comment #4
gisleChanging status.
Comment #5
hexblot CreditAttribution: hexblot as a volunteer commentedThank you!