How to get client IP address/target port in python code

Dmitriy Golubev golubev.dmitriy at gmail.com
Wed May 8 11:37:52 CEST 2019


Good day!

I use rlm_python plugin to add custom logic to the Freeradius.
For logging purposes I want to know client IP address and target port.
I check source code of freeradius and found that its possible to
obtain this information from request structure. However I can't find
how to get it from python code.

Is it possible?

Thanks


More information about the Freeradius-Users mailing list