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

    How to reload ruleset manually (via script)?

    Scheduled Pinned Locked Moved Firewalling
    2 Posts 2 Posters 442 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.
    • B
      brunok
      last edited by

      Hi,

      I'm creating a shell script which in certain action needs to change an ip in an alias.

      /tmp/rules.debug has altered with script and in shell, this command pfctl -f /tmp/rules.debug reloading RULESET, but, only in memory.

      How to make effective changes (save in GUI - XML) and reload filters via script?  ???

      1 Reply Last reply Reply Quote 0
      • luckman212L
        luckman212 LAYER 8
        last edited by

        Not really any official way currently to do what you're asking AFAIK. All config.xml changes have to be made via the GUI.  There is an ambitious 3rd party project called FauxAPI that has made some progress, but I don't see that it allows for rule creation (yet).  I hear that work is being done by the pfSense core team for 3.0 and beyond which may include centralized management, a real API etc but nothing official yet.

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