Hi Federico,
Thank you for your response.
1. I am using OPNsense as a captive portal. I tested logged in using a test user with 5 MB limit, use all the limit and but it does not disconnected for about 30 mins or so.
I can see the accounting is running but there is no action from radius to disconnect the user.
11) rest: --> {"username": "testvpn2", "password": "xxxxxxxxxx"}
...omitted...
(11) rest: Auth-Type := Accept
(11) rest: Parsing attribute "Reply-Message"
(11) rest: EXPAND Hello
(11) rest: --> Hello
(11) rest: Reply-Message = "Hello"
(11) rest: Parsing attribute "ChilliSpot-Max-Total-Octets"
(11) rest: EXPAND 5000000
(11) rest: --> 5000000
(11) rest: ChilliSpot-Max-Total-Octets := 5000000 <<<<< 5 MB limit,
I guess OPNsense does not understand this attribute,
Does captive portal normally understand this response attribute and will honor it by disconnecting the user if the value are over?
From openwisp doc as reference:
ChilliSpot-Max-Total-Octets used by DailyTrafficCounter, it indicates the reply attribute which is returned to the NAS to indicate how much remaining traffic users which users having the default users radius group assigned can consume.
It should be changed according to the NAS software in use, for example, if using PfSense, this setting should be set to pfSense-Max-Total-Octets.
((542) User-Name = "testvpn2"
(542) Acct-Status-Type = Interim-Update
(542) Acct-Session-Id = "iKXzJgRnCQ2VAj/cCCGqFA=="
(542) Acct-Authentic = Local
(542) Acct-Session-Time = 2703
(542) Acct-Input-Octets = 271614862
(542) Acct-Output-Octets = 86124311 <<<< counter is over
5000000 but still connected and able to reach internet.(542) Framed-IP-Address = 10.1.1.2
2. Thank you for the links, I will check it out and play around with it. If all fails, I will definitely fallback and try to use freeradius without openwisp.