vyos_add_destination_nat_rule
Creates a VyOS destination NAT (DNAT) port-forward rule in one commit, mapping inbound traffic and optional ports to an internal host; set protocol when specifying ports.
Instructions
Create a destination NAT (DNAT / port-forward) rule in one commit.
The translation address is always included so the rule validates. If you specify a port, also specify protocol (tcp/udp).
Args: rule: Rule number. inbound_interface: Ingress interface, e.g. "eth0". translation_address: Internal host to forward to, e.g. "192.168.1.10". translation_port: Optional internal port. destination_port: Optional matched external port. protocol: Protocol, e.g. "tcp", "udp", "tcp_udp" (required if a port is set). destination_address: Optional external/matched destination address. extra_fields: Additional {space-separated path: value} settings. description: Optional description. 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": {
"rule": "<rule>",
"inbound_interface": "<inbound_interface>",
"translation_address": "<translation_address>"
},
"name": "vyos_add_destination_nat_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | ||
| save | No | ||
| protocol | No | ||
| description | No | ||
| extra_fields | No | ||
| destination_port | No | ||
| translation_port | No | ||
| inbound_interface | Yes | ||
| destination_address | No | ||
| translation_address | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |