vyos_set_firewall_default_action
Sets the default accept, drop, or reject action for a VyOS firewall filter hook on IPv4/IPv6 input, forward, or output traffic, optionally persisting the change after commit.
Instructions
Set the default action of a firewall filter hook.
Args: action: "accept", "drop" or "reject". family: "ipv4" or "ipv6". hook: "forward", "input" or "output". save: Persist after commit (default False).
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": {
"action": "<action>"
},
"name": "vyos_set_firewall_default_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hook | No | forward | |
| save | No | ||
| action | Yes | ||
| family | No | ipv4 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |