@usex/mikrotik-mcp 3.22.0 → 3.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +4222 -2660
- package/dist/index.d.ts +15 -4
- package/dist/index.js +4153 -2640
- package/dist/ui/connected-devices.html +21 -0
- package/dist/ui/dashboard.html +2 -1
- package/dist/ui/firewall-audit.html +4 -3
- package/dist/ui/firewall.html +4 -3
- package/dist/ui/interfaces.html +4 -3
- package/dist/ui/observability.html +43 -43
- package/dist/ui/records.html +4 -3
- package/package.json +1 -1
- package/schemas/README.md +1 -1
- package/schemas/tool-catalog.json +3833 -112
- package/schemas/tools/add_bfd_configuration.json +4 -0
- package/schemas/tools/add_bgp_connection.json +70 -0
- package/schemas/tools/add_bgp_template.json +35 -0
- package/schemas/tools/add_bridge_port.json +95 -0
- package/schemas/tools/add_bridge_vlan.json +7 -0
- package/schemas/tools/add_dhcp_client.json +22 -0
- package/schemas/tools/add_dns_static.json +20 -0
- package/schemas/tools/add_graphing_interface.json +8 -0
- package/schemas/tools/add_graphing_queue.json +8 -0
- package/schemas/tools/add_graphing_resource.json +8 -0
- package/schemas/tools/add_ipv6_dhcp_client.json +12 -0
- package/schemas/tools/add_ipv6_nd.json +4 -0
- package/schemas/tools/add_ipv6_route.json +10 -0
- package/schemas/tools/add_logging_action.json +26 -0
- package/schemas/tools/add_netwatch.json +15 -0
- package/schemas/tools/add_ospf_area.json +6 -0
- package/schemas/tools/add_ospf_area_range.json +3 -0
- package/schemas/tools/add_ospf_instance.json +22 -0
- package/schemas/tools/add_ospf_interface_template.json +26 -0
- package/schemas/tools/add_ovpn_server.json +5 -0
- package/schemas/tools/add_pimsm_instance.json +36 -0
- package/schemas/tools/add_pimsm_interface_template.json +24 -0
- package/schemas/tools/add_radius_server.json +15 -0
- package/schemas/tools/add_rip_instance.json +4 -0
- package/schemas/tools/add_rip_interface_template.json +8 -0
- package/schemas/tools/add_romon_port.json +4 -0
- package/schemas/tools/add_route.json +8 -0
- package/schemas/tools/add_routing_rule.json +0 -5
- package/schemas/tools/add_script.json +4 -0
- package/schemas/tools/add_switch_rule.json +13 -0
- package/schemas/tools/add_traffic_generator_stream.json +18 -0
- package/schemas/tools/add_user_manager_limitation.json +54 -0
- package/schemas/tools/add_user_manager_router.json +7 -0
- package/schemas/tools/add_user_manager_user.json +8 -0
- package/schemas/tools/add_wireguard_peer.json +34 -0
- package/schemas/tools/allow_device.json +13 -0
- package/schemas/tools/block_device.json +17 -0
- package/schemas/tools/create_bridge.json +75 -0
- package/schemas/tools/create_certificate.json +20 -0
- package/schemas/tools/create_dhcp_network.json +23 -0
- package/schemas/tools/create_dhcp_server.json +34 -0
- package/schemas/tools/create_eoip_tunnel.json +34 -0
- package/schemas/tools/create_filter_rule.json +124 -0
- package/schemas/tools/create_gre_tunnel.json +12 -0
- package/schemas/tools/create_ipip_tunnel.json +21 -0
- package/schemas/tools/create_ipsec_identity.json +22 -1
- package/schemas/tools/create_ipsec_peer.json +6 -0
- package/schemas/tools/create_ipsec_policy.json +27 -1
- package/schemas/tools/create_ipsec_profile.json +4 -0
- package/schemas/tools/create_ipsec_proposal.json +5 -1
- package/schemas/tools/create_ipv6_dhcp_server.json +12 -0
- package/schemas/tools/create_ipv6_filter_rule.json +123 -1
- package/schemas/tools/create_ipv6_mangle_rule.json +140 -0
- package/schemas/tools/create_ipv6_nat_rule.json +135 -1
- package/schemas/tools/create_ipv6_raw_rule.json +52 -0
- package/schemas/tools/create_l2tp_client.json +42 -0
- package/schemas/tools/create_mangle_rule.json +64 -0
- package/schemas/tools/create_nat_rule.json +144 -0
- package/schemas/tools/create_ovpn_client.json +22 -0
- package/schemas/tools/create_ppp_profile.json +64 -0
- package/schemas/tools/create_ppp_secret.json +16 -0
- package/schemas/tools/create_pptp_client.json +32 -0
- package/schemas/tools/create_queue_type.json +59 -0
- package/schemas/tools/create_scheduler.json +4 -0
- package/schemas/tools/create_simple_queue.json +4 -0
- package/schemas/tools/create_sstp_client.json +46 -0
- package/schemas/tools/create_vlan_interface.json +13 -0
- package/schemas/tools/create_vxlan_tunnel.json +32 -0
- package/schemas/tools/create_wireless_interface.json +74 -0
- package/schemas/tools/get_connected_device.json +16 -0
- package/schemas/tools/get_device_traffic.json +13 -0
- package/schemas/tools/list_connected_devices.json +27 -0
- package/schemas/tools/make_device_static.json +13 -0
- package/schemas/tools/remove_device_lease.json +13 -0
- package/schemas/tools/reset_configuration.json +4 -0
- package/schemas/tools/set_device_ip.json +17 -0
- package/schemas/tools/set_device_label.json +17 -0
- package/schemas/tools/set_dhcp_client.json +22 -0
- package/schemas/tools/set_dns_servers.json +34 -0
- package/schemas/tools/set_ip_cloud.json +4 -0
- package/schemas/tools/set_ip_service.json +4 -0
- package/schemas/tools/set_l2tp_server.json +27 -0
- package/schemas/tools/set_neighbor_discovery_settings.json +12 -0
- package/schemas/tools/set_ntp_client.json +9 -0
- package/schemas/tools/set_ntp_server.json +10 -0
- package/schemas/tools/set_ovpn_server.json +5 -0
- package/schemas/tools/set_pptp_server.json +8 -0
- package/schemas/tools/set_sstp_server.json +32 -0
- package/schemas/tools/set_system_clock.json +4 -0
- package/schemas/tools/set_user_manager_settings.json +16 -0
- package/schemas/tools/update_bfd_configuration.json +3 -0
- package/schemas/tools/update_bgp_connection.json +57 -0
- package/schemas/tools/update_bridge.json +75 -0
- package/schemas/tools/update_dns_static.json +20 -0
- package/schemas/tools/update_filter_rule.json +93 -0
- package/schemas/tools/update_ipsec_peer.json +5 -0
- package/schemas/tools/update_ipsec_profile.json +3 -0
- package/schemas/tools/update_ipsec_proposal.json +3 -0
- package/schemas/tools/update_ipv6_filter_rule.json +90 -0
- package/schemas/tools/update_ipv6_mangle_rule.json +107 -0
- package/schemas/tools/update_ipv6_nat_rule.json +99 -0
- package/schemas/tools/update_ipv6_nd.json +4 -0
- package/schemas/tools/update_ipv6_raw_rule.json +39 -0
- package/schemas/tools/update_ipv6_settings.json +29 -0
- package/schemas/tools/update_mangle_rule.json +48 -0
- package/schemas/tools/update_nat_rule.json +108 -0
- package/schemas/tools/update_ospf_instance.json +22 -0
- package/schemas/tools/update_ovpn_server.json +5 -0
- package/schemas/tools/update_ppp_profile.json +64 -0
- package/schemas/tools/update_ppp_secret.json +16 -0
- package/schemas/tools/update_queue_type.json +46 -0
- package/schemas/tools/update_radius_server.json +13 -0
- package/schemas/tools/update_rip_instance.json +4 -0
- package/schemas/tools/update_route.json +8 -0
- package/schemas/tools/update_routing_rule.json +5 -0
- package/schemas/tools/update_simple_queue.json +4 -0
- package/schemas/tools/update_sniffer_settings.json +32 -0
- package/schemas/tools/update_switch.json +8 -0
- package/schemas/tools/update_switch_rule.json +10 -0
- package/schemas/tools/update_user_manager_user.json +8 -0
- package/schemas/tools/update_vlan_interface.json +13 -0
- package/schemas/tools/update_wireguard_peer.json +34 -0
- package/schemas/tools/update_wireless_interface.json +91 -0
|
@@ -63,6 +63,130 @@
|
|
|
63
63
|
"description": "RouterOS flag expression e.g. \"syn,!ack\"",
|
|
64
64
|
"type": "string"
|
|
65
65
|
},
|
|
66
|
+
"src_mac_address": {
|
|
67
|
+
"description": "Source MAC, supports ! and mask e.g. \"00:11:...\"",
|
|
68
|
+
"type": "string"
|
|
69
|
+
},
|
|
70
|
+
"in_interface_list": {
|
|
71
|
+
"description": "Match by inbound interface list name",
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
"out_interface_list": {
|
|
75
|
+
"description": "Match by outbound interface list name",
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"port": {
|
|
79
|
+
"description": "Match src OR dst port(s) (protocol-agnostic)",
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
"connection_mark": {
|
|
83
|
+
"description": "Match packets with this connection mark",
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
"packet_mark": {
|
|
87
|
+
"description": "Match packets with this packet mark",
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
"routing_mark": {
|
|
91
|
+
"description": "Match packets with this routing mark",
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
"connection_type": {
|
|
95
|
+
"description": "Conntrack helper type e.g. \"ftp,sip\"",
|
|
96
|
+
"type": "string"
|
|
97
|
+
},
|
|
98
|
+
"connection_bytes": {
|
|
99
|
+
"description": "Total conn bytes range e.g. \"1000000-0\"",
|
|
100
|
+
"type": "string"
|
|
101
|
+
},
|
|
102
|
+
"connection_limit": {
|
|
103
|
+
"description": "Per-address conn limit e.g. \"100,32\"",
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
"connection_rate": {
|
|
107
|
+
"description": "Connection rate range e.g. \"0-100k\"",
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
"content": {
|
|
111
|
+
"description": "Match a literal string in the packet payload",
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
"dscp": {
|
|
115
|
+
"description": "Match DSCP/TOS value 0-63",
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
"layer7_protocol": {
|
|
119
|
+
"description": "Match a /ip firewall layer7-protocol name",
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
"packet_size": {
|
|
123
|
+
"description": "Packet size or range in bytes e.g. \"0-1500\"",
|
|
124
|
+
"type": "string"
|
|
125
|
+
},
|
|
126
|
+
"ipsec_policy": {
|
|
127
|
+
"description": "IPsec policy match e.g. \"in,ipsec\" or \"out,none\"",
|
|
128
|
+
"type": "string"
|
|
129
|
+
},
|
|
130
|
+
"ttl": {
|
|
131
|
+
"description": "TTL match e.g. \"equal:64\" or \"less-than:5\"",
|
|
132
|
+
"type": "string"
|
|
133
|
+
},
|
|
134
|
+
"nth": {
|
|
135
|
+
"description": "Match every Nth packet e.g. \"2,1\"",
|
|
136
|
+
"type": "string"
|
|
137
|
+
},
|
|
138
|
+
"time": {
|
|
139
|
+
"description": "Time/day match e.g. \"8h-16h,mon,tue,wed\"",
|
|
140
|
+
"type": "string"
|
|
141
|
+
},
|
|
142
|
+
"random": {
|
|
143
|
+
"description": "Match a packet randomly with given probability (1-99)",
|
|
144
|
+
"type": "string"
|
|
145
|
+
},
|
|
146
|
+
"tcp_mss": {
|
|
147
|
+
"description": "TCP MSS match e.g. \"1300-1536\" or \"!1460\"",
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"fragment": {
|
|
151
|
+
"description": "Match non-first IP fragments",
|
|
152
|
+
"type": "boolean"
|
|
153
|
+
},
|
|
154
|
+
"src_address_type": {
|
|
155
|
+
"description": "Source address type e.g. \"unicast\",\"local\"",
|
|
156
|
+
"type": "string"
|
|
157
|
+
},
|
|
158
|
+
"dst_address_type": {
|
|
159
|
+
"description": "Dest address type e.g. \"broadcast\",\"multicast\"",
|
|
160
|
+
"type": "string"
|
|
161
|
+
},
|
|
162
|
+
"hotspot": {
|
|
163
|
+
"description": "Hotspot match e.g. \"auth\",\"from-client\",\"local-dst\"",
|
|
164
|
+
"type": "string"
|
|
165
|
+
},
|
|
166
|
+
"icmp_options": {
|
|
167
|
+
"description": "ICMP type:code match e.g. \"8:0\"",
|
|
168
|
+
"type": "string"
|
|
169
|
+
},
|
|
170
|
+
"priority": {
|
|
171
|
+
"description": "Match packets by priority (0-63) set internally",
|
|
172
|
+
"type": "string"
|
|
173
|
+
},
|
|
174
|
+
"jump_target": {
|
|
175
|
+
"description": "Target chain name when action=jump",
|
|
176
|
+
"type": "string"
|
|
177
|
+
},
|
|
178
|
+
"reject_with": {
|
|
179
|
+
"description": "ICMP/TCP reject response when action=reject",
|
|
180
|
+
"type": "string"
|
|
181
|
+
},
|
|
182
|
+
"address_list": {
|
|
183
|
+
"description": "List name for add-src-to-address-list / add-dst-to-address-list actions",
|
|
184
|
+
"type": "string"
|
|
185
|
+
},
|
|
186
|
+
"address_list_timeout": {
|
|
187
|
+
"description": "Timeout for the address-list entry e.g. \"1d\" or \"none\"",
|
|
188
|
+
"type": "string"
|
|
189
|
+
},
|
|
66
190
|
"comment": {
|
|
67
191
|
"type": "string"
|
|
68
192
|
},
|
|
@@ -28,6 +28,18 @@
|
|
|
28
28
|
"description": "Clamp TCP MSS to the tunnel MTU",
|
|
29
29
|
"type": "boolean"
|
|
30
30
|
},
|
|
31
|
+
"allow_fast_path": {
|
|
32
|
+
"description": "Allow FastPath processing for this tunnel",
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
},
|
|
35
|
+
"ipsec_secret": {
|
|
36
|
+
"description": "Pre-shared key to auto-create an IPsec policy securing the tunnel",
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"dscp": {
|
|
40
|
+
"description": "DSCP for encapsulated packets: 'inherit' or 0-63",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
31
43
|
"mtu": {
|
|
32
44
|
"type": "integer",
|
|
33
45
|
"minimum": -9007199254740991,
|
|
@@ -19,6 +19,27 @@
|
|
|
19
19
|
"description": "Keepalive interval/retries, e.g. '10s,3'",
|
|
20
20
|
"type": "string"
|
|
21
21
|
},
|
|
22
|
+
"dont_fragment": {
|
|
23
|
+
"description": "Don't-fragment behavior",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"enum": ["inherit", "no"]
|
|
26
|
+
},
|
|
27
|
+
"clamp_tcp_mss": {
|
|
28
|
+
"description": "Clamp TCP MSS to the tunnel MTU",
|
|
29
|
+
"type": "boolean"
|
|
30
|
+
},
|
|
31
|
+
"allow_fast_path": {
|
|
32
|
+
"description": "Allow FastPath processing for this tunnel",
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
},
|
|
35
|
+
"ipsec_secret": {
|
|
36
|
+
"description": "Pre-shared key to auto-create an IPsec policy securing the tunnel",
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"dscp": {
|
|
40
|
+
"description": "DSCP for encapsulated packets: 'inherit' or 0-63",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
22
43
|
"mtu": {
|
|
23
44
|
"type": "integer",
|
|
24
45
|
"minimum": -9007199254740991,
|
|
@@ -23,6 +23,11 @@
|
|
|
23
23
|
"remote_id": {
|
|
24
24
|
"type": "string"
|
|
25
25
|
},
|
|
26
|
+
"match_by": {
|
|
27
|
+
"description": "How the remote peer is matched to this identity",
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": ["remote-id", "certificate"]
|
|
30
|
+
},
|
|
26
31
|
"generate_policy": {
|
|
27
32
|
"type": "string",
|
|
28
33
|
"enum": ["no", "port-override", "port-strict"]
|
|
@@ -36,10 +41,26 @@
|
|
|
36
41
|
"certificate": {
|
|
37
42
|
"type": "string"
|
|
38
43
|
},
|
|
44
|
+
"remote_certificate": {
|
|
45
|
+
"description": "Remote peer's certificate name (rsa/digital-signature auth)",
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"eap_methods": {
|
|
49
|
+
"description": "EAP method(s), e.g. 'eap-tls' (eap auth)",
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"notrack_chain": {
|
|
53
|
+
"description": "Raw firewall chain to bypass connection tracking for matched traffic",
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
39
56
|
"comment": {
|
|
40
57
|
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"disabled": {
|
|
60
|
+
"default": false,
|
|
61
|
+
"type": "boolean"
|
|
41
62
|
}
|
|
42
63
|
},
|
|
43
|
-
"required": ["peer", "auth_method"],
|
|
64
|
+
"required": ["peer", "auth_method", "disabled"],
|
|
44
65
|
"additionalProperties": false
|
|
45
66
|
}
|
|
@@ -24,6 +24,12 @@
|
|
|
24
24
|
"local_address": {
|
|
25
25
|
"type": "string"
|
|
26
26
|
},
|
|
27
|
+
"port": {
|
|
28
|
+
"description": "UDP port for IKE negotiation (default 500)",
|
|
29
|
+
"type": "integer",
|
|
30
|
+
"minimum": -9007199254740991,
|
|
31
|
+
"maximum": 9007199254740991
|
|
32
|
+
},
|
|
27
33
|
"passive": {
|
|
28
34
|
"description": "Passive (responder only)",
|
|
29
35
|
"type": "boolean"
|
|
@@ -11,10 +11,22 @@
|
|
|
11
11
|
"description": "Source subnet, e.g. '10.0.0.0/24'",
|
|
12
12
|
"type": "string"
|
|
13
13
|
},
|
|
14
|
+
"src_port": {
|
|
15
|
+
"description": "Source port to match (0 = any)",
|
|
16
|
+
"type": "integer",
|
|
17
|
+
"minimum": -9007199254740991,
|
|
18
|
+
"maximum": 9007199254740991
|
|
19
|
+
},
|
|
14
20
|
"dst_address": {
|
|
15
21
|
"description": "Destination subnet, e.g. '10.0.1.0/24'",
|
|
16
22
|
"type": "string"
|
|
17
23
|
},
|
|
24
|
+
"dst_port": {
|
|
25
|
+
"description": "Destination port to match (0 = any)",
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": -9007199254740991,
|
|
28
|
+
"maximum": 9007199254740991
|
|
29
|
+
},
|
|
18
30
|
"protocol": {
|
|
19
31
|
"type": "string"
|
|
20
32
|
},
|
|
@@ -42,14 +54,28 @@
|
|
|
42
54
|
"sa_dst_address": {
|
|
43
55
|
"type": "string"
|
|
44
56
|
},
|
|
57
|
+
"priority": {
|
|
58
|
+
"description": "Policy ordering priority",
|
|
59
|
+
"type": "integer",
|
|
60
|
+
"minimum": -9007199254740991,
|
|
61
|
+
"maximum": 9007199254740991
|
|
62
|
+
},
|
|
45
63
|
"template": {
|
|
46
64
|
"description": "Policy template (for dynamic policies)",
|
|
47
65
|
"type": "boolean"
|
|
48
66
|
},
|
|
67
|
+
"group": {
|
|
68
|
+
"description": "Policy template group (when template=true)",
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
49
71
|
"comment": {
|
|
50
72
|
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
"disabled": {
|
|
75
|
+
"default": false,
|
|
76
|
+
"type": "boolean"
|
|
51
77
|
}
|
|
52
78
|
},
|
|
53
|
-
"required": ["action", "tunnel"],
|
|
79
|
+
"required": ["action", "tunnel", "disabled"],
|
|
54
80
|
"additionalProperties": false
|
|
55
81
|
}
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
"description": "Hash algorithm, e.g. 'sha256'",
|
|
22
22
|
"type": "string"
|
|
23
23
|
},
|
|
24
|
+
"prf_algorithm": {
|
|
25
|
+
"description": "PRF algorithm, e.g. 'auto' or 'sha256'",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
24
28
|
"lifetime": {
|
|
25
29
|
"description": "Phase-1 lifetime, e.g. '1d'",
|
|
26
30
|
"type": "string"
|
|
@@ -25,8 +25,12 @@
|
|
|
25
25
|
"lifetime": {
|
|
26
26
|
"description": "Phase-2 lifetime, e.g. '30m'",
|
|
27
27
|
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"disabled": {
|
|
30
|
+
"default": false,
|
|
31
|
+
"type": "boolean"
|
|
28
32
|
}
|
|
29
33
|
},
|
|
30
|
-
"required": ["name", "auth_algorithms", "enc_algorithms", "pfs_group"],
|
|
34
|
+
"required": ["name", "auth_algorithms", "enc_algorithms", "pfs_group", "disabled"],
|
|
31
35
|
"additionalProperties": false
|
|
32
36
|
}
|
|
@@ -34,6 +34,18 @@
|
|
|
34
34
|
"minimum": -9007199254740991,
|
|
35
35
|
"maximum": 9007199254740991
|
|
36
36
|
},
|
|
37
|
+
"use_radius": {
|
|
38
|
+
"description": "Authenticate clients via RADIUS",
|
|
39
|
+
"type": "boolean"
|
|
40
|
+
},
|
|
41
|
+
"allow_dual_stack_queue": {
|
|
42
|
+
"description": "Share a simple queue with the client's IPv4 DHCP lease",
|
|
43
|
+
"type": "boolean"
|
|
44
|
+
},
|
|
45
|
+
"parent_queue": {
|
|
46
|
+
"description": "Parent queue for dynamically created simple queues",
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
37
49
|
"dhcp_option": {
|
|
38
50
|
"description": "Custom DHCPv6 option names",
|
|
39
51
|
"type": "array",
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
"passthrough",
|
|
19
19
|
"return",
|
|
20
20
|
"tarpit",
|
|
21
|
-
"fasttrack-connection"
|
|
21
|
+
"fasttrack-connection",
|
|
22
|
+
"add-src-to-address-list",
|
|
23
|
+
"add-dst-to-address-list"
|
|
22
24
|
]
|
|
23
25
|
},
|
|
24
26
|
"src_address": {
|
|
@@ -70,6 +72,126 @@
|
|
|
70
72
|
"description": "RouterOS flag expression e.g. \"syn,!ack\"",
|
|
71
73
|
"type": "string"
|
|
72
74
|
},
|
|
75
|
+
"port": {
|
|
76
|
+
"description": "Match src or dst port (any protocol with ports)",
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
"icmp_options": {
|
|
80
|
+
"description": "ICMPv6 type:code e.g. \"128:0\"",
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
"connection_mark": {
|
|
84
|
+
"description": "Match packets with this connection mark",
|
|
85
|
+
"type": "string"
|
|
86
|
+
},
|
|
87
|
+
"connection_type": {
|
|
88
|
+
"description": "Match connection helper type e.g. \"ftp\", \"sip\"",
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"connection_bytes": {
|
|
92
|
+
"description": "Match total connection bytes range e.g. \"1000000-\"",
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"connection_limit": {
|
|
96
|
+
"description": "Limit connections per address e.g. \"100,128\"",
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
"connection_rate": {
|
|
100
|
+
"description": "Match connection data rate e.g. \"100k-\"",
|
|
101
|
+
"type": "string"
|
|
102
|
+
},
|
|
103
|
+
"packet_mark": {
|
|
104
|
+
"description": "Match packets with this packet mark",
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
"routing_mark": {
|
|
108
|
+
"description": "Match packets with this routing mark",
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"packet_size": {
|
|
112
|
+
"description": "Match packet size range e.g. \"1400-1500\"",
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
"dscp": {
|
|
116
|
+
"description": "Match DSCP (0-63)",
|
|
117
|
+
"type": "string"
|
|
118
|
+
},
|
|
119
|
+
"ingress_priority": {
|
|
120
|
+
"description": "Match ingress priority (0-63)",
|
|
121
|
+
"type": "string"
|
|
122
|
+
},
|
|
123
|
+
"priority": {
|
|
124
|
+
"description": "Match priority set by mangle (0-63)",
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
"src_mac_address": {
|
|
128
|
+
"description": "Match source MAC address",
|
|
129
|
+
"type": "string"
|
|
130
|
+
},
|
|
131
|
+
"src_address_type": {
|
|
132
|
+
"description": "Match src address type e.g. \"unicast\", \"multicast\"",
|
|
133
|
+
"type": "string"
|
|
134
|
+
},
|
|
135
|
+
"dst_address_type": {
|
|
136
|
+
"description": "Match dst address type e.g. \"unicast\", \"multicast\"",
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
"tcp_mss": {
|
|
140
|
+
"description": "Match TCP MSS value/range e.g. \"1300-1536\"",
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
"headers": {
|
|
144
|
+
"description": "Match IPv6 extension headers present in the packet",
|
|
145
|
+
"type": "string"
|
|
146
|
+
},
|
|
147
|
+
"tls_host": {
|
|
148
|
+
"description": "Match TLS SNI host (glob pattern)",
|
|
149
|
+
"type": "string"
|
|
150
|
+
},
|
|
151
|
+
"content": {
|
|
152
|
+
"description": "Match packets containing this text",
|
|
153
|
+
"type": "string"
|
|
154
|
+
},
|
|
155
|
+
"nth": {
|
|
156
|
+
"description": "Match every Nth packet e.g. \"2,0\"",
|
|
157
|
+
"type": "string"
|
|
158
|
+
},
|
|
159
|
+
"random": {
|
|
160
|
+
"description": "Randomly match a percentage of packets (1-99)",
|
|
161
|
+
"type": "string"
|
|
162
|
+
},
|
|
163
|
+
"time": {
|
|
164
|
+
"description": "Match by time/day e.g. \"8h-16h,mon,tue\"",
|
|
165
|
+
"type": "string"
|
|
166
|
+
},
|
|
167
|
+
"dst_limit": {
|
|
168
|
+
"description": "Per-destination rate limit e.g. \"10,5,dst-address\"",
|
|
169
|
+
"type": "string"
|
|
170
|
+
},
|
|
171
|
+
"ipsec_policy": {
|
|
172
|
+
"description": "Match IPsec policy e.g. \"in,ipsec\" or \"out,none\"",
|
|
173
|
+
"type": "string"
|
|
174
|
+
},
|
|
175
|
+
"per_connection_classifier": {
|
|
176
|
+
"description": "Hash connections into buckets e.g. \"both-addresses:2/0\"",
|
|
177
|
+
"type": "string"
|
|
178
|
+
},
|
|
179
|
+
"jump_target": {
|
|
180
|
+
"description": "Target chain name when action=jump",
|
|
181
|
+
"type": "string"
|
|
182
|
+
},
|
|
183
|
+
"reject_with": {
|
|
184
|
+
"description": "ICMPv6 reject response when action=reject e.g. \"icmp-admin-prohibited\"",
|
|
185
|
+
"type": "string"
|
|
186
|
+
},
|
|
187
|
+
"address_list": {
|
|
188
|
+
"description": "Address-list name when action=add-src/dst-to-address-list",
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"address_list_timeout": {
|
|
192
|
+
"description": "Timeout for the added address-list entry e.g. \"1d\" or \"none\"",
|
|
193
|
+
"type": "string"
|
|
194
|
+
},
|
|
73
195
|
"comment": {
|
|
74
196
|
"type": "string"
|
|
75
197
|
},
|
|
@@ -42,11 +42,130 @@
|
|
|
42
42
|
"type": "string"
|
|
43
43
|
},
|
|
44
44
|
"in_interface": {
|
|
45
|
+
"description": "Negatable, e.g. \"!ether1\"",
|
|
45
46
|
"type": "string"
|
|
46
47
|
},
|
|
47
48
|
"out_interface": {
|
|
48
49
|
"type": "string"
|
|
49
50
|
},
|
|
51
|
+
"in_interface_list": {
|
|
52
|
+
"description": "Interface list, negatable e.g. \"!WAN\"",
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"out_interface_list": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
"src_address_list": {
|
|
59
|
+
"description": "Match src in a named list; negate \"!name\"",
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"dst_address_list": {
|
|
63
|
+
"description": "Match dst in a named list; negate \"!name\"",
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"src_address_type": {
|
|
67
|
+
"description": "e.g. \"unicast\", \"local\", \"!local\"",
|
|
68
|
+
"type": "string"
|
|
69
|
+
},
|
|
70
|
+
"dst_address_type": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"src_mac_address": {
|
|
74
|
+
"description": "Source MAC, negatable e.g. \"!00:11:...\"",
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
"port": {
|
|
78
|
+
"description": "Match if src OR dst port matches (with protocol)",
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"connection_state": {
|
|
82
|
+
"description": "e.g. \"new\", \"established,related\", \"!invalid\"",
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"connection_type": {
|
|
86
|
+
"description": "Helper, e.g. \"sip\", \"ftp\"",
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"connection_bytes": {
|
|
90
|
+
"description": "e.g. \"1000000-0\" (>1 MB connections)",
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
"connection_limit": {
|
|
94
|
+
"description": "e.g. \"100,128\"",
|
|
95
|
+
"type": "string"
|
|
96
|
+
},
|
|
97
|
+
"connection_rate": {
|
|
98
|
+
"description": "e.g. \"100k-1M\"",
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
"per_connection_classifier": {
|
|
102
|
+
"description": "PCC for load balancing, e.g. \"both-addresses:2/0\"",
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
"tcp_flags": {
|
|
106
|
+
"description": "RouterOS flag expression e.g. \"syn,!ack\"",
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"tcp_mss": {
|
|
110
|
+
"description": "Match TCP MSS, e.g. \"1400-1500\" or \"!1460\"",
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
"icmp_options": {
|
|
114
|
+
"description": "Match ICMPv6 type:code, e.g. \"128:0\"",
|
|
115
|
+
"type": "string"
|
|
116
|
+
},
|
|
117
|
+
"packet_size": {
|
|
118
|
+
"description": "e.g. \"1500\" or \"0-500\"",
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
121
|
+
"dscp": {
|
|
122
|
+
"description": "Match incoming DSCP (0-63)",
|
|
123
|
+
"type": "string"
|
|
124
|
+
},
|
|
125
|
+
"priority": {
|
|
126
|
+
"description": "Match packet/queue priority (0-63)",
|
|
127
|
+
"type": "string"
|
|
128
|
+
},
|
|
129
|
+
"ingress_priority": {
|
|
130
|
+
"description": "Match ingress (VLAN/MPLS) priority (0-63)",
|
|
131
|
+
"type": "string"
|
|
132
|
+
},
|
|
133
|
+
"ipsec_policy": {
|
|
134
|
+
"description": "e.g. \"in,ipsec\" or \"out,none\"",
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
"nth": {
|
|
138
|
+
"description": "e.g. \"2,1\" — every 2nd packet",
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
"random": {
|
|
142
|
+
"description": "Match a random N% of packets (1-99)",
|
|
143
|
+
"type": "string"
|
|
144
|
+
},
|
|
145
|
+
"time": {
|
|
146
|
+
"description": "e.g. \"8h-16h,mon,tue,wed,thu,fri\"",
|
|
147
|
+
"type": "string"
|
|
148
|
+
},
|
|
149
|
+
"hop_limit": {
|
|
150
|
+
"description": "Match hop-limit, e.g. \"equal:64\", \"less-than:10\"",
|
|
151
|
+
"type": "string"
|
|
152
|
+
},
|
|
153
|
+
"content": {
|
|
154
|
+
"description": "Match packets containing this text",
|
|
155
|
+
"type": "string"
|
|
156
|
+
},
|
|
157
|
+
"headers": {
|
|
158
|
+
"description": "Match IPv6 extension headers, e.g. \"hop:contains\"",
|
|
159
|
+
"type": "string"
|
|
160
|
+
},
|
|
161
|
+
"limit": {
|
|
162
|
+
"description": "Rate limit matcher, e.g. \"50,5:packet\"",
|
|
163
|
+
"type": "string"
|
|
164
|
+
},
|
|
165
|
+
"dst_limit": {
|
|
166
|
+
"description": "Per-destination rate matcher, e.g. \"50,5,dst-address/1m\"",
|
|
167
|
+
"type": "string"
|
|
168
|
+
},
|
|
50
169
|
"connection_mark": {
|
|
51
170
|
"type": "string"
|
|
52
171
|
},
|
|
@@ -66,12 +185,33 @@
|
|
|
66
185
|
"type": "string"
|
|
67
186
|
},
|
|
68
187
|
"new_dscp": {
|
|
188
|
+
"description": "0-63, for change-dscp",
|
|
69
189
|
"type": "string"
|
|
70
190
|
},
|
|
71
191
|
"new_hop_limit": {
|
|
72
192
|
"description": "e.g. \"decrement\", \"increment\", or \"set:64\"",
|
|
73
193
|
"type": "string"
|
|
74
194
|
},
|
|
195
|
+
"new_mss": {
|
|
196
|
+
"description": "e.g. \"1440\" or \"clamp-to-pmtu\", for change-mss",
|
|
197
|
+
"type": "string"
|
|
198
|
+
},
|
|
199
|
+
"new_priority": {
|
|
200
|
+
"description": "e.g. \"4\" or \"from-dscp\", for set-priority",
|
|
201
|
+
"type": "string"
|
|
202
|
+
},
|
|
203
|
+
"jump_target": {
|
|
204
|
+
"description": "Target chain name for action=jump",
|
|
205
|
+
"type": "string"
|
|
206
|
+
},
|
|
207
|
+
"sniff_target": {
|
|
208
|
+
"description": "TZSP collector IP for action=sniff-tzsp",
|
|
209
|
+
"type": "string"
|
|
210
|
+
},
|
|
211
|
+
"sniff_target_port": {
|
|
212
|
+
"description": "TZSP collector UDP port for sniff-tzsp",
|
|
213
|
+
"type": "string"
|
|
214
|
+
},
|
|
75
215
|
"passthrough": {
|
|
76
216
|
"type": "boolean"
|
|
77
217
|
},
|