How captive portal restart with CLI?
-
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 -
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?
-
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 ;) -
Most probably lighttpd crash.. Try check the ps output. You can restart lighttpd by selecting Restart WebGUI on the console menu.
-
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