How to reload ruleset manually (via script)?

  • 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?  ???

  • 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.

Log in to reply