* [pve-devel] IPv6 document addresses are not allowed to be configured.
@ 2026-01-20 10:24 YUAN RUI via pve-devel
0 siblings, 0 replies; only message in thread
From: YUAN RUI via pve-devel @ 2026-01-20 10:24 UTC (permalink / raw)
To: pve-devel; +Cc: YUAN RUI
[-- Attachment #1: Type: message/rfc822, Size: 10604 bytes --]
From: YUAN RUI <number201724@me.com>
To: pve-devel@lists.proxmox.com
Subject: IPv6 document addresses are not allowed to be configured.
Date: Tue, 20 Jan 2026 18:24:06 +0800
Message-ID: <e6d92a6a-5835-4494-a7ae-6dfaa9ef0136@me.com>
In some cases, users may want to use the "DOCUMENTION" address as the
internal address of NAT66.
Shouldn't a check be added here to allow the configuration of document
address?
If ULA is used, systems such as Windows and Android will not prioritize
IPv6, so some users use addresses intended for documentation purposes to
bypass this restriction.
https://git.proxmox.com/?p=pve-manager.git;a=blob;f=PVE/API2/Network.pm;h=fc053fec7a8bae6dc30d2bb2870a2a94d3420231;hb=HEAD#l588
> my $check_ipv6_settings = sub {
> my ($address, $netmask) = @_;
>
> raise_param_exc({ netmask => "$netmask is not a valid subnet
> length for ipv6" })
> if $netmask < 0 || $netmask > 128;
>
> raise_param_exc({ address => "$address is not a valid host IPv6
> address." })
> if !Net::IP::ip_is_ipv6($address);
>
> my $binip = ipv6_tobin($address);
> my $binmask = Net::IP::ip_get_mask($netmask, 6);
>
> my $type = ($binip eq $binmask) ? 'ANYCAST' :
> Net::IP::ip_iptypev6($binip);
>
> if (defined($type) && $type !~
> /^(?:(?:GLOBAL|(?:UNIQUE|LINK)-LOCAL)-UNICAST)$/) {
> raise_param_exc(
> { address => "$address with type '$type', cannot be used
> as host IPv6 address." });
> }
> };
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-01-20 10:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-20 10:24 [pve-devel] IPv6 document addresses are not allowed to be configured YUAN RUI via pve-devel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox