54 lines
2 KiB
Django/Jinja
54 lines
2 KiB
Django/Jinja
{{ ansible_managed | comment }}
|
|
|
|
linelog_prefix = {{ '[%{Virtual-Server}] (session #%I)' | enquote }}
|
|
|
|
linelog_inner_prefix = {{ '${.linelog_prefix} from %{%{outer.Calling-Station-Id}:-unknown}:' | enquote }}
|
|
|
|
linelog linelog_inner_authz_user {
|
|
filename = syslog
|
|
syslog_facility = authpriv
|
|
|
|
format = {{ '${..linelog_inner_prefix} received request for "%{jsonquote:%{User-Name}}"' | enquote }}
|
|
}
|
|
|
|
linelog linelog_inner_postauth {
|
|
filename = syslog
|
|
syslog_facility = authpriv
|
|
|
|
reference = {{ 'messages.%{%{reply:Packet-Type}:-default}' | enquote }}
|
|
|
|
messages {
|
|
Access-Accept = {{ '${...linelog_inner_prefix} accepted "%{jsonquote:%{User-Name}}"' | enquote }}
|
|
Access-Reject = {{ '${...linelog_inner_prefix} rejected "%{jsonquote:%{User-Name}}" (%{%{Module-Failure-Message}:-unknown})' | enquote }}
|
|
default = {{ '${...linelog_inner_prefix} unknown packet type %{Packet-Type}' | enquote }}
|
|
}
|
|
}
|
|
|
|
linelog_outer_prefix = {{ '${.linelog_prefix} from %{%{Calling-Station-Id}:-unknown} (%{jsonquote:%{Called-Station-SSID}}) via %{NAS-IP-Address} (%{Client-Shortname}):' | enquote }}
|
|
|
|
linelog linelog_outer_authz_user {
|
|
filename = syslog
|
|
syslog_facility = authpriv
|
|
|
|
format = {{ '${..linelog_outer_prefix} received request for "%{jsonquote:%{User-Name}}"' | enquote }}
|
|
}
|
|
|
|
linelog linelog_outer_unknown_domain {
|
|
filename = syslog
|
|
syslog_facility = authpriv
|
|
|
|
format = {{ '${..linelog_outer_prefix} unknown domain "%{jsonquote:%{Stripped-User-Domain}}"' | enquote }}
|
|
}
|
|
|
|
linelog linelog_outer_postauth {
|
|
filename = syslog
|
|
syslog_facility = authpriv
|
|
|
|
reference = {{ 'messages.%{%{reply:Packet-Type}:-default}' | enquote }}
|
|
|
|
messages {
|
|
Access-Accept = {{ '${...linelog_outer_prefix} accepted "%{jsonquote:%{User-Name}}"' | enquote }}
|
|
Access-Reject = {{ '${...linelog_outer_prefix} rejected "%{jsonquote:%{User-Name}}" (%{%{Module-Failure-Message}:-unknown})' | enquote }}
|
|
default = {{ '${...linelog_outer_prefix} unknown packet type %{Packet-Type}' | enquote }}
|
|
}
|
|
}
|