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

    CP problem withAmont of download and upload trafic

    Scheduled Pinned Locked Moved Captive Portal
    5 Posts 2 Posters 539 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
      fmohcine26
      last edited by

      I recently wanted to use '' Download quantity and download traffic ''
      limit the amount of traffic of each user in 1200 Mb per day
      But when i fill the box '' Quantity of download and download of traffic '' by the number volus: 1200
      this user account no longer works, while all other accounts are working properly
      Things are fine when I delete the number of traffic in the box.
      in pictures all the manipulations I made;
      I added a cronjobe << 0 0 * * * root / bin / rm / var / log / radacct / datacounter / day / used-bytes - * >>
      thank you for help
      accounti.png
      accounti.png_thumb
      disabl.png
      disabl.png_thumb
      PrUserBandw.png
      PrUserBandw.png_thumb
      TraficAndBandw.png
      TraficAndBandw.png_thumb

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

        Hi,

        Your first image mentions that you set up your captive portal (as a radius client) so it send accounting info to the radius server.
        On the Radius server setup, tab Interfaces, did you setup a listening interface type "Accounting" - port 1813 ?
        Like (see image).

        Btw : I'm using MySQL (MariadDB to be exact) myself, so I can check tables and the sqltrace.log. This shows me that radius is receiving the accounting info and updates.
        To see what happens, stop the radius seveice in the pfSense GUI.
        Then using the console access, access SSH and launch radiusd manually in debug mode :

        radiusd -X
        

        Now you can see what happens, and check.

        edit : check also this one :

        tail -f  /var/log/radacct/192.168.2.1/detail-20180419
        

        where "192.168.2.1" is your NAS IP - and 20180419 the date

        less600.PNG
        less600.PNG_thumb

        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
        • F
          fmohcine26
          last edited by

          I can not find the tab Accounting interim interval.
            here is the inglete of the interface configuration

          FreeRadiusEditInterfacesAcc.unting.png
          FreeRadiusEditInterfacesAcc.unting.png_thumb
          CPaCCOUNTING.png
          CPaCCOUNTING.png_thumb

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

            @fmohcine26:

            I can not find the tab Accounting interim interval.

            On the Users tab, last line.

            Interfaces :
            You have a setup for port 1812 (authentication - address : *") and port 1813 (accounting - make that also address *") ?
            Like image

            statusrad.PNG
            statusrad.PNG_thumb

            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
            • F
              fmohcine26
              last edited by

              yes, it is configured
              the broblem is solved,

              ![Screenshot-2018-4-19 pro4545 electropro4545 click - Package FreeRADIUS Interfaces Interfaces.png](/public/imported_attachments/1/Screenshot-2018-4-19 pro4545 electropro4545 click - Package FreeRADIUS Interfaces Interfaces.png)
              ![Screenshot-2018-4-19 pro4545 electropro4545 click - Package FreeRADIUS Interfaces Interfaces.png_thumb](/public/imported_attachments/1/Screenshot-2018-4-19 pro4545 electropro4545 click - Package FreeRADIUS Interfaces Interfaces.png_thumb)
              accBand.png
              accBand.png_thumb

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