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

    Restart Captive Portal service from command Line Pfsense 2.4.4

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 3 Posters 1.2k 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.
    • L
      luisenrique
      last edited by

      How i can restart captive portal service from command line on pfsense 2.4.4-RELEASE-p3 (amd64) ?
      I need restart captive portal by cron job to reload configuration and load new letsencrypt certificate.
      thanks.

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

        /usr/local/sbin/pfSsh.php playback svc restart captiveportal yourzonename
        

        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 1
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          But if you are using the ACME package, you can do it in the Actions List for the certificate. You don't need to use the command line. Look at the example text in the Actions List when editing a certificate.

          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!

          L 1 Reply Last reply Reply Quote 2
          • L
            luisenrique @jimp
            last edited by

            @jimp thanks.
            I'm importing certificates previously generated in another pfsense box. I made a php scrip to import it on xml so, I need restart captive portal on that's box.
            Thanks again and sorry my English.

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

              If the certifiacte you import is only used for the captive portal, then @jimp first advise is the best.

              If the (wildcard ?) cert you're importing is also valid for the pfSense GUI, then "Select "Shell Command" and enter /etc/rc.restart_webgui" is best because it restarts all nginx instances, used by the GUI and all the captive portal(s).

              Btw : the captive portal functionality isn't some program or a process by itself.
              It's a mixture of
              A web server, nginx in this case, that hosts the login, error and logout page. This one can use certs so needs to be restarted in case of cert change,
              A OS based firewall with a set of rules,
              A background cron task that throws out inactive and/or max delayed and/or expired voucher's connections.

              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 1
              • L
                luisenrique
                last edited by

                Thanks again.. the solution posted by @jimp worked for me!

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