feat(freeradius): set client-specific accounting intervals

- Set 60s interim updates for engineers
- Set 300s interim updates for devices
This commit is contained in:
2026-09-16 18:17:55 +02:00
parent 728b99e138
commit b7034c733d
+13 -1
View File
@@ -802,15 +802,27 @@ post-auth {
# sqlippool # sqlippool
# Engineers → dynamic IP # Engineers → dynamic IP
# #
if (&control:Pool-Name =~ /^engineers-/) { if (&control:Pool-Name =~ /^engineers-/) {
update reply { update reply {
Session-Timeout := 3600 Session-Timeout := 3600
Acct-Interim-Interval := 60
} }
sqlippool sqlippool
} }
#
# Devices → fixed IP
# authorize --> post-auth: reuse Tmp-String-1
elsif (&control:Tmp-String-1 == "device") {
update reply {
Acct-Interim-Interval := 300
}
}
# #
# HARD CHECK: must have IP # HARD CHECK: must have IP
# #