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

    Passthrough MAC additions nightly clean up

    Scheduled Pinned Locked Moved Captive Portal
    2 Posts 2 Posters 660 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.
    • S
      shockwavecs
      last edited by

      We have a guest account that has a password that changes every hour, or when you click "change now", that authenticates to the captive portal. We want to clean up the MAC additions every night via cron or something similar. We would be looking only for "guest" user rather than any of our LDAP users. You see the information below checking the MAC additions box in CP setup state: "or send a POST from another system to remove it"

      TLDR; how do I remove MAC additions from the CP via a remote call (POST) or a simple command line call?

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

        @shockwavecs:

        ….
        TLDR; how do I remove MAC additions from the CP via a remote call (POST) or a simple command line call?

        Command line using a script ?!
        Check out /etc/inc/captiveportail.inc and files like /usr/local/www/services_captiveportal_mac.php
        Everything is there so you can write a small php file that iterates over all auto-added registered MAC.

        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.