Bug 36648 - First address > last address in dynamic subnet
First address > last address in dynamic subnet
Status: RESOLVED DUPLICATE of bug 33211
Product: UCS
Classification: Unclassified
Component: UMC - DHCP
UCS 5.0
Other Linux
: P5 minor (vote)
: ---
Assigned To: UMC maintainers
:
: 42659 47411 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-13 15:35 CET by Philipp Hahn
Modified: 2021-04-27 11:13 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.086
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018071921000273
Bug group (optional): Error handling, External feedback, Troubleshooting
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2014-11-13 15:35:54 CET
A dynamic IPv4 address range with first address > last address for a DHCP subnet can be created. This seems to even work, but should probably be prohibited as the ranges are then inverted.
Comment 1 Philipp Hahn univentionstaff 2016-10-31 13:56:49 CET
*** Bug 42659 has been marked as a duplicate of this bug. ***
Comment 2 Florian Best univentionstaff 2016-11-01 10:56:54 CET
(In reply to Philipp Hahn from comment #1)
> *** Bug 42659 has been marked as a duplicate of this bug. ***

(In reply to Philipp Hahn from Bug 42659 comment #0)
> univention-install univention-dhcp
> DN1 () { sed -ne 's/^DN: //p;T;q';}
> service="$(udm dhcp/service list|DN1)"
> subnet="$(udm dhcp/subnet list --superordinate "$service"|DN1)"
> net="$(udm dhcp/subnet list --superordinate "$service"|sed -ne 's/^  subnet:
> //;T;s/\.[0-9]*$//p;q')"
> udm dhcp/subnet modify --dn "$subnet" --append range="$net.254 $net.2"
> 
> dhcpd doesn't complain, but the range is actually empty. UMC should detect
> this and warn <admin/handlers/dhcp/subnet.py#_ldap_modlist>.
> BTW: high-address is optional.
Comment 3 Philipp Hahn univentionstaff 2018-07-30 11:58:57 CEST
Also first=last ?
Comment 4 Philipp Hahn univentionstaff 2018-07-30 11:59:00 CEST
*** Bug 47411 has been marked as a duplicate of this bug. ***
Comment 5 Stefan Gohmann univentionstaff 2019-01-03 07:18:17 CET
This issue has been filled against UCS 4.0. The maintenance with bug and security fixes for UCS 4.0 has ended on 31st of May 2016.

Customers still on UCS 4.0 are encouraged to update to UCS 4.3. Please contact
your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.
Comment 7 Philipp Hahn univentionstaff 2021-04-27 11:13:05 CEST
Fixed with git:e99bd11dee6dce995581d2759bfe5543c8df3da7 through Bug #33211 since November 2016

> Die folgenden Eigenschaften konnten nicht validiert werden:
> Dynamische Adresszuweisung:
> Illegal range

*** This bug has been marked as a duplicate of bug 33211 ***