<div dir="ltr">Hello,<div><br></div><div style>I've got a freeradius server 2.2.0 configured to process requests, and now I'd like to add some logging that would look something like this:</div><div style><br></div>
<div style>Wed May  8 14:53:16 2013 Access-Request for <a href="mailto:abcd@purdue.edu">abcd@purdue.edu</a> from MAC address (Calling-Station-Id) 84-3a-4b-0c-46-44 NAS lwsn-b143-wism2-11<br></div><div style><br></div><div style>
I actually have that working, but would like for linelog to also log a line for packet types access-challenge, access-accept, and access-reject.  My /opt/freeradius/etc/raddb/modules/linelog has:</div><div style><br></div>
<div style>reference = "%{%{Packet-Type}:-format}"</div><div><br></div><div>        #</div><div>        #  Followed by a series of log messages.</div><div>        Access-Request = "%t %{Packet-Type} for %{User-Name} from MAC address (Calling-Station-Id) %{Calling-Station-Id} NAS %{NAS-IDentifier}"</div>
<div>        Access-Reject = "Rejected access: %{User-Name} Calling-Station-Id=%{Calling-Station-Id} NAS=%{NAS-IDentifier}"</div><div>        Access-Challenge = "Sent challenge: %{User-Name} Calling-Station-Id=%{Calling-Station-Id} NAS=%{NAS-IDentifier}"</div>
<div>        Access-Accept = "Accepted access: %{User-Name} Calling-Station-Id=%{Calling-Station-Id} NAS=%{NAS-IDentifier}"</div><div><br></div><div style>That is, slight changes from the examples given.</div><div style>
<br></div><div style>I've added calls to linelog to the following sections in sites-enabled/default and sites-enabled/inner-tunnel:</div><div style>authorize</div><div style>authenticate</div><div style>preacct</div><div style>
accounting</div><div style>post-auth</div><div style><br></div></div>