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

    A REST API or CLI to configure pfSense

    General pfSense Questions
    3
    3
    1.7k
    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.
    • M
      maayan
      last edited by

      Hello,

      I am reviewing possibilities for integration with pfSense and I'm looking for a REST API or CLI.

      Do you know if there is something available?

      Thanks.

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

        Not yet, but it's on the roadmap.

        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 0
        • N
          ndj
          last edited by

          You could try the FauxAPI pfSense package together with the pfsense-fauxapi Python package that provides both a Python library interface and a command-line interface.


          FauxAPI package install

          set fauxapi_base_package_url='https://raw.githubusercontent.com/ndejong/pfsense_fauxapi_packages/master'
          set set fauxapi_latest=`fetch -qo - ${fauxapi_base_package_url}/LATEST`
          fetch ${fauxapi_base_package_url}/${fauxapi_latest}
          pkg-static install ${fauxapi_latest}
          
          • https://github.com/ndejong/pfsense_fauxapi

          pfsense-fauxapi client side install

          pip3 install pfsense-fauxapi
          
          • https://github.com/ndejong/pfsense_fauxapi_client_python
          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.