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

    Freeradius2 + CP, how to redirect output of datacoutner script to portalauth.log

    Scheduled Pinned Locked Moved pfSense Packages
    4 Posts 1 Posters 1.0k 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.
    • P Offline
      pteek
      last edited by

      Hi,

      I have the CP setup to limit users to x GBs of data with authenticate every minute enabled to kick them when the quota is over. The system tab of logs is flooded with output of datacoutner_auth.sh every minute.

      How can I:

      1. Redirect the out of datacoutner_auth.sh to the portalauth tab?

      2. Change the re-authenticate time to maybe 10 minutes?

      I changed log file in datacoutner_auth.sh script to portalauth.log like this

      Quote

      logger -f /var/log/system.log "FreeRADIUS: User $USERNAME has used $USEDOCTETSUSERNAMEMB MB of $MAXOCTETSUSERNAMEMB MB $TIMERANGE allotted traffic. The login request was accepted."

      TO

      Quote

      logger -f /var/log/portalauth.log "FreeRADIUS: User $USERNAME has used $USEDOCTETSUSERNAMEMB MB of $MAXOCTETSUSERNAMEMB MB $TIMERANGE allotted traffic. The login request was accepted."

      This has no effect at all. The messages still show up in system tab.

      1 Reply Last reply Reply Quote 0
      • P Offline
        pteek
        last edited by

        Bump. Anyone?

        1 Reply Last reply Reply Quote 0
        • P Offline
          pteek
          last edited by

          Bump. Still looking for a solution.

          1 Reply Last reply Reply Quote 0
          • P Offline
            pteek
            last edited by

            bump.

            Edit: Eve: The issue persists after a reboot. It seems like I need to call the logportalauth which is used in php. How can i call that from shell script?

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