proxy results in linelog
Alan DeKok
aland at deployingradius.com
Mon Dec 14 22:36:52 CET 2020
On Dec 14, 2020, at 4:25 PM, Matt Zagrabelny via Freeradius-Users <freeradius-users at lists.freeradius.org> wrote:
>
> I should have mentioned that I did put the linelong in post-proxy.
With the same configuration as for the other sections?
The "linelog" configuration has:
reference = "messages.%{%{reply:Packet-Type}:-default}"
Which if used in the "post-proxy" section, will look at the reply. Not that the *proxy* reply.
See "man unlang". You can look at "proxy-request:Packet-Type" or "proxy-reply:Packet-Type"
> I do get two messages (I've got linelog entered for both pre & post proxy):
>
> 2020-12-14 13:46:04 Access Request for user for: [bob] via client
> [192.168.0.1] from user station [68.115.93.161]
> 2020-12-14 13:46:04 Access Request for user for: [bob] via client
> [192.168.0.1] from user station [68.115.93.161]
>
> ...but, I don't see how to get the result and home server. Is my linelog
> configuration (mentioned in my initial email) interfering with the logging
> behavior you are expecting to see?
If the linelog configuration only looks at the reply for Packet-Type, then it will only print out messages for that. If you want it to look at the proxied packets, then you have to tell it to look at the proxied packets.
Alan DeKok.
More information about the Freeradius-Users
mailing list