Project

General

Profile

Feature #7416

Dhclient does not support supersede statement for option 54

Added by Fabian Kurtz 7 months ago. Updated 7 months ago.

Status:
Needs Patch
Priority:
Low
Assignee:
-
Category:
DHCP Server
Target version:
Start date:
03/21/2017
Due date:
% Done:

0%

Estimated time:
2.00 h

Description

The German cable internet provider Unitymedia uses DHCP relays which only answer to broadcasts. Dhclient renews WAN leases by sending unicasts to the relay, which doesn't forward them to the DHCP server. If, in the rebind phase, the broadcast packet is lost, the WAN IP expires, all connections are dropped and Dhclient needs to aquire a new lease. This is discussed in [[https://forum.pfsense.org/index.php?topic=127023.0]].

The problem can be avoided by setting DHCP option 54 (dhcp-server-identifier) to 255.255.255.255 via Interfaces->WAN->Advanced configuration->Option Modifiers. However, the required supersede statement for this option is not implemented in dhclient.c. Thus the DHCP client of Pfsense does not use the option and the value given by the DHCP server remains in effect (which points to the IP of the relay), which then results in the observed problem.

To solve this a section which checks if "supersede dhcp-server-identifier" is set has been added to dhclient.c (see "Start of the updated section" at line 855 in the attached file).

dhclient.c Magnifier (75.2 KB) Fabian Kurtz, 03/21/2017 08:53 AM

History

#1 Updated by Jim Pingle 7 months ago

  • Status changed from New to Needs Patch
  • Priority changed from High to Low
  • Target version changed from 2.3.4 to Future

Changes to FreeBSD should first be submitted upstream to FreeBSD.

Also available in: Atom PDF