Freeradius 3 Accounting is not working

Started by jung301084, February 27, 2018, 03:56:59 PM

Previous topic - Next topic
February 27, 2018, 03:56:59 PM Last Edit: February 28, 2018, 02:06:05 PM by jung301084
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

February 28, 2018, 01:58:17 PM #2 Last Edit: February 28, 2018, 02:00:05 PM by jung301084
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? ???