Giter Site home page Giter Site logo

Comments (3)

ndejong avatar ndejong commented on July 19, 2024

Hi @jdenoy

Have extensively dealt with master-slave pfSense clusters but do not have one to work with and debug this with at the moment.

Reading though what you have it sounds like there is some other callback that needs to occur to invoke the sync to the secondary - I'd suggest you try issuing a send_event with POST data filter sync which is the pfSense way of invoking the sync under the hood

Let us know how it goes.

from pfsense_fauxapi.

jdenoy avatar jdenoy commented on July 19, 2024

hello @ndejong,

thanks, that seems to have worked.
Are you aware of a list of send_event function somewhere else than the code?
probably want to try syncing other rules thatn filter across HA Sync.

Thanks

from pfsense_fauxapi.

ndejong avatar ndejong commented on July 19, 2024

I've grappled with this send_event discoverability problem a few times and the best way I know to tease this out of the codebase is as such -

ndejong@computer:~/pfsense$ grep -r "send_event(" | cut -d':' -f2 | tr -d "\t" | sort -u
$retval |= send_event("service reload dns");
function send_event($cmd) {
send_event("filter reload");
send_event("filter sync");
send_event("interface all reload");
send_event("interface newip {$iface}");
send_event("interface reconfigure {$interface}");
send_event("interface reconfigure {$reloadif}");
send_event("service reload all");
send_event("service reload dyndns {$interface}");
send_event("service reload dyndnsall");
send_event("service reload ipsecdns");
send_event("service reload packages");
send_event("service reload sshd");
send_event("service restart packages");
send_event("service restart sshd");
send_event("service restart webgui");
send_event("service sync alias {$name}");
send_event("service sync vouchers");

Here you can see all the send_event actions called by the pfSense code itself

from pfsense_fauxapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.