mirror of
https://github.com/opnsense/plugins.git
synced 2026-02-03 20:40:37 -05:00
Fix critical syntax error in opnsense-fw active response script that prevents IPs from being added to the __wazuh_agent_drop alias.
## Problem
The script contains invalid Python syntax - a variable assignment inside a dictionary literal:
```python
"parameters":{
unique_key = "%s-%s" % (...) # Invalid Python syntax
"keys": [unique_key]
}
```
This causes the script to fail with a SyntaxError on all 'add' commands, meaning attacking IPs are never blocked.
## Changes
- Move unique_key assignment outside dictionary literal (fixes SyntaxError)
- Fix typo: 'even' -> 'event' in error message
- Add debug logging for easier troubleshooting
## Testing
- Verified syntax with `python3 -m py_compile`
- Tested active response add/delete operations on OPNsense 26.1
|
||
|---|---|---|
| .. | ||
| acme-client | ||
| clamav | ||
| crowdsec | ||
| etpro-telemetry | ||
| intrusion-detection-content-et-open | ||
| intrusion-detection-content-et-pro | ||
| intrusion-detection-content-pt-open | ||
| intrusion-detection-content-snort-vrt | ||
| maltrail | ||
| netbird | ||
| openconnect | ||
| openvpn-legacy | ||
| q-feeds-connector | ||
| strongswan-legacy | ||
| stunnel | ||
| tailscale | ||
| tinc | ||
| tor | ||
| wazuh-agent | ||