2023-06-25 00:27:08 +02:00
|
|
|
{{ ansible_managed | comment }}
|
|
|
|
|
2023-06-25 19:25:50 +02:00
|
|
|
linelog_prefix = {{ '[%{Virtual-Server}] (session #%I)' | enquote }}
|
|
|
|
|
|
|
|
linelog_inner_prefix = {{ '${.linelog_prefix} from %{%{outer.Calling-Station-Id}:-unknown}:' | enquote }}
|
|
|
|
|
|
|
|
linelog linelog_inner_authz_user {
|
2023-06-25 00:27:08 +02:00
|
|
|
filename = syslog
|
|
|
|
syslog_facility = authpriv
|
|
|
|
|
2023-06-25 19:25:50 +02:00
|
|
|
format = {{ '${..linelog_inner_prefix} received request for "%{jsonquote:%{User-Name}}"' | enquote }}
|
|
|
|
}
|
|
|
|
|
|
|
|
linelog linelog_inner_postauth {
|
|
|
|
filename = syslog
|
|
|
|
syslog_facility = authpriv
|
2023-06-25 00:27:08 +02:00
|
|
|
|
2023-06-25 19:25:50 +02:00
|
|
|
reference = {{ 'messages.%{%{reply:Packet-Type}:-default}' | enquote }}
|
2023-06-25 00:27:08 +02:00
|
|
|
|
|
|
|
messages {
|
2023-07-02 16:45:32 +02:00
|
|
|
Access-Accept = {{ '${...linelog_inner_prefix} accepted "%{jsonquote:%{User-Name}}" (VLAN %{reply:Tunnel-Private-Group-Id})' | enquote }}
|
2023-06-25 19:25:50 +02:00
|
|
|
Access-Reject = {{ '${...linelog_inner_prefix} rejected "%{jsonquote:%{User-Name}}" (%{%{Module-Failure-Message}:-unknown})' | enquote }}
|
|
|
|
default = {{ '${...linelog_inner_prefix} unknown packet type %{Packet-Type}' | enquote }}
|
2023-06-25 00:27:08 +02:00
|
|
|
}
|
2023-06-25 19:25:50 +02:00
|
|
|
}
|
2023-06-25 00:27:08 +02:00
|
|
|
|
2023-07-02 16:45:32 +02:00
|
|
|
linelog_outer_prefix = {{ '${.linelog_prefix} from %{%{Calling-Station-Id}:-unknown} ("%{jsonquote:%{Called-Station-SSID}}") via %{NAS-IP-Address} (%{Client-Shortname}):' | enquote }}
|
2023-06-25 19:25:50 +02:00
|
|
|
|
|
|
|
linelog linelog_outer_authz_user {
|
|
|
|
filename = syslog
|
|
|
|
syslog_facility = authpriv
|
|
|
|
|
|
|
|
format = {{ '${..linelog_outer_prefix} received request for "%{jsonquote:%{User-Name}}"' | enquote }}
|
2023-06-25 00:27:08 +02:00
|
|
|
}
|
|
|
|
|
2023-06-25 19:25:50 +02:00
|
|
|
linelog linelog_outer_unknown_domain {
|
2023-06-25 00:27:08 +02:00
|
|
|
filename = syslog
|
|
|
|
syslog_facility = authpriv
|
|
|
|
|
2023-06-25 19:25:50 +02:00
|
|
|
format = {{ '${..linelog_outer_prefix} unknown domain "%{jsonquote:%{Stripped-User-Domain}}"' | enquote }}
|
|
|
|
}
|
2023-06-25 00:27:08 +02:00
|
|
|
|
2023-06-25 19:25:50 +02:00
|
|
|
linelog linelog_outer_postauth {
|
|
|
|
filename = syslog
|
|
|
|
syslog_facility = authpriv
|
2023-06-25 00:27:08 +02:00
|
|
|
|
2023-06-25 19:25:50 +02:00
|
|
|
reference = {{ 'messages.%{%{reply:Packet-Type}:-default}' | enquote }}
|
2023-06-25 00:27:08 +02:00
|
|
|
|
2023-06-25 19:25:50 +02:00
|
|
|
messages {
|
2023-07-02 16:45:32 +02:00
|
|
|
Access-Accept = {{ '${...linelog_outer_prefix} accepted "%{jsonquote:%{User-Name}}" (VLAN %{reply:Tunnel-Private-Group-Id})' | enquote }}
|
2023-06-25 19:25:50 +02:00
|
|
|
Access-Reject = {{ '${...linelog_outer_prefix} rejected "%{jsonquote:%{User-Name}}" (%{%{Module-Failure-Message}:-unknown})' | enquote }}
|
|
|
|
default = {{ '${...linelog_outer_prefix} unknown packet type %{Packet-Type}' | enquote }}
|
2023-06-25 00:27:08 +02:00
|
|
|
}
|
|
|
|
}
|