OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: SP-Old on July 12, 2023, 06:04:53 PM

Title: naxsi waf policy - deleted these entries while troubleshooting - how to recover
Post by: SP-Old on July 12, 2023, 06:04:53 PM
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?

Title: Re: naxsi waf policy - deleted these entries while troubleshooting - how to recover
Post by: MysteryIron on July 26, 2023, 12:31:11 AM
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.