Radius traffic shaping not updating octet count



  • We are using CP + Freeradius with local users to provide internet access to a group of users. We would like to limit the daily download quota for these users, but after following the steps in http://doc.pfsense.org/index.php/FreeRADIUS_2.x_package#Accounting_with_Captive_Portal it seems that the octet count is not updating.

    FreeRadius:
    Amount of download/upload traffic: 20MB
    Time Period: daily
    All other settings default or blank.

    Captive Portal:
    Idle timeout: 60 minutes
    Enable logout popup window: checked
    Disable concurrent logins: checked
    Authentication: Radius (IP address 127.0.0.1, default port)
    Send Radius accounting packets: checked, default port
    Reauthenticate connected users every minute: checked
    Accounting updates: stop/start accounting
    All other settings default or blank

    FreeRadius log entries:
    Jul 17 10:11:02 root: FreeRADIUS: Used amount of daily traffic by test is 0 MB of 20 MB! The user was accepted!!!
    Jul 17 10:11:02 radiusd[33703]: Login OK: [test] (from client pfsense port 4 cli 00:26:c7:53:69:e4)
    Jul 17 10:11:02 radiusd[33703]: Login OK: [test] (from client pfsense port 4 cli 00:26:c7:53:69:e4)
    Jul 17 10:09:49 root: FreeRADIUS: Used amount of daily traffic by test is 0 MB of 20 MB! The user was accepted!!!
    Jul 17 10:09:49 radiusd[33703]: Login OK: [test] (from client pfsense port 4 cli 00:26:c7:53:69:e4)
    Jul 17 10:09:49 radiusd[33703]: Login OK: [test] (from client pfsense port 4 cli 00:26:c7:53:69:e4)
    Jul 17 10:08:37 root: FreeRADIUS: Used amount of daily traffic by test is 0 MB of 20 MB! The user was accepted!!!
    Jul 17 10:08:37 radiusd[33703]: Login OK: [test] (from client pfsense port 4 cli 00:26:c7:53:69:e4)
    Jul 17 10:08:37 radiusd[33703]: Login OK: [test] (from client pfsense port 4 cli 00:26:c7:53:69:e4)
    Jul 17 10:07:25 root: FreeRADIUS: Used amount of daily traffic by test is 0 MB of 20 MB! The user was accepted!!!
    Jul 17 10:07:25 radiusd[33703]: Login OK: [test] (from client pfsense port 4 cli 00:26:c7:53:69:e4)
    Jul 17 10:07:25 radiusd[33703]: Login OK: [test] (from client pfsense port 4 cli 00:26:c7:53:69:e4)
    Jul 17 10:07:24 root: FreeRADIUS: Used amount of daily traffic by test is 0 MB of 20 MB! The user was accepted!!!
    Jul 17 10:07:24 radiusd[33703]: Login OK: [test] (from client pfsense port 6 cli 00:26:c7:53:69:e4)
    Jul 17 10:07:24 radiusd[33703]: Login OK: [test] (from client pfsense port 6 cli 00:26:c7:53:69:e4)
    Jul 17 10:06:20 root: FreeRADIUS: Used amount of daily traffic by test is 0 MB of 20 MB! The user was accepted!!!

    These entries were logged while downloading a 15MB file.

    Any assistance would be appreciated.



  • Are you using squid by any chance?



  • @ermal:

    Are you using squid by any chance?

    Yes, it is being used to limit the file download size.

    Allow users on interface: checked
    Transparent proxy: checked
    Maximum download and upload size set to 51200/10240.



  • I know this is an old thread - but wondering if you managed to get this resolved? I am getting the exact same issue. I had squid but removed it. Issue still occurs.



  • does anybody solve this problem ?
    i have same issue here



  • Having the same issue.
    Any one found a solution for this ?



  • Probably a case of : Captive portal + squid = no joy.
    Check out other (recent) squid related messages.