Suricata interfaces on HA setup need to be identical
-
Original discussion:
@SteveITS said in suricata sync:@bmeeks said in suricata sync:
interfaces are configured exactly the same (meaning if LAN is on NIC em1 in the master, it must also be on em1 in all the slaves, etc.).
Just to clarify, is this a Suricata limitation? It used to be a limitation for pfSense HA state sync but that was removed a few versions back. I took a quick look and our config binds to "<interface>lan</interface>" not "igc0."
(short answer: yes)
@bmeeks said in suricata sync:
Directories would have to be renamed and config.
xml paths changedPerhaps I am misunderstanding but I don't see any paths in config.xml?
-
-
@SteveITS They need to be identical, even on non ha-setups, for sync.
-
@SteveITS said in Suricata interfaces on HA setup need to be identical:
Perhaps I am misunderstanding but I don't see any paths in config.xml?
The paths are hard-coded into the template files (and in a few cases the PHP source files themselves). They are not recorded in the
config.xml
.The package source code files for Suricata are here: https://github.com/pfsense/FreeBSD-ports/tree/devel/security/pfSense-pkg-suricata/files/usr/local/pkg/suricata
Feel free to modify them and submit a pull request to add the feature if you would like. Just be sure to fully test the new package with several types of configurations to be sure the migration does not break someone's existing install.