diff --git a/radiuscontroller/Services/RadiusService.cs b/radiuscontroller/Services/RadiusService.cs index 442a0fb..fc696c9 100644 --- a/radiuscontroller/Services/RadiusService.cs +++ b/radiuscontroller/Services/RadiusService.cs @@ -126,6 +126,24 @@ public class RadiusService : IRadiusService Value = maxOctetsBytes.ToString() }); + // Force NAS to send accounting interim-updates every 60 seconds + _db.RadReply.Add(new RadReply + { + Username = username, + Attribute = "Acct-Interim-Interval", + Op = "=", + Value = "60" + }); + + // Re-authenticate (instead of disconnect) when Session-Timeout fires + _db.RadReply.Add(new RadReply + { + Username = username, + Attribute = "Termination-Action", + Op = "=", + Value = "1" + }); + // Create Guest Profile record var profile = new GuestProfile {