Skip to content

fix: [IPv6 Port Service] IPv6 address validation rules need review for accepted address ranges #754

Description

@PeterJhongLinksys

Description

The IPv6 address validation on the IPv6 Port Service page may be overly restrictive or have gaps. The current rules need review to ensure the accepted address ranges match the actual product requirements.

Current Validation

The service (lib/page/ipv6_port_service/services/usp_ipv6_port_service_service.dart:167) applies two validation layers:

  1. IPv6Rule (lib/validator_rules/rules.dart:161) — basic format check using regex + Uri.parseIPv6Address()
  2. IPv6WithReservedRule (lib/validator_rules/rules.dart:199) — rejects reserved ranges and only allows Global Unicast addresses (2000::/3, first byte 0x200x3F)

Rejected ranges include: loopback (::1), link-local (fe80::/10), multicast (ff00::/8), ULA (fc00::/7), unspecified (::), deprecated 6bone (3ffe::/16), and unallocated (5f00:: to 7fff::).

Expected Behavior

Review and confirm whether the accepted IPv6 address ranges align with the intended use cases for port service rules. Adjust validation if certain address types should be permitted.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions