packet_capture
Start, stop, or fetch packet captures on OPNsense firewall interfaces, applying BPF filters and saving PCAP files.
Instructions
Start, stop, or fetch a packet capture file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | start, stop, or fetch (default: start) | |
| interface | No | Interface to capture on (default: wan) | |
| filter | No | BPF filter expression (optional) | |
| duration | No | Duration in seconds (default: 30) | |
| count | No | Packet count limit (optional) | |
| local_path | No | Local path to save PCAP (optional) | |
| raw | No | Return raw PCAP file if true (default: false) | |
| stream | No | If true, stream pcap data to chat (hex preview) | |
| preview_bytes | No | Number of bytes to preview (default: 1000) |