OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: jung301084 on February 27, 2018, 03:56:59 pm

Title: Freeradius 3 Accounting is not working
Post by: jung301084 on February 27, 2018, 03:56:59 pm
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:
Code: [Select]
  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
Title: Re: Freeradius 3 Accounting is not working
Post by: mimugmail on February 27, 2018, 04:56:35 pm
What do you want to achive? Daily session limit in CP? Then you have to enable it in FreeRadius plugin on General
Title: Re: Freeradius 3 Accounting is not working
Post by: jung301084 on February 28, 2018, 01:58:17 pm
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? ???
Title: Re: Freeradius 3 Accounting is not working
Post by: mimugmail on February 28, 2018, 03:11:59 pm
I'm quite sure since it works with the Radius Plugin