What's the command line for stop and start captive portal?
-
What's the command line for stop and start captive portal?
-
You might want to read this thread…
https://forum.pfsense.org/index.php?topic=80789.0
-
Update: I was reading through captiveportal.inc and found this gem on line 663.
/* activate ipfw(4) so CP can work */
mwexec("/sbin/sysctl net.link.ether.ipfw=1");It appears that : "/sbin/sysctl net.link.ether.ipfw=1" turns on ipfw and therefore CP and
"/sbin/sysctl net.link.ether.ipfw=0" turns off ipfw and therefore CP.I tried it on my test system and it seemed to work. Haven't spent much time testing though.
-
Update: I was reading through captiveportal.inc and found this gem on line 663.
/* activate ipfw(4) so CP can work */
mwexec("/sbin/sysctl net.link.ether.ipfw=1");It appears that : "/sbin/sysctl net.link.ether.ipfw=1" turns on ipfw and therefore CP and
"/sbin/sysctl net.link.ether.ipfw=0" turns off ipfw and therefore CP.I tried it on my test system and it seemed to work. Haven't spent much time testing though.
thank you !
-
Update: I was reading through captiveportal.inc and found this gem on line 663.
/* activate ipfw(4) so CP can work */
mwexec("/sbin/sysctl net.link.ether.ipfw=1");It appears that : "/sbin/sysctl net.link.ether.ipfw=1" turns on ipfw and therefore CP and
"/sbin/sysctl net.link.ether.ipfw=0" turns off ipfw and therefore CP.I tried it on my test system and it seemed to work. Haven't spent much time testing though.
the captive turns off and dont turns ON! :(