opnsense_get_alias_contents
Read the live pf table addresses for an OPNsense alias to verify resolved hostnames, URL feeds, and GeoIP sets, helping diagnose unexpected firewall rule behavior.
Instructions
Get the addresses currently loaded in an alias's pf table.
This reads the live table, so it reflects resolved hostnames, downloaded URL table feeds and refreshed GeoIP sets. When a rule using an alias is not behaving as expected, comparing this against the alias configuration is usually the fastest way to find that a feed failed to refresh.
Args: params (AliasContentsInput): Validated input containing: - name (str): Alias name - limit (int): Max entries, 1-200 (default: 25) - offset (int): Entries to skip (default: 0) - response_format (ResponseFormat): 'markdown' or 'json'
Returns: str: Markdown table, or JSON with this schema: { "total": int, "count": int, "offset": int, "has_more": bool, "next_offset": int|null, "alias": str, "entries": [{"ip": str}] }
Error Handling: - Returns a not-loaded message when the alias exists but has no pf table, which happens when no enabled rule references it
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |