Bug 57368 - Duplicate assignment of IPv6 addresses is possible.
Duplicate assignment of IPv6 addresses is possible.
Status: NEW
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2024-05-29 15:11 CEST by Johannes Königer
Modified: 2024-05-29 15:20 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.023
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): IPv6
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Königer univentionstaff 2024-05-29 15:11:04 CEST
UDM does not prevent the user from assigning the same IPv6 address to multiple computers, as it does with IPv4.

Script to recreate the situation:

```bash

udm dns/forward_zone create --position cn=dns,dc=uttuusch,dc=intranet --set zone=test.test --set nameserver=testserver
udm dns/reverse_zone create --position cn=dns,dc=uttuusch,dc=intranet --set subnet=2001:0001:0002:0004 --set nameserver=testserver2
udm dhcp/service create --set service=testservice

udm networks/network create --set name=testnetwork --set network=2001:1:2:4:: --set netmask=64 --set dnsEntryZoneForward=zoneName=test.test,cn=dns,dc=uttuusch,dc=intranet --set dnsEntryZoneReverse=zoneName=4.0.0.0.2.0.0.0.1.0.0.0.1.0.0.2.ip6.arpa,cn=dns,dc=uttuusch,dc=intranet --set dhcpEntryZone=cn=testservice,dc=uttuusch,dc=intranet --set 'ipRange=2001:1:2:4::2 2001:1:2:4:0:ffff:ffff:ffff'

udm computers/ubuntu create --set mac=01:23:45:67:89:ad --set name=myubuntu1 --set ip=2001:0001:0002:0004:0000:ffff:ffff:1343 --set network=cn=testnetwork,dc=uttuusch,dc=intranet

udm computers/ubuntu create --set mac=01:23:45:67:89:ae --set name=myubuntu2 --set ip=2001:0001:0002:0004:0000:ffff:ffff:1343 --set network=cn=testnetwork,dc=uttuusch,dc=intranet

udm computers/ubuntu list | grep -E '(ip:|DN:)'

DN: cn=myubuntu1,dc=uttuusch,dc=intranet
  ip: 2001:0001:0002:0004:0000:ffff:ffff:1343
DN: cn=myubuntu2,dc=uttuusch,dc=intranet
  ip: 2001:0001:0002:0004:0000:ffff:ffff:1343

```

For IPv4 addresses, this will result in an error of the form "IP address is already in use: [...]."