naxsi waf policy - deleted these entries while troubleshooting - how to recover

Started by SP-Old, July 12, 2023, 06:04:53 PM

Previous topic - Next topic
While troubleshooting an IP block issue - I have deleted NGINX > hhtp(s) > NAXSI WAF Policy entries. Now I want them back as issue I was looking is somewhere else. I have removed nginx plugin and added it back - but dont see those policy rules coming back. What should I do to get those policy rules back?


Figured the answer is here.
https://forum.opnsense.org/index.php?topic=19948.0

Just run - /usr/local/opnsense/scripts/nginx/naxsi_rule_download.php from commandline as root.