Bug 986947

Summary: RFE firewalld: add service for dhcp/proxy-dhcp server
Product: [Fedora] Fedora Reporter: Stefan Assmann <sassmann>
Component: firewalldAssignee: Thomas Woerner <twoerner>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 19CC: jpopelka, sassmann, twoerner
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: firewalld-0.3.4-1.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-04 00:09:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stefan Assmann 2013-07-22 13:25:53 UTC
Description of problem:
Please add a service file for dhcp-server
dhcp: port 67 udp
proxydhcp: port 4011 udp

Proxydhcp is useful for pxe environments.
http://en.wikipedia.org/wiki/Preboot_Execution_Environment

Version-Release number of selected component (if applicable):
firewalld-0.3.3-2.fc19.noarch

Comment 1 Jiri Popelka 2013-07-25 11:13:55 UTC
Hi Stefan,

(In reply to Stefan Assmann from comment #0)
> Please add a service file for dhcp-server
> dhcp: port 67 udp

In bug #917866, comment #1 I wrote:
I don't think we need the same for DHCPv4 server because ISC DHCP(v4) makes use of raw sockets which bypass firewall completely, see
https://deepthought.isc.org/article/AA-00378/0/Why-does-DHCP-use-raw-sockets.html

> proxydhcp: port 4011 udp

Yes, I can add it, but are you sure it's actually needed and it's not the same case as pure DHCPv4 ?

Comment 2 Stefan Assmann 2013-07-25 11:52:40 UTC
Hi Jiri,

in my testing for PXE it actually makes a difference, I have
# firewall-cmd --list-ports
69/udp 67/udp 4011/udp

67 is for dhcp
69 is for tftp
4011 is for proxy-dhcp

If I remove port 67 and I try to PXE boot a client exactly nothing happens.
And if I remove 4011 it breaks as well.

Note: I'm using dnsmasq + tftp here. Maybe it's different for dhcpd?

Alternatively, we could name it pxe-server instead of dhcp-server. What do you think?

Comment 3 Jiri Popelka 2013-07-25 12:03:16 UTC
(In reply to Stefan Assmann from comment #2)
> If I remove port 67 and I try to PXE boot a client exactly nothing happens.
> And if I remove 4011 it breaks as well.
> Note: I'm using dnsmasq + tftp here. Maybe it's different for dhcpd?

Ok, thanks, that's sufficient.
It looks like we need both of them then.

Comment 5 Fedora Update System 2013-07-30 19:14:15 UTC
firewalld-0.3.4-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/firewalld-0.3.4-1.fc19

Comment 6 Fedora Update System 2013-08-02 03:49:06 UTC
Package firewalld-0.3.4-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing firewalld-0.3.4-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-14046/firewalld-0.3.4-1.fc19
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-08-04 00:09:41 UTC
firewalld-0.3.4-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.