get_firewall_log
Retrieve pfSense firewall log entries with optional filters for lines, protocol, interface, source/destination IP, port, and action to inspect traffic and diagnose blocked or allowed connections.
Instructions
Get firewall log entries with optional filtering
WARNING (tracked by upstream PR #860): this endpoint may fail on firewalls with large log files due to a known pfSense REST API bug (server-side OOM at the 512 MB PHP limit). If it fails, suggest reviewing logs via SSH or the pfSense web UI instead.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_firewall_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Number of log lines to retrieve (default 20, max 50) | |
| protocol | No | Filter by protocol (tcp, udp, icmp) | |
| interface | No | Filter by interface (wan, lan, etc.) | |
| source_ip | No | Filter by source IP address | |
| action_filter | No | Filter by action (pass, block, reject) | |
| destination_ip | No | Filter by destination IP address | |
| destination_port | No | Filter by destination port |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||