How to store in radius.log file the ip address of the end user

Juliano julianosilva at utfpr.edu.br
Thu May 10 14:22:59 CEST 2018


Dears
I'm having a problem retrieving the ip of the end user device in the 
radius.log log file through the% {dhcp_options: DHCP-Your-IP-Address} 
attribute. Currently my freeradius is in version 3.0.15, using ldap 
authentication and other default settings. Only the dhcp module was 
configured to work as dhcp relay as follows:

dhcp {

listen {
                 ipaddr = *
                 port = 67
                 type = dhcp
                 interface = VLAN100
         }

         #  Packets received on the socket will be processed through one
         #  of the following sections, named after the DHCP packet type.
         #  See dictionary.dhcp for the packet types.
         dhcp DHCP-Discover {
                 update config {
                         # IP Address of the DHCP server
                         DHCP-Relay-To-IP-Address := x.x.x.1
                 }
                 update request {
                         # IP Address of the DHCP relay (ourselves)
                         DHCP-Gateway-IP-Address := 127.0.0.1
                 }
                 ok
         }

         dhcp DHCP-Request {
                 update config {
                         # IP Address of the DHCP server
                         DHCP-Relay-To-IP-Address := x.x.x.1
                 }
                 update request {
                         DHCP-Gateway-IP-Address := 127.0.0.1
                 }
                 ok
         }

}


However I get the error message: ERROR: dhcp_options got a ipaddr 
attribute needed octets. How can I solve this problem.

Best Regards, Juliano.



More information about the Freeradius-Users mailing list