OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • Freeradius 3 Accounting is not working
« previous next »
  • Print
Pages: [1]

Author Topic: Freeradius 3 Accounting is not working  (Read 2407 times)

jung301084

  • Newbie
  • *
  • Posts: 14
  • Karma: 1
    • View Profile
Freeradius 3 Accounting is not working
« 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
« Last Edit: February 28, 2018, 02:06:05 pm by jung301084 »
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6302
  • Karma: 434
    • View Profile
Re: Freeradius 3 Accounting is not working
« Reply #1 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
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

jung301084

  • Newbie
  • *
  • Posts: 14
  • Karma: 1
    • View Profile
Re: Freeradius 3 Accounting is not working
« Reply #2 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? ???
« Last Edit: February 28, 2018, 02:00:05 pm by jung301084 »
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6302
  • Karma: 434
    • View Profile
Re: Freeradius 3 Accounting is not working
« Reply #3 on: February 28, 2018, 03:11:59 pm »
I'm quite sure since it works with the Radius Plugin
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • Freeradius 3 Accounting is not working
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2