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

    What's the command line for stop and start captive portal?

    Scheduled Pinned Locked Moved Captive Portal
    5 Posts 2 Posters 1.9k 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.
    • J
      juninhoandrade
      last edited by

      What's the command line for stop and start captive portal?

      1 Reply Last reply Reply Quote 0
      • G
        GS850L
        last edited by

        You might want to read this thread…

        https://forum.pfsense.org/index.php?topic=80789.0

        1 Reply Last reply Reply Quote 0
        • G
          GS850L
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • J
            juninhoandrade
            last edited by

            @GS850L:

            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 !

            1 Reply Last reply Reply Quote 0
            • J
              juninhoandrade
              last edited by

              @GS850L:

              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! :(

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