Thank you! You advice for using wodle helps me rebuild manage system.
As result i rebuild our system for manage firewalls:
1. In bash script i add md5 hashing results of command "ufw ststus" and script with rules.
2. This two md5 hashes i use for count md5 as result md5 jash for control (one md5 hash as control as result of hashing 2 hashes).
3. For control after apply firewall rules i recount hashes and create file with name as md5 control hash (from step 2).
4. By wodle script runs every 1 minutes and recount control hash. if founded file, named as recounted control hash all good and other path of script dont work. If file named as control hash dont found script runs and deploy firewall rules.
So, if somebody change firewall rules manually or i add script from wazuh manager-manager rules will set in term about 3 minutes. And dont needed additional checks.
May be its will usefull :)
Same logic can be used for Windows too.
And my proposition is add module for manage local firewalls as additional module of wazuh to roadmap.
понедельник, 21 ноября 2022 г. в 15:03:45 UTC+2, Jesus Linares: