rlm_python: Access Request source IP Address is missing from authorize(p) function argument

Alan DeKok aland at deployingradius.com
Sat May 30 17:16:56 CEST 2020

On May 30, 2020, at 10:41 AM, Gleb Lisikh <in4bit.general at gmail.com> wrote:
> Awesome, thanks! This seems like exactly what I need, even though it is indeed a bit weird.
> Where would you suggest to insert this 'update request' piece of code?

  Anywhere before you run the "python" module.

> Would you be able to point me to the doc's describing how to work with the UDP/IP packet data? I might need to get more from the headers than just IP address.

  You can get Packet-Src-IP-Address, Packet-Src-Port, Packet-Dst-IP-Address, and Packet-Dst-Port

  I'm not sure what other fields you'd need.

  Alan DeKok.

More information about the Freeradius-Users mailing list