pt_host_firewall
Toggles a host's IPv4 or IPv6 inbound firewall on or off in Packet Tracer and optionally reports its state. Use it to enable or disable host firewall filtering without editing rules manually.
Instructions
A host's Desktop > Firewall / IPv6 Firewall: switches the inbound firewall on or off (True/False; None = leave alone). Individual rules have no API in PT; edit them in the window (pt_ui_open(host, app="firewall")).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"device": "<device>"
},
"name": "pt_host_firewall"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ipv4 | No | ||
| ipv6 | No | ||
| show | No | ||
| device | Yes | ||
| capture | No | ||
| interface | No | ||
| output_dir | No | screenshots |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |