Update naxsi core rules

Started by Fright, November 05, 2020, 06:30:40 PM

Previous topic - Next topic
November 05, 2020, 06:30:40 PM Last Edit: November 06, 2020, 08:21:26 AM by Fright
Hi!
sometimes naxsi core rules are updated (most recent version is Oct 26, 2020)
how to update the core rules correctly?
I think that i cant just run (i dont see any config check for same rule id or some in .php)
/usr/local/opnsense/scripts/nginx/naxsi_rule_download.php
need to delete all core rules and policies from config first (it looks like it's easier to change the rules manually)?

if anyone is interested. Since in the config the locations, policies, rules are linked by uuid, I did not find a quick way to add the ability to update the rules (need to download the rules, search for the id in the config, update rules etc.. and I'm too lazy). since the rules are rarely updated, I gave up and just added and update the core rules according to
https://github.com/nbs-system/naxsi/commit/e6fbcd61b2fcdf2e32f448edff9edc8dbcecec5e