Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Radius traffic shaping not updating octet count

    Scheduled Pinned Locked Moved Captive Portal
    7 Posts 6 Posters 3.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      FIASJason
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • E
        eri--
        last edited by

        Are you using squid by any chance?

        1 Reply Last reply Reply Quote 0
        • F
          FIASJason
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • D
            DaddyJ
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • A
              artiteo
              last edited by

              does anybody solve this problem ?
              i have same issue here

              1 Reply Last reply Reply Quote 0
              • N
                nicksmithgreenpeace
                last edited by

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

                1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan
                  last edited by

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

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.