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

How captive portal restart with CLI?

Scheduled Pinned Locked Moved Captive Portal
5 Posts 5 Posters 2.0k 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.
  • M
    magura
    last edited by Dec 8, 2015, 2:02 AM

    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 Dec 8, 2015, 2:14 AM

      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
      • G
        Gertjan
        last edited by Dec 8, 2015, 8:20 AM

        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 Dec 14, 2015, 8:05 AM

          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
          • J
            jimp Rebel Alliance Developer Netgate
            last edited by Dec 17, 2015, 7:05 PM

            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
            1 out of 5
            • First post
              1/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received