Hi alltogether,
i have a problem using freeradius 3 on an external server and captive portal accounting. Doing a radclient check for accounting from the shell in the opnsense machine all works fine. I see my selfmade MAC, Datarates etc.
this is my command:
radclient -f /tmp/accounting.txt -x 192.168.1.1 acct secret
accounting.txt:
1 Acct-Session-Id = "105"
2 User-Name = "jung301084"
3 NAS-IP-Address = 192.168.216.252
4 NAS-Port = 0
5 NAS-Port-Type = Ethernet
6 Acct-Status-Type = Interim-Update
7 Acct-Authentic = opnsense
8 Service-Type = Framed-User
9 Login-Service = CP
10 Login-IP-Host = 10.0.0.1
11 Acct-Delay-Time = 0
12 Acct-Session-Time = 261
13 Acct-Input-Octets = 9900909
14 Acct-Output-Octets = 10101010101
15 Called-Station-Id = 00-27-22-F3-FA-F1:hostname
16 Calling-Station-Id = 11:22:33:44:55:66
The Freeradius-Server seems to be fine.
But it does not work with the Captive Portal from opnsense. I can do authorisation, but accounting ist not working. The Captive Portal is running on a V-LAN.
Does anybody has a solution for this ??????
Regards
What do you want to achive? Daily session limit in CP? Then you have to enable it in FreeRadius plugin on General
It is already enabled. Accounting is checked to at the radius-server configuration. I need this for some security-checking-scripts (MAC,IP, etc.) and have a look at the data-volume.
It seems that opnsense does not send this informations to the radius-server, or am I wrong? ???
I'm quite sure since it works with the Radius Plugin