read value of host-ip in perl-module (freeRADIUS 2.2.0)

Wolfgang Burger burgerw at
Wed Feb 27 13:02:29 CET 2013

Dear people,

as you can see in this Access-Request:

rad_recv: Access-Request packet from host port 65201, id=37,  
        User-Name = "test"
        User-Password = "testpass"
        NAS-IP-Address =
        NAS-Port-Type = Virtual
        NAS-Port = 1228
        Calling-Station-Id = ""
        Service-Type = Login-User

the client is entering incorrect data into the field "Calling-Station- 
In the setup used, it should not differ from the host.
But "" != ""

Authentication is handled by a perl-module.
The outcome of the module depends on the host sending the packet.

How (if at all) can I access the value of "host" ( in the  
example above) from within the perl-module?

Many thanks and best regards,

More information about the Freeradius-Users mailing list