create_ipv6_raw_rule
Creates IPv6 firewall raw rules that filter or redirect packets before connection tracking, enabling early blocking, jumping, logging, or address-list actions on RouterOS.
Instructions
Creates an /ipv6 firewall raw rule (applied before connection tracking).
Notes: chain: "prerouting" or "output", or a custom chain reached by jump. jump_target: required with action="jump". address_list (+ optional address_list_timeout, e.g. "1d"): required with add-src/dst-to-address-list. Prefix a matcher value with "!" to negate it. protocol: IPv6 uses "icmpv6", not "icmp". place_before: internal id ("*3") or print position ("0").
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": {
"chain": "<chain>",
"action": "<action>"
},
"name": "create_ipv6_raw_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | No | ||
| dscp | No | ||
| port | No | ||
| chain | Yes | ||
| limit | No | ||
| action | Yes | ||
| device | No | ||
| comment | No | ||
| disabled | No | ||
| dst_port | No | ||
| protocol | No | ||
| src_port | No | ||
| hop_limit | No | ||
| tcp_flags | No | ||
| log_prefix | No | ||
| dst_address | No | ||
| jump_target | No | ||
| packet_size | No | ||
| src_address | No | ||
| address_list | No | ||
| icmp_options | No | ||
| in_interface | No | ||
| place_before | No | ||
| out_interface | No | ||
| dst_address_list | No | ||
| dst_address_type | No | ||
| src_address_list | No | ||
| src_address_type | No | ||
| in_interface_list | No | ||
| out_interface_list | No | ||
| address_list_timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |