OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: Fright on November 05, 2020, 06:30:40 pm

Title: Update naxsi core rules
Post by: Fright on November 05, 2020, 06:30:40 pm
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)?
Title: Re: Update naxsi core rules
Post by: Fright on November 09, 2020, 08:28:02 am
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