feat(freeradius): set client-specific accounting intervals
- Set 60s interim updates for engineers - Set 300s interim updates for devices
This commit is contained in:
@@ -807,10 +807,22 @@ post-auth {
|
|||||||
|
|
||||||
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
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user