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

    Scripted/Auto Web GUI Login…..

    Scheduled Pinned Locked Moved webGUI
    3 Posts 2 Posters 1.5k 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.
    • T
      tristonamherst
      last edited by

      Hey Team PFSense,

      Can't believe I've been a pfsense user for donkeys years and only now just registered - but I have an issue that has stumped me (and also our web-developer!)

      I'd really like to be able to automate the logging in process to the webgui.

      e.g.

      http://192.168.1.1/index.php?username=foo&password=bar

      We could then include a link in our asset management system - so that techs can connect to the client VPN - and then hit a single link.

      Any ideas would be appreciated.  I understand from my web developer who has looked - that javascript and a POST request are both being used - which makes the process much harder to do.

      TIA!

      T

      1 Reply Last reply Reply Quote 0
      • T
        tristonamherst
        last edited by

        I know being the first to reply to my own post probably isn't cool - but I may put this out to bounty.

        I had a thought that maybe someone who knows how the GUI login process works could write a new PHP (e.g. autoscriptlogin.php) and we could then pass variables directly to it

        e.g. http://192.168.1.1/autoscriptlogin.php?username=admin&password=foobar

        Hmmm….just a thought!

        1 Reply Last reply Reply Quote 0
        • R
          robi
          last edited by

          You might want to disable auto CSRF…

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