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

    Is there a way to disable/enable captive portal by schedule?

    Scheduled Pinned Locked Moved Captive Portal
    2 Posts 2 Posters 496 Views 2 Watching
    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.
    • carlosi7C Offline
      carlosi7
      last edited by

      I was thinking about using a cron command but I don't know of one to disable and activate the captive portal

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

        @carlosi7

        Hover the mouse over the Stop button :

        1fc11747-ea64-46c2-b13d-3b8481586f5b-image.png

        The "Services Status" status dash board widget is a file you can find here : /usr/local/www/widgets/widgets/smart_status.widget.php
        This file will bring you straight to /etc/inc/services-utils.inc, where services like the captive portal can be stopped and started.

        As cron task can be an executable (so you have to build your own^^) or, most often, look at all the pfSense cron tasks already present, a script file.
        Now you know where to find the examples that shows you how to do that.

        No "help me" PM's please. Use the forum, the community will thank you.

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