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

    How captive portal restart with CLI?

    Captive Portal
    5
    5
    2.0k
    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.
    • M
      magura
      last edited by

      How captive portal restart with CLI?
      Sometimes fail to appear on the authentication page.
      So I want to use cron scheduled restart.

      Version 2.1.5-RELEASE (i386)
      built on Mon Aug 25 07:44:26 EDT 2014
      FreeBSD 8.3-RELEASE-p16

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

        There isn't a way to "restart" captive portal in that sense.

        First, upgrade. Then if the problem recurs, troubleshoot what the problem actually is. Are affected users actually making a HTTP request to be redirected? If so, if they browse straight to the portal page, does it load? Do clients that are already authenticated continue to work?

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

          Probably the "prune cron task" that dies … a problem that was seen more often in the past.
          Keeping an old version is keeping old problems ;)

          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
          • A
            aneip
            last edited by

            Most probably lighttpd crash.. Try check the ps output. You can restart lighttpd by selecting Restart WebGUI on the console menu.

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              You can restart the lighttpd instance associated with a captive portal at the CLI, but it's different than actually saving on the CP settings to reinitialize the portal:

              : ps uxawww | grep "[l]ight.*testz"
              root    54907   0.0  2.4  46636  5472  -  S     2:03PM     0:00.00 /usr/local/sbin/lighttpd -f /var/etc/lighty-testzone-CaptivePortal.conf
              : pfSsh.php playback svc restart captiveportal testzone
              
              Starting the pfSense developer shell....
              
              Attempting to issue restart to captiveportal service...
              
              captiveportal has been restarted.
              : ps uxawww | grep "[l]ight.*testz"
              root    58835  1.0  2.4  46636  5472  -  S     2:04PM     0:00.00 /usr/local/sbin/lighttpd -f /var/etc/lighty-testzone-CaptivePortal.conf
              
              

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

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