From 3c3691933b9e9a865b17a2a8e9efab246bb6be29 Mon Sep 17 00:00:00 2001 From: Matthew Newton Date: Fri, 14 Mar 2014 14:21:46 +0000 Subject: [PATCH] Add more incoming DHCP packet types to config --- raddb/sites-available/dhcp | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/raddb/sites-available/dhcp b/raddb/sites-available/dhcp index 91f8d3900726..c4b9ebac44fa 100644 --- a/raddb/sites-available/dhcp +++ b/raddb/sites-available/dhcp @@ -204,15 +204,30 @@ dhcp DHCP-Request { } # -# There should be a separate section for each DHCP message type. +# Other DHCP packet types # +# There should be a separate section for each DHCP message type. +# By default this configuration will ignore them all. Any packet type +# not defined here will be responded to with a DHCP-NAK. + +dhcp DHCP-Decline { + update reply { + DHCP-Message-Type = DHCP-Do-Not-Respond + } + reject +} + dhcp DHCP-Inform { - # The DHCP-Message-Type attribute will tell the server which - # type of packet to respond with. If this is not set, then - # "handled" will not return a response, whereas all other - # rcodes will return a "NAK". - # - # Send a DHCP NAK. + update reply { + DHCP-Message-Type = DHCP-Do-Not-Respond + } + reject +} + +dhcp DHCP-Release { + update reply { + DHCP-Message-Type = DHCP-Do-Not-Respond + } reject }