I am entering an ip range of xxx.18.21-47.* and it says it is invalid.
I have substituted xxx for the real numbers in the first octet. The range is xxx.18.21.1 - xxx.18.47.255, which is says is invalid also.

I can enter in each set, xxx.18.21.*, xxx.18.22.* and so on, but that gets really old making that many entries.

The example in the help text show 123.123.124-125.*, which is exactly what I am trying to do. Is this a bug or am I doing something wrong?

Comments

jim kirkpatrick’s picture

Status: Postponed (maintainer needs more info) » Active

Hi CommanderFish... Apologies for the wait in responding... Since 3.x uses the IP Address module, and if you check out that page you'll see the format for IP ranges, which is 10.10.10.0 - 10.10.12.255 -- i.e. the range is the whole IP, rather than in the quad like in the 1.x and 2.x branches of IP Login.

This means the 3.x documentation/hook_help is wrong at present and needs updating.

Can you please confirm the above works for you, and if so we'll change the documentation.

jim kirkpatrick’s picture

Component: Code » Documentation
Status: Active » Postponed (maintainer needs more info)
commanderflash’s picture

Status: Active » Postponed (maintainer needs more info)

Sorry for the not getting back sooner. Your suggestion on how to format appears to work.

commanderflash’s picture

I noticed that whenever I put in some IP ranges, such as 99.99.0.0 - 99.99.95.255, it appears on the User's view tab, after saving it, as

IP address:
0.0.0.0/0

If you edit the user, then the IP range is shown correctly in the IP entry fields. This may only be a cosmetic issue on the User's view tab. Switching the field view to IP shorthand resolves the issue.

jim kirkpatrick’s picture

Status: Postponed (maintainer needs more info) » Active

Sounds like a bug to me... JohnV?

MrRedPants’s picture

Unless I'm missing something, the IP field module doesn't allow for comma separation (which for me is a step back in functionality) - I used this (awesome module) to auto login multiple locations and land on one page. When I try to enter comma separated, I get an "IP address is invalid" - Thanks.

davidwhthomas’s picture

Issue summary: View changes

@MrRedPants: To add multiple IP addresses using field_ipaddress (IP field) module, simply configure the IP address field to support multiple values in the field settings.
You can then 'add another item' to add another IP address.

amateescu’s picture

Status: Active » Closed (outdated)

Closing old issues.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.