Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 1573009 - dhcpd raw socket not listening on local-address
Summary: dhcpd raw socket not listening on local-address
Alias: None
Product: Fedora
Classification: Fedora
Component: dhcpcd
Version: 27
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Pavel Šimerda
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2018-04-29 17:42 UTC by Eric Lajoie
Modified: 2018-11-30 23:37 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-11-30 23:37:53 UTC
Type: Bug

Attachments (Terms of Use)

Description Eric Lajoie 2018-04-29 17:42:43 UTC
Description of problem:
local-address; setting in /etc/dhcp/dhcpd.conf makes the dhcpd service listen on but the raw socket still listens on all interfaces.

Version-Release number of selected component (if applicable):

How reproducible:
Install F27
Install dhcpd
Use this config file:
option domain-name     "lajoie.org";
option domain-name-servers;
default-lease-time 600;
max-lease-time 7200;
subnet netmask {
    range dynamic-bootp;
    option broadcast-address;
    option routers;
    option interface-mtu 1452;

Steps to Reproduce:
1. systemctl enable dhcpd.service
2. systemctl start dhcpd.service
3. ss -4lnp | grep dhcpd

Actual results:
raw        UNCONN       0            0               
udp        UNCONN       12183        0              

Expected results:
raw        UNCONN       0            0               
udp        UNCONN       12183        0              

Additional info:
The raw socket should only listen off the interface which DHCPD is serving.

Comment 1 Richard D Alloway 2018-11-02 18:55:25 UTC
Hi Eric!

This is not actually a problem.

DHCPd *should* be listening to the "all balls" address because the daemon needs direct, unrestricted access to the packets on the network.  If the raw socket is bound to a particular IP, the kernel may (or may not) limit which packets are presented to the daemon.

DHCPd very quickly examines and discards any packets that it does not need to process when packets are received.

Without listening on, packets from unconfigured or partially configured clients may not be exposed to DHCPd, breaking the functionality of the service.  

If you need to prevent DHCPd from listening to, you can compile the software to no use raw sockets, but you will need a DHCP relay that does use raw sockets to proxy the packets to/from the clients.

See also :

-Rich Alloway (Rogue Wave)

Comment 2 Ben Cotton 2018-11-27 13:41:04 UTC
This message is a reminder that Fedora 27 is nearing its end of life.
On 2018-Nov-30  Fedora will stop maintaining and issuing updates for
Fedora 27. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora  'version' of '27'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 27 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Ben Cotton 2018-11-30 23:37:53 UTC
Fedora 27 changed to end-of-life (EOL) status on 2018-11-30. Fedora 27 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this

Thank you for reporting this bug and we are sorry it could not be fixed.

Note You need to log in before you can comment on or make changes to this bug.