From d1b93191e153df23246fd66ad2e3cc179fbd3db8 Mon Sep 17 00:00:00 2001 From: Tygozwolle Date: Fri, 24 Jul 2026 17:13:44 +0200 Subject: [PATCH] feat: implement RadiusService for guest user management, session monitoring, and configuration handling --- radiuscontroller/Services/RadiusService.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 {