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

    Captive Portal Service Starting & Stopping from console

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 2 Posters 3.3k 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.
    • D
      darkfox
      last edited by

      Hi all,
      I need to start and stop captive portal service with cron, Because I want to share internet connection without any download/user limit during 20:00PM till 7:00AM. I couldn't find a way to stop and start captive portal service from console.

      Thanks

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        There isn't a single easy command that does so. You can check what functions get run when enabling and disabling CP entirely and put together a small script to do that.

        1 Reply Last reply Reply Quote 0
        • D
          darkfox
          last edited by

          when i tried to run the page to stop service from console via

          php /usr/local/www/status_services.php mode=stopservice service=captiveportal

          I got error : i got Potential DNS Rebind attack detected, see http://en.wikipedia.org/wiki/DNS_rebinding Try accessing the router by IP address instead of by hostname.

          Can you suggest me a way to do it? Thanks

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