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

Bulk adding local users…

Scheduled Pinned Locked Moved Captive Portal
9 Posts 3 Posters 7.6k 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.
  • B
    bushtor
    last edited by Mar 21, 2007, 1:18 PM

    Hi,

    Does it exist a way to bulk adding local users from, say a csv file? Has anybody made a script for this purpose…?

    If I enable the captive portal feature, can I have logs or status info which links authenticated users to IP or MAC addresses?

    regards

    Tor

    1 Reply Last reply Reply Quote 0
    • B
      bushtor
      last edited by Mar 22, 2007, 12:04 AM

      Hi again,

      Is the answer no and no to these two questions, or can someony confirm / deny atleast the last one.  I'm very interested in knowing if it is possible to get a given cp user's IP address…

      Thanks anyway ,-)

      Tor

      1 Reply Last reply Reply Quote 0
      • H
        hoba
        last edited by Mar 22, 2007, 12:37 AM

        No, there is no import script for this. When dealing with a larger amont of users you probably want to use a radius server.

        You get some details about CP logins at status>systemlogs, portal auth.

        1 Reply Last reply Reply Quote 0
        • B
          bushtor
          last edited by Mar 27, 2007, 11:14 AM

          Hoba,

          Unfortunately my pfsense box is in production, so currently I cannot check which captive portal data I will find in the system logs.

          Thanks a lot if you or someone else who is using captive portal would be willing to give me a few details on which properties in addition to the username I will find in these logs.  If possible a screenshot would be fine.

          I'm particulary interested in if the user's IP or MAC address is associated with the username, or if there are other logs where I can find an association between username and workstation data (netbios name and network addresses).

          Thanks again for feedback on this

          regards

          Tor

          1 Reply Last reply Reply Quote 0
          • H
            hoba
            last edited by Mar 27, 2007, 2:27 PM

            You get something like the following:

            …
            Mar 13 18:03:44 logportalauth[11031]: LOGIN: hotspot, 00:13:ce:ef:99:d6, 192.168.201.249
            Mar 13 00:59:26 logportalauth[34493]: TIMEOUT: hotspot, 00:19:7d:48:7d:1f, 192.168.201.248
            Mar 13 00:42:15 logportalauth[33190]: TIMEOUT: hotspot, 00:13:ce:ef:99:d6, 192.168.201.249
            Mar 13 00:26:09 logportalauth[31937]: TIMEOUT: hotspot, 00:13:ce:8b:8f:58, 192.168.201.247
            Mar 12 20:19:15 logportalauth[12302]: LOGIN: hotspot, 00:19:7d:48:7d:1f, 192.168.201.248
            Mar 12 20:18:49 logportalauth[12219]: FAILURE: hotspor, 00:19:7d:48:7d:1f, 192.168.201.248
            Mar 12 20:13:48 logportalauth[11842]: CONCURRENT LOGIN - REUSING OLD SESSION: hotspot, 00:13:ce:8b:8f:58, 192.168.201.247
            Mar 12 20:13:38 logportalauth[11842]: LOGIN: hotspot, 00:13:ce:8b:8f:58, 192.168.201.247
            Mar 12 20:13:22 logportalauth[11759]: FAILURE: HotSpot, 00:13:ce:8b:8f:58, 192.168.201.247
            Mar 12 20:12:58 logportalauth[11745]: FAILURE: Hotspot, 00:13:ce:8b:8f:58, 192.168.201.247
            Mar 12 20:12:42 logportalauth[11727]: CONCURRENT LOGIN - REUSING OLD SESSION: hotspot, 00:13:ce:8b:8f:58, 192.168.201.247
            Mar 12 20:12:32 logportalauth[11727]: LOGIN: hotspot, 00:13:ce:8b:8f:58, 192.168.201.247
            Mar 12 20:11:19 logportalauth[11580]: LOGIN: hotspot, 00:13:ce:8b:8f:58, 192.168.201.247
            Mar 12 18:06:56 logportalauth[2189]: LOGIN: hotspot, 00:13:ce:ef:99:d6, 192.168.201.249
            …

            1 Reply Last reply Reply Quote 0
            • B
              bushtor
              last edited by Mar 28, 2007, 9:23 AM

              Thanks a lot, hoba.  Just what I needed to see.

              The integers inside the brackets are those the actual usernames or isn't there any association to the name of the account is this log?

              If I would like to add the workstation's NetBIOS name at the end of the log line, does this have to be done in monowall or can this be done in pfsense..?

              regards

              Tor

              1 Reply Last reply Reply Quote 0
              • H
                hoba
                last edited by Mar 28, 2007, 10:05 AM

                "hotspot" is actually the username of the user who is logging on. It's a Hotelinstallation that uses 1 User for all guests, just to prevent people from the street using their WLAN. Additionally you see the MACadress and the IP of the machine that logs in. Together with the DHCP leases/logs you can associate them to machine names, at least if the client registered with it's hostname when grabbing the lease.

                1 Reply Last reply Reply Quote 0
                • B
                  bushtor
                  last edited by Mar 28, 2007, 11:01 AM

                  Excellent!

                  Just as the frosting on the cake, can anyone here give me some clues on where to look / what to do to associate the NetBIOS name with the IP/MAC address in the CP logfile just as it is done in the DHCP leases / ARP table?

                  regards

                  Tor

                  1 Reply Last reply Reply Quote 0
                  • J
                    Justinw
                    last edited by Mar 28, 2007, 7:11 PM

                    I can tell you to look in /var/log/portalauth…its a good starting point

                    1 Reply Last reply Reply Quote 0
                    1 out of 9
                    • First post
                      1/9
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                      This community forum collects and processes your personal information.
                      consent.not_received