opn_get_config_section
Get a specific OPNsense configuration section as structured JSON to access legacy firewall rules and other settings not visible through other tools.
Instructions
Get a specific configuration section as structured JSON.
Use this after opn_scan_config to drill into a specific area of the OPNsense configuration. If the config hasn't been scanned yet, it will be loaded automatically.
Available sections vary by OPNsense installation. Common sections include: system, interfaces, vlans, filter (legacy firewall rules), nat, OPNsense (MVC plugin config), unbound, dnsmasq, dhcpd, staticroutes, syslog.
The 'filter' section is particularly useful — it contains legacy GUI firewall rules that are NOT visible via opn_list_firewall_rules.
Returns: dict with 'section' name and 'data' (structured config data).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| section | Yes | ||
| include_sensitive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||