pt_host_firewall
Enable or disable a host's inbound IPv4 or IPv6 firewall in Packet Tracer; individual rules must still be edited in the firewall window.
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 |