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

    Captive Portal Mod - added an OTP authentication method

    Captive Portal
    1
    1
    266
    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.
    • X
      xNUTx
      last edited by

      I have created a small modification to the captive portal pages so it would be possible to use a OTP as login option for the portal.

      captiveportal-totp.tgz

      Screenshot 2023-09-17 at 12.18.45.png
      Screenshot 2023-09-17 at 10.57.08.png

      Installation Instructions

      Upload the tarball to your pfsense installation using scp or something similar. Unpack and then:

      cp captiveportal-app.js /usr/local/captiveportal/
      cp /usr/local/captiveportal/captiveportal-app.js /usr/local/www/js/totp.js
      cp services_captiveportal.php /usr/local/www/
      cp captiveportal.inc /etc/inc/

      The TOTP authentication option should appear on the captive portal configuration page and can now be used.

      I hope someone finds this of use and I hope you enjoy it :)

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