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

    Captive Portal logging user twice

    Scheduled Pinned Locked Moved Captive Portal
    8 Posts 4 Posters 4.4k 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.
    • R
      Richthofen
      last edited by

      Hi folks!

      Im using PF Release-1 as CP and a freeradius + mysql box to store users names, passwords and accounting logs.
      Freeradius dialup-admin interface shows that user has 2 open sessions, what is weird ´cause username appears only 1 time in "Online Users" both in Diaulup-Admin and PFsense CP Status

      Checking detail file in freeradius box I found out that PFsense is logging the user twice as logged below.
      Two logs with same date occured at the same time.

      So, that´s the question:

      Why Pfsense CP is logging users twice and sending this information to freeradius?

      Thnx in advance

      Thu Oct 26 15:41:52 2006
              NAS-IP-Address = 192.168.253.2
              NAS-Identifier = "pfsense.hnauth.net"
              User-Name = "antonieta.s"
              Acct-Status-Type = Start
              Acct-Authentic = RADIUS
              Service-Type = Login-User
              NAS-Port-Type = Ethernet
              NAS-Port = 12
              Acct-Session-Id = "04c04ba7ca392f89"
              Framed-IP-Address = 192.168.30.248
              Called-Station-Id = "00:14:2a:1c:2a:c5"
              Calling-Station-Id = ""
              Client-IP-Address = 192.168.253.2
              Acct-Unique-Session-Id = "b90a52bc33ecd8b1"
              Timestamp = 1161888112

      Thu Oct 26 15:41:52 2006
              NAS-IP-Address = 192.168.253.2
              NAS-Identifier = "pfsense.hnauth.net"
              User-Name = "antonieta.s"
              Acct-Status-Type = Start
              Acct-Authentic = RADIUS
              Service-Type = Login-User
              NAS-Port-Type = Ethernet
              NAS-Port = 12
              Acct-Session-Id = "04c04ba7ca392f89"
              Framed-IP-Address = 192.168.30.248
              Called-Station-Id = "00:14:2a:1c:2a:c5"
              Calling-Station-Id = ""
              Client-IP-Address = 192.168.253.2
              Acct-Unique-Session-Id = "b90a52bc33ecd8b1"
              Timestamp = 1161888112

      1 Reply Last reply Reply Quote 0
      • J
        jeroen234
        last edited by

        if you look at Acct-Session-Id = "04c04ba7ca392f89" and at Acct-Unique-Session-Id = "b90a52bc33ecd8b1"

        you see that it is the same request
        that is resend

        1 Reply Last reply Reply Quote 0
        • R
          Richthofen
          last edited by

          thnx for replying jeroen234!!!
          :)

          so… is it a normal action?

          1 Reply Last reply Reply Quote 0
          • H
            hoba
            last edited by

            At least the radius server should not count it twice as it is a duplicate of the same information.

            1 Reply Last reply Reply Quote 0
            • H
              hy
              last edited by

              Hi all,

              I'm facing the same problem as Richthofen. Does anyone know what could be the problem that causes the duplication and how to solve it?

              Thanks in adv. :)

              1 Reply Last reply Reply Quote 0
              • J
                jeroen234
                last edited by

                u only get a open session if the user chanches from ip
                but normal this will will almost never happen

                1 Reply Last reply Reply Quote 0
                • H
                  hy
                  last edited by

                  Thanks for your reply. Sorry, but I don't quite get what you mean. My problem is that, the pfsense sent two similar accounting records to the Radius server eventhough only ONE user logged in. Is there a way to solve this?

                  Any help is appreciated, Thanks!

                  1 Reply Last reply Reply Quote 0
                  • H
                    hoba
                    last edited by

                    This probably is best adressed at the m0n0 mailinglist. The CP is just a port of their code. Please verify this behaviour with a recent m0n0 before posting there.

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