Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    API or remote CLI to configure pfSense

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 3 Posters 4.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.
    • S
      shital
      last edited by

      Hi,

      I want to configure Firewall, NAT and basic VLAN configuration through either APIs or through script automation.
      I am pretty new to pfSense  and have tried few configurations through Web GUI. After searching on Web I did not find anything concrete to achieve this through APIs or using python,SSH scripts. Can you help me providing some pointers on this?

      1 Reply Last reply
      Reply Quote 0
      • N
        NOYB
        last edited by

        According to the road map I think it is slated for 3.0.

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

        https://blog.pfsense.org/?p=1588

        1 Reply Last reply
        Reply Quote 0
        • S
          shital
          last edited by

          Thanks for Sharing info on it.

          For now I would like to know any alternative way that I can use to dynamically configure Firewall and NAT rules programmatically.

          1 Reply Last reply
          Reply Quote 0
          • N
            NOYB
            last edited by

            Use PhantomJS to programmatically drive web gui.
            Though possible probably not very practical.

            Write scripts to make desired changes to config.xml and reload.  Very dangerous.  Not recommended.
            Back up config, make changes to backed up config, restore config.  Very dangerous.  Not recommended.

            Sorry.  Not much help am I.

            1 Reply Last reply
            Reply Quote 0
            • S
              shital
              last edited by

              Reload config will interrupt ongoing traffic?

              1 Reply Last reply
              Reply Quote 0
              • A
                almabes
                last edited by

                @shital:

                Reload config will interrupt ongoing traffic?

                I think it requires a reboot, so YES. 
                Making a change in the webconfigurator, saving and applying does NOT.  You have to manually kill states to interrupt existing sessions.

                1 Reply Last reply
                Reply Quote 0
                • S
                  shital
                  last edited by

                  Thanks a lot for help.

                  So can I install phantomJs on  pfSense itself?

                  1 Reply Last reply
                  Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post
                  Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                  Privacy Policy · Cookie Policy