DHCP relay - process replies (DHCP-Offer, DHCP-Ack...)

Chaigneau, Nicolas nicolas.chaigneau at capgemini.com
Thu Oct 12 16:09:40 CEST 2017


> > But in the virtual server configuration, the giaddr is supposed to be changed:
> > 
> > 		update request {
> > 			# IP Address of the DHCP relay (ourselves)
> > 			&DHCP-Gateway-IP-Address := 10.11.19.12
> > 		}
> 
>   That should work...  the code path isn't complicated.
> 
> > This doesn't work, however. The network capture shows that giaddr was not changed in the relayed packet.
> > I thought maybe it's because "request" is the initial packet received, so I need to update the "proxy request".
> 
>   No, the DHCP relay forwards the original request.  It's all a bit backwards.
> 
> > What is the correct way to have FreeRADIUS behave as a DHCP relay ?
> 
>   It should work.  What does the debug output show?
> 


Here goes.


Thu Oct 12 16:08:18 2017 : Debug: (1) Received code 1025 Id 1 from 10.11.19.3:67 to 10.11.19.12:67 length 300
Thu Oct 12 16:08:18 2017 : Debug: (1)   DHCP-Opcode = Client-Message
Thu Oct 12 16:08:18 2017 : Debug: (1)   DHCP-Hardware-Type = Ethernet
Thu Oct 12 16:08:18 2017 : Debug: (1)   DHCP-Hardware-Address-Length = 6
Thu Oct 12 16:08:18 2017 : Debug: (1)   DHCP-Hop-Count = 1
Thu Oct 12 16:08:18 2017 : Debug: (1)   DHCP-Transaction-Id = 1
Thu Oct 12 16:08:18 2017 : Debug: (1)   DHCP-Number-of-Seconds = 0
Thu Oct 12 16:08:18 2017 : Debug: (1)   DHCP-Flags = 0
Thu Oct 12 16:08:18 2017 : Debug: (1)   DHCP-Client-IP-Address = 0.0.0.0
Thu Oct 12 16:08:18 2017 : Debug: (1)   DHCP-Your-IP-Address = 0.0.0.0
Thu Oct 12 16:08:18 2017 : Debug: (1)   DHCP-Server-IP-Address = 0.0.0.0
Thu Oct 12 16:08:18 2017 : Debug: (1)   DHCP-Gateway-IP-Address = 10.11.19.3
Thu Oct 12 16:08:18 2017 : Debug: (1)   DHCP-Client-Hardware-Address = 44:48:42:00:01:01
Thu Oct 12 16:08:18 2017 : Debug: (1)   DHCP-Message-Type = DHCP-Discover
Thu Oct 12 16:08:18 2017 : Debug: Trying sub-section dhcp DHCP-Discover {...}
Thu Oct 12 16:08:18 2017 : Debug: (1)   dhcp DHCP-Discover {
Thu Oct 12 16:08:18 2017 : Debug: (1)     update config {
Thu Oct 12 16:08:18 2017 : Debug: (1)       &DHCP-Relay-To-IP-Address := 10.11.19.28
Thu Oct 12 16:08:18 2017 : Debug: (1)     } # update config = noop
Thu Oct 12 16:08:18 2017 : Debug: (1)     update request {
Thu Oct 12 16:08:18 2017 : Debug: (1)       &DHCP-Gateway-IP-Address := 10.11.19.12
Thu Oct 12 16:08:18 2017 : Debug: (1)       Overwriting value "10.11.19.3" with "10.11.19.12"
Thu Oct 12 16:08:18 2017 : Debug: (1)     } # update request = noop
Thu Oct 12 16:08:18 2017 : Debug: (1)     modsingle[post-auth]: calling ok (rlm_always)
Thu Oct 12 16:08:18 2017 : Debug: (1)     modsingle[post-auth]: returned from ok (rlm_always)
Thu Oct 12 16:08:18 2017 : Debug: (1)     [ok] = ok
Thu Oct 12 16:08:18 2017 : Debug: (1)   } # dhcp DHCP-Discover = ok
Sending DHCP-Discover Id 00000001 from 10.11.19.12:67 to 10.11.19.28:67
Thu Oct 12 16:08:18 2017 : Debug: (1) Not sending reply to client.
Thu Oct 12 16:08:18 2017 : Debug: (1) Finished request
Thu Oct 12 16:08:18 2017 : Debug: (1) Cleaning up request packet ID 1 with timestamp +24
Thu Oct 12 16:08:18 2017 : Info: Ready to process requests






This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.



More information about the Freeradius-Users mailing list