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

    Import from a list (MAC addresses) possible

    Scheduled Pinned Locked Moved Captive Portal
    7 Posts 4 Posters 499 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
      FGlaser
      last edited by

      Hey,

      i have the task, to import a list of 200+ MAC addresses into the pfSense.
      These clients should not need to authenticate at the CP, so i need an exception.

      In the Alias section there is only the possibility to add IPs, Ports, Ranges, Networks...
      But those clients get via DHCP different IPs... - it is a free WiFi for guests.

      So the questions are:

      • Is there a opportunity to import the list of MAC addresses?
      • How can i create an Alias for these clients for the easy administration?
      • How can i create an exeption from CP for those clients?

      If there are more information needed please ask for it.

      Thanks in advance
      Frank

      GertjanG johnpozJ 2 Replies Last reply Reply Quote 0
      • GertjanG
        Gertjan @FGlaser
        last edited by

        @fglaser said in Import from a list (MAC addresses) possible:

        These clients should not need to authenticate at the CP, so i need an exception.

        Add them here :

        e929f0cf-d038-468c-adf8-ffb7be5677de-image.png

        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 1
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @FGlaser
          last edited by johnpoz

          @fglaser as @Gertjan pointed out you can add them there. Once you add one, you could export the config.. Manually edit it to add all your macs, and then restore. So you don't have to do 1 by 1..

          cp.jpg

          see in the captive portal part of the xml, that you can download

          <captiveportal>
          	<testauth>
          		<zone>testauth</zone>
          		<descr></descr>
          		<localauth_priv></localauth_priv>
          		<passthrumac>
          			<action>pass</action>
          			<mac>aa:bb:cc:00:01:01</mac>
          			<descr></descr>
          		</passthrumac>
          		<passthrumac>
          			<action>pass</action>
          			<mac>aa:bb:cc:00:01:03</mac>
          			<descr></descr>
          		</passthrumac>
          	</testauth>
          </captiveportal>
          

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          F 1 Reply Last reply Reply Quote 1
          • F
            FGlaser @johnpoz
            last edited by

            @johnpoz
            VERY good idea - many thanks !

            johnpozJ 1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @FGlaser
              last edited by

              @fglaser sure there is a way you could create a script or something to create the xml for you with your list of macs and then restore the cp section of the xml.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              H 1 Reply Last reply Reply Quote 1
              • H
                heper @johnpoz
                last edited by

                @johnpoz @FGlaser

                remember that a lot of mobile devices have mac-randomization enabled by default...
                so after every firmware update they typically change their address.

                johnpozJ 1 Reply Last reply Reply Quote 1
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @heper
                  last edited by

                  @heper said in Import from a list (MAC addresses) possible:

                  have mac-randomization enabled by default...

                  yup that could be problematic for sure ;)

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

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