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

    Captive Portal - CLI command to add/remove MAC address w/o using http

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 3 Posters 982 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.
    • T
      tomj
      last edited by

      Captive Portal - CLI command to add/remove MAC address w/o using http

      Is there a one or two line command(s) to add and/or remove a MAC address to/from Captive portal ?

      I am trying to automate a PfSense without using Radius in my Captive Portal.

      I am looking for something like

      add-mac -portal_name -speed_up  -speed_down -comment enable
      del-mac -portal_name -speed_up  -speed_down -comment enable

      North Idaho Tom Jones

      1 Reply Last reply Reply Quote 0
      • P
        posto587
        last edited by

        I'm very interested in getting these commands too!

        I want to automate adding MAC-Adresses to the captive portal by a script.

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

          Hello,

          Everything is 'done' by PHP right now.
          PHP can be executed on the command line, and accepts parameters.

          Up to you to write these PHP CLI scripts ….

          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
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.