Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OF-2784 & OF-2785: Various IPv6-related changes #2550

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

guusdk
Copy link
Member

@guusdk guusdk commented Oct 11, 2024

This is a collection of related commits (please look at the individual commit messages) that intent to update support for IPv6 in Openfire.

The majority of the changes can be summed up as:

  • Replaced similar/duplicate functionality with regards to IP-address checks in new utility class
  • Allow various access control lists to include IPv6 addresses and address ranges (where they previously used IPv4 only)
  • Reworked the admin console pages to use a nicer table and form, rather than a big text area, to store the various lists of IPs and ranges.
  • Admin Console's DNS checker now attempts to resolve hostnames discovered via DNS SRV, to identify support for IPv4, IPv6, and missing A or AAAA records.

image

image

image

…sion#isAddressInRange

The check used to see if a particular IP address is in a set of addresses or addres ranges should also be able to operate on IPv6 addresses (not just IPv4).
A new utility class in which IP-related helper methods are centralized. Includes unit tests.
This uses the newly introduced IP utility class (from the previous commit) to phase out duplicated functionality in other classes.
Now checks for the presence of A (IPv4) and AAAA (IPv6) records, allowing users to assert if their DNS configuration is correct.

The index page (which pops up a warning to look at the analytics-page if needed) now operates based on a timeout. This prevents slow DNS resolution from keeping the index-page to load in a timely manner. This functionality depends on the new feature introduced by OF-2885.
This reworks the login restrictions that can be configured on the Registration & Login page. The text area that was used to fill out _all_ IP addresses / ranges is now replaced with a table and form that takes individual IP addresses and ranges. Support for IPv6 addresses (and ranges) has been added.

All pre-existing notation forms remain functional. The wildcard-based annotation form to denote an IPv4-range (eg `198.41.100.*`) now gets translated in a CIDR variant (`198.51.100.0/24`) when saved. The wildcard notation is _not_ supported for IPv6.
This reworks the restrictions that can be configured on the Admin Console Access page. The text area that was used to fill out _all_ IP addresses / ranges is now replaced with a table and form that takes individual IP addresses and ranges. Support for IPv6 addresses (and ranges) has been added.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant