@usex/mikrotik-mcp 1.0.0 → 2.1.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/README.md +23 -8
- package/dist/cli.js +8571 -2330
- package/dist/index.d.ts +42 -2
- package/dist/index.js +7798 -2226
- package/dist/ui/dashboard.html +19 -0
- package/dist/ui/firewall.html +20 -0
- package/dist/ui/interfaces.html +20 -0
- package/dist/ui/observability.html +27 -0
- package/dist/ui/records.html +20 -0
- package/package.json +63 -50
- package/schemas/README.md +1 -1
- package/schemas/config.schema.json +112 -21
- package/schemas/tool-catalog.json +11783 -5555
- package/schemas/tools/add_dot1x_client.json +42 -0
- package/schemas/tools/add_dot1x_server.json +60 -0
- package/schemas/tools/add_graphing_interface.json +23 -0
- package/schemas/tools/add_graphing_queue.json +22 -0
- package/schemas/tools/add_graphing_resource.json +14 -0
- package/schemas/tools/add_ipv6_address.json +43 -0
- package/schemas/tools/add_ipv6_address_list_entry.json +32 -0
- package/schemas/tools/add_ipv6_default_route.json +34 -0
- package/schemas/tools/add_ipv6_dhcp_binding.json +42 -0
- package/schemas/tools/add_ipv6_dhcp_client.json +69 -0
- package/schemas/tools/add_ipv6_dhcp_option.json +29 -0
- package/schemas/tools/add_ipv6_dhcp_relay.json +35 -0
- package/schemas/tools/add_ipv6_nd.json +68 -0
- package/schemas/tools/add_ipv6_nd_prefix.json +35 -0
- package/schemas/tools/add_ipv6_route.json +64 -0
- package/schemas/tools/add_romon_port.json +34 -0
- package/schemas/tools/add_switch_port_isolation.json +23 -0
- package/schemas/tools/add_switch_rule.json +96 -0
- package/schemas/tools/add_traffic_generator_port.json +23 -0
- package/schemas/tools/add_traffic_generator_stream.json +39 -0
- package/schemas/tools/add_traffic_monitor.json +54 -0
- package/schemas/tools/create_ipv6_dhcp_server.json +60 -0
- package/schemas/tools/create_ipv6_filter_rule.json +103 -0
- package/schemas/tools/create_ipv6_mangle_rule.json +110 -0
- package/schemas/tools/create_ipv6_nat_rule.json +88 -0
- package/schemas/tools/create_ipv6_pool.json +29 -0
- package/schemas/tools/create_ipv6_raw_rule.json +78 -0
- package/schemas/tools/delete_s3_backup.json +15 -0
- package/schemas/tools/disable_ipv6_address_list_entry.json +15 -0
- package/schemas/tools/disable_ipv6_dhcp_relay.json +14 -0
- package/schemas/tools/disable_ipv6_filter_rule.json +14 -0
- package/schemas/tools/disable_ipv6_mangle_rule.json +14 -0
- package/schemas/tools/disable_ipv6_nat_rule.json +14 -0
- package/schemas/tools/disable_ipv6_raw_rule.json +14 -0
- package/schemas/tools/disable_ipv6_route.json +14 -0
- package/schemas/tools/disable_switch_rule.json +14 -0
- package/schemas/tools/disable_traffic_monitor.json +14 -0
- package/schemas/tools/download_backup_from_s3.json +25 -0
- package/schemas/tools/enable_ipv6_address_list_entry.json +15 -0
- package/schemas/tools/enable_ipv6_dhcp_relay.json +14 -0
- package/schemas/tools/enable_ipv6_filter_rule.json +14 -0
- package/schemas/tools/enable_ipv6_mangle_rule.json +14 -0
- package/schemas/tools/enable_ipv6_nat_rule.json +14 -0
- package/schemas/tools/enable_ipv6_raw_rule.json +14 -0
- package/schemas/tools/enable_ipv6_route.json +14 -0
- package/schemas/tools/enable_switch_rule.json +14 -0
- package/schemas/tools/enable_traffic_monitor.json +14 -0
- package/schemas/tools/flood_ping.json +37 -0
- package/schemas/tools/get_bandwidth_server.json +7 -0
- package/schemas/tools/get_dot1x_client.json +15 -0
- package/schemas/tools/get_dot1x_server.json +15 -0
- package/schemas/tools/get_ipv6_address.json +15 -0
- package/schemas/tools/get_ipv6_address_list_entry.json +15 -0
- package/schemas/tools/get_ipv6_dhcp_client.json +15 -0
- package/schemas/tools/get_ipv6_dhcp_relay.json +14 -0
- package/schemas/tools/get_ipv6_dhcp_server.json +14 -0
- package/schemas/tools/get_ipv6_filter_rule.json +15 -0
- package/schemas/tools/get_ipv6_mangle_rule.json +15 -0
- package/schemas/tools/get_ipv6_nat_rule.json +15 -0
- package/schemas/tools/get_ipv6_nd.json +15 -0
- package/schemas/tools/get_ipv6_neighbor.json +15 -0
- package/schemas/tools/get_ipv6_pool.json +14 -0
- package/schemas/tools/get_ipv6_raw_rule.json +15 -0
- package/schemas/tools/get_ipv6_route.json +15 -0
- package/schemas/tools/get_ipv6_settings.json +7 -0
- package/schemas/tools/get_mac_ping.json +7 -0
- package/schemas/tools/get_mac_server.json +7 -0
- package/schemas/tools/get_mac_winbox.json +7 -0
- package/schemas/tools/get_queue_interface.json +15 -0
- package/schemas/tools/get_romon.json +7 -0
- package/schemas/tools/get_sms_settings.json +7 -0
- package/schemas/tools/get_sniffer_settings.json +7 -0
- package/schemas/tools/get_switch.json +15 -0
- package/schemas/tools/get_switch_port.json +15 -0
- package/schemas/tools/get_switch_port_isolation.json +15 -0
- package/schemas/tools/get_switch_rule.json +15 -0
- package/schemas/tools/get_traffic_monitor.json +14 -0
- package/schemas/tools/ip_scan.json +26 -0
- package/schemas/tools/list_bandwidth_server_sessions.json +12 -0
- package/schemas/tools/list_dot1x_clients.json +22 -0
- package/schemas/tools/list_dot1x_servers.json +18 -0
- package/schemas/tools/list_graphing.json +20 -0
- package/schemas/tools/list_ipv6_address_lists.json +24 -0
- package/schemas/tools/list_ipv6_addresses.json +31 -0
- package/schemas/tools/list_ipv6_dhcp_bindings.json +21 -0
- package/schemas/tools/list_ipv6_dhcp_clients.json +27 -0
- package/schemas/tools/list_ipv6_dhcp_options.json +11 -0
- package/schemas/tools/list_ipv6_dhcp_relays.json +21 -0
- package/schemas/tools/list_ipv6_dhcp_servers.json +26 -0
- package/schemas/tools/list_ipv6_filter_rules.json +43 -0
- package/schemas/tools/list_ipv6_mangle_rules.json +37 -0
- package/schemas/tools/list_ipv6_nat_rules.json +37 -0
- package/schemas/tools/list_ipv6_nd.json +18 -0
- package/schemas/tools/list_ipv6_nd_prefixes.json +21 -0
- package/schemas/tools/list_ipv6_neighbors.json +29 -0
- package/schemas/tools/list_ipv6_pool_used.json +12 -0
- package/schemas/tools/list_ipv6_pools.json +14 -0
- package/schemas/tools/list_ipv6_raw_rules.json +37 -0
- package/schemas/tools/list_ipv6_routes.json +34 -0
- package/schemas/tools/list_mac_server_sessions.json +11 -0
- package/schemas/tools/list_queue_interfaces.json +16 -0
- package/schemas/tools/list_romon_ports.json +11 -0
- package/schemas/tools/list_s3_backups.json +22 -0
- package/schemas/tools/list_sms_inbox.json +12 -0
- package/schemas/tools/list_sniffer_connections.json +7 -0
- package/schemas/tools/list_sniffer_hosts.json +11 -0
- package/schemas/tools/list_sniffer_packets.json +15 -0
- package/schemas/tools/list_sniffer_protocols.json +7 -0
- package/schemas/tools/list_switch_port_isolation.json +12 -0
- package/schemas/tools/list_switch_ports.json +16 -0
- package/schemas/tools/list_switch_rules.json +21 -0
- package/schemas/tools/list_switches.json +16 -0
- package/schemas/tools/list_traffic_generator_ports.json +11 -0
- package/schemas/tools/list_traffic_generator_streams.json +14 -0
- package/schemas/tools/list_traffic_monitors.json +21 -0
- package/schemas/tools/move_ipv6_filter_rule.json +21 -0
- package/schemas/tools/move_ipv6_mangle_rule.json +21 -0
- package/schemas/tools/move_ipv6_nat_rule.json +21 -0
- package/schemas/tools/move_ipv6_raw_rule.json +21 -0
- package/schemas/tools/profile_cpu.json +22 -0
- package/schemas/tools/release_ipv6_dhcp_client.json +14 -0
- package/schemas/tools/remove_dot1x_client.json +15 -0
- package/schemas/tools/remove_dot1x_server.json +15 -0
- package/schemas/tools/remove_graphing.json +24 -0
- package/schemas/tools/remove_ipv6_address.json +14 -0
- package/schemas/tools/remove_ipv6_address_list_entry.json +15 -0
- package/schemas/tools/remove_ipv6_dhcp_binding.json +15 -0
- package/schemas/tools/remove_ipv6_dhcp_client.json +14 -0
- package/schemas/tools/remove_ipv6_dhcp_option.json +14 -0
- package/schemas/tools/remove_ipv6_dhcp_relay.json +14 -0
- package/schemas/tools/remove_ipv6_dhcp_server.json +14 -0
- package/schemas/tools/remove_ipv6_filter_rule.json +14 -0
- package/schemas/tools/remove_ipv6_mangle_rule.json +14 -0
- package/schemas/tools/remove_ipv6_nat_rule.json +14 -0
- package/schemas/tools/remove_ipv6_nd.json +15 -0
- package/schemas/tools/remove_ipv6_nd_prefix.json +15 -0
- package/schemas/tools/remove_ipv6_neighbor.json +15 -0
- package/schemas/tools/remove_ipv6_pool.json +14 -0
- package/schemas/tools/remove_ipv6_raw_rule.json +14 -0
- package/schemas/tools/remove_ipv6_route.json +15 -0
- package/schemas/tools/remove_romon_port.json +15 -0
- package/schemas/tools/remove_switch_port_isolation.json +15 -0
- package/schemas/tools/remove_switch_rule.json +14 -0
- package/schemas/tools/remove_traffic_generator_port.json +15 -0
- package/schemas/tools/remove_traffic_generator_stream.json +15 -0
- package/schemas/tools/remove_traffic_monitor.json +14 -0
- package/schemas/tools/renew_ipv6_dhcp_client.json +14 -0
- package/schemas/tools/s3_backup_info.json +15 -0
- package/schemas/tools/s3_backup_status.json +7 -0
- package/schemas/tools/save_sniffer.json +15 -0
- package/schemas/tools/send_sms.json +34 -0
- package/schemas/tools/show_firewall_filter.json +7 -0
- package/schemas/tools/show_interfaces.json +7 -0
- package/schemas/tools/show_system_dashboard.json +7 -0
- package/schemas/tools/speed_test.json +47 -0
- package/schemas/tools/start_sniffer.json +7 -0
- package/schemas/tools/start_traffic_generator.json +14 -0
- package/schemas/tools/stop_sniffer.json +7 -0
- package/schemas/tools/stop_traffic_generator.json +7 -0
- package/schemas/tools/update_bandwidth_server.json +24 -0
- package/schemas/tools/update_dot1x_client.json +36 -0
- package/schemas/tools/update_dot1x_server.json +54 -0
- package/schemas/tools/update_ipv6_filter_rule.json +77 -0
- package/schemas/tools/update_ipv6_mangle_rule.json +80 -0
- package/schemas/tools/update_ipv6_nat_rule.json +65 -0
- package/schemas/tools/update_ipv6_nd.json +64 -0
- package/schemas/tools/update_ipv6_pool.json +28 -0
- package/schemas/tools/update_ipv6_raw_rule.json +59 -0
- package/schemas/tools/update_ipv6_settings.json +35 -0
- package/schemas/tools/update_mac_ping.json +15 -0
- package/schemas/tools/update_mac_server.json +15 -0
- package/schemas/tools/update_mac_winbox.json +15 -0
- package/schemas/tools/update_queue_interface.json +20 -0
- package/schemas/tools/update_romon.json +19 -0
- package/schemas/tools/update_sms_settings.json +30 -0
- package/schemas/tools/update_sniffer_settings.json +39 -0
- package/schemas/tools/update_switch.json +34 -0
- package/schemas/tools/update_switch_port.json +39 -0
- package/schemas/tools/update_switch_port_isolation.json +22 -0
- package/schemas/tools/update_switch_rule.json +83 -0
- package/schemas/tools/update_traffic_monitor.json +46 -0
- package/schemas/tools/upload_backup_to_s3.json +25 -0
- package/schemas/tools/wake_on_lan.json +19 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_switch_rule",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"switch": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "Owning switch chip, e.g. 'switch1'"
|
|
9
|
+
},
|
|
10
|
+
"ports": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Comma-separated source ports the rule matches"
|
|
13
|
+
},
|
|
14
|
+
"src_address": {
|
|
15
|
+
"description": "Source IP/mask",
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"dst_address": {
|
|
19
|
+
"description": "Destination IP/mask",
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"src_mac_address": {
|
|
23
|
+
"description": "Source MAC/mask",
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"dst_mac_address": {
|
|
27
|
+
"description": "Destination MAC/mask",
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"src_port": {
|
|
31
|
+
"description": "Layer-4 source port(s)",
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"dst_port": {
|
|
35
|
+
"description": "Layer-4 destination port(s)",
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"protocol": {
|
|
39
|
+
"description": "IP protocol, e.g. 'tcp'",
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"mac_protocol": {
|
|
43
|
+
"description": "MAC protocol, e.g. 'ip', 'arp', 'vlan' or a number",
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"vlan_id": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"vlan_priority": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"dscp": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"flow_label": {
|
|
56
|
+
"description": "IPv6 flow label",
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"new_dst_ports": {
|
|
60
|
+
"description": "Redirect target ports; empty string drops the traffic",
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
"new_vlan_id": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"new_vlan_priority": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"redirect_to_cpu": {
|
|
70
|
+
"type": "boolean"
|
|
71
|
+
},
|
|
72
|
+
"copy_to_cpu": {
|
|
73
|
+
"type": "boolean"
|
|
74
|
+
},
|
|
75
|
+
"mirror": {
|
|
76
|
+
"type": "boolean"
|
|
77
|
+
},
|
|
78
|
+
"rate": {
|
|
79
|
+
"description": "Rate limit in bits/second",
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
"comment": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"disabled": {
|
|
86
|
+
"default": false,
|
|
87
|
+
"type": "boolean"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"required": [
|
|
91
|
+
"switch",
|
|
92
|
+
"ports",
|
|
93
|
+
"disabled"
|
|
94
|
+
],
|
|
95
|
+
"additionalProperties": false
|
|
96
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_traffic_generator_port",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"name": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"interface": {
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"disabled": {
|
|
13
|
+
"default": false,
|
|
14
|
+
"type": "boolean"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"required": [
|
|
18
|
+
"name",
|
|
19
|
+
"interface",
|
|
20
|
+
"disabled"
|
|
21
|
+
],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_traffic_generator_stream",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"name": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"port": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Traffic-generator port name"
|
|
12
|
+
},
|
|
13
|
+
"tx_template": {
|
|
14
|
+
"description": "Packet-template name to transmit",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"packet_size": {
|
|
18
|
+
"description": "Packet size or range",
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"tx_rate": {
|
|
22
|
+
"description": "Transmit rate in bits/second",
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"comment": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"disabled": {
|
|
29
|
+
"default": false,
|
|
30
|
+
"type": "boolean"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": [
|
|
34
|
+
"name",
|
|
35
|
+
"port",
|
|
36
|
+
"disabled"
|
|
37
|
+
],
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "add_traffic_monitor",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"name": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"interface": {
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"traffic": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": [
|
|
15
|
+
"received",
|
|
16
|
+
"transmitted"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"trigger": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"enum": [
|
|
22
|
+
"above",
|
|
23
|
+
"below",
|
|
24
|
+
"always"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"threshold": {
|
|
28
|
+
"type": "integer",
|
|
29
|
+
"minimum": -9007199254740991,
|
|
30
|
+
"maximum": 9007199254740991,
|
|
31
|
+
"description": "Rate threshold in bits/second"
|
|
32
|
+
},
|
|
33
|
+
"on_event": {
|
|
34
|
+
"description": "Script source/name to run on trigger",
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"comment": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"disabled": {
|
|
41
|
+
"default": false,
|
|
42
|
+
"type": "boolean"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"name",
|
|
47
|
+
"interface",
|
|
48
|
+
"traffic",
|
|
49
|
+
"trigger",
|
|
50
|
+
"threshold",
|
|
51
|
+
"disabled"
|
|
52
|
+
],
|
|
53
|
+
"additionalProperties": false
|
|
54
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "create_ipv6_dhcp_server",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"name": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"interface": {
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"address_pool": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "IPv6 pool name the server delegates from"
|
|
15
|
+
},
|
|
16
|
+
"lease_time": {
|
|
17
|
+
"default": "3d",
|
|
18
|
+
"description": "Lease duration e.g. '1d', '12h', '30m'",
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"binding_script": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"rapid_commit": {
|
|
25
|
+
"type": "boolean"
|
|
26
|
+
},
|
|
27
|
+
"preference": {
|
|
28
|
+
"type": "integer",
|
|
29
|
+
"minimum": 0,
|
|
30
|
+
"maximum": 255
|
|
31
|
+
},
|
|
32
|
+
"route_distance": {
|
|
33
|
+
"type": "integer",
|
|
34
|
+
"minimum": -9007199254740991,
|
|
35
|
+
"maximum": 9007199254740991
|
|
36
|
+
},
|
|
37
|
+
"dhcp_option": {
|
|
38
|
+
"description": "Custom DHCPv6 option names",
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"comment": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"disabled": {
|
|
48
|
+
"default": false,
|
|
49
|
+
"type": "boolean"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": [
|
|
53
|
+
"name",
|
|
54
|
+
"interface",
|
|
55
|
+
"address_pool",
|
|
56
|
+
"lease_time",
|
|
57
|
+
"disabled"
|
|
58
|
+
],
|
|
59
|
+
"additionalProperties": false
|
|
60
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "create_ipv6_filter_rule",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"chain": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"enum": [
|
|
9
|
+
"input",
|
|
10
|
+
"forward",
|
|
11
|
+
"output"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"action": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"enum": [
|
|
17
|
+
"accept",
|
|
18
|
+
"drop",
|
|
19
|
+
"reject",
|
|
20
|
+
"jump",
|
|
21
|
+
"log",
|
|
22
|
+
"passthrough",
|
|
23
|
+
"return",
|
|
24
|
+
"tarpit",
|
|
25
|
+
"fasttrack-connection"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"src_address": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"dst_address": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"src_port": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"dst_port": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"protocol": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"in_interface": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"out_interface": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"in_interface_list": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"out_interface_list": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"connection_state": {
|
|
56
|
+
"description": "Comma-separated e.g. \"established,related,new,invalid\"",
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"src_address_list": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"dst_address_list": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"hop_limit": {
|
|
66
|
+
"description": "Hop-limit expression e.g. \"equal:1\" or \"less:64\"",
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"limit": {
|
|
70
|
+
"description": "RouterOS rate/burst string e.g. \"10,5:packet\"",
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"tcp_flags": {
|
|
74
|
+
"description": "RouterOS flag expression e.g. \"syn,!ack\"",
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
"comment": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
},
|
|
80
|
+
"disabled": {
|
|
81
|
+
"default": false,
|
|
82
|
+
"type": "boolean"
|
|
83
|
+
},
|
|
84
|
+
"log": {
|
|
85
|
+
"default": false,
|
|
86
|
+
"type": "boolean"
|
|
87
|
+
},
|
|
88
|
+
"log_prefix": {
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"place_before": {
|
|
92
|
+
"description": "Rule number or ID (*N) to insert before e.g. \"0\" or \"*3\"",
|
|
93
|
+
"type": "string"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": [
|
|
97
|
+
"chain",
|
|
98
|
+
"action",
|
|
99
|
+
"disabled",
|
|
100
|
+
"log"
|
|
101
|
+
],
|
|
102
|
+
"additionalProperties": false
|
|
103
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "create_ipv6_mangle_rule",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"chain": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"enum": [
|
|
9
|
+
"prerouting",
|
|
10
|
+
"input",
|
|
11
|
+
"forward",
|
|
12
|
+
"output",
|
|
13
|
+
"postrouting"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"action": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": [
|
|
19
|
+
"accept",
|
|
20
|
+
"drop",
|
|
21
|
+
"mark-connection",
|
|
22
|
+
"mark-packet",
|
|
23
|
+
"mark-routing",
|
|
24
|
+
"change-dscp",
|
|
25
|
+
"change-hop-limit",
|
|
26
|
+
"change-mss",
|
|
27
|
+
"jump",
|
|
28
|
+
"log",
|
|
29
|
+
"passthrough",
|
|
30
|
+
"return",
|
|
31
|
+
"set-priority",
|
|
32
|
+
"sniff-tzsp"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"src_address": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"dst_address": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"src_port": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"dst_port": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"protocol": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"in_interface": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"out_interface": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"connection_mark": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"packet_mark": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"routing_mark": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"new_connection_mark": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"new_packet_mark": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"new_routing_mark": {
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
"new_dscp": {
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
"new_hop_limit": {
|
|
78
|
+
"description": "e.g. \"decrement\", \"increment\", or \"set:64\"",
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"passthrough": {
|
|
82
|
+
"type": "boolean"
|
|
83
|
+
},
|
|
84
|
+
"comment": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
},
|
|
87
|
+
"disabled": {
|
|
88
|
+
"default": false,
|
|
89
|
+
"type": "boolean"
|
|
90
|
+
},
|
|
91
|
+
"log": {
|
|
92
|
+
"default": false,
|
|
93
|
+
"type": "boolean"
|
|
94
|
+
},
|
|
95
|
+
"log_prefix": {
|
|
96
|
+
"type": "string"
|
|
97
|
+
},
|
|
98
|
+
"place_before": {
|
|
99
|
+
"description": "Rule number or ID (*N) to insert before",
|
|
100
|
+
"type": "string"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"required": [
|
|
104
|
+
"chain",
|
|
105
|
+
"action",
|
|
106
|
+
"disabled",
|
|
107
|
+
"log"
|
|
108
|
+
],
|
|
109
|
+
"additionalProperties": false
|
|
110
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "create_ipv6_nat_rule",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"chain": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"enum": [
|
|
9
|
+
"srcnat",
|
|
10
|
+
"dstnat"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"action": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": [
|
|
16
|
+
"accept",
|
|
17
|
+
"drop",
|
|
18
|
+
"masquerade",
|
|
19
|
+
"src-nat",
|
|
20
|
+
"dst-nat",
|
|
21
|
+
"netmap",
|
|
22
|
+
"redirect",
|
|
23
|
+
"return",
|
|
24
|
+
"jump",
|
|
25
|
+
"passthrough",
|
|
26
|
+
"log"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"src_address": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"dst_address": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"src_port": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"dst_port": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"protocol": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"in_interface": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"out_interface": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"to_address": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"to_ports": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"src_address_list": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"dst_address_list": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"comment": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"disabled": {
|
|
66
|
+
"default": false,
|
|
67
|
+
"type": "boolean"
|
|
68
|
+
},
|
|
69
|
+
"log": {
|
|
70
|
+
"default": false,
|
|
71
|
+
"type": "boolean"
|
|
72
|
+
},
|
|
73
|
+
"log_prefix": {
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
"place_before": {
|
|
77
|
+
"description": "Rule number or ID (*N) to insert before",
|
|
78
|
+
"type": "string"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"required": [
|
|
82
|
+
"chain",
|
|
83
|
+
"action",
|
|
84
|
+
"disabled",
|
|
85
|
+
"log"
|
|
86
|
+
],
|
|
87
|
+
"additionalProperties": false
|
|
88
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "create_ipv6_pool",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"name": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"prefix": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Overall block, e.g. '2001:db8::/48'"
|
|
12
|
+
},
|
|
13
|
+
"prefix_length": {
|
|
14
|
+
"type": "integer",
|
|
15
|
+
"minimum": 1,
|
|
16
|
+
"maximum": 128,
|
|
17
|
+
"description": "Size of each carved delegation, e.g. 64"
|
|
18
|
+
},
|
|
19
|
+
"comment": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": [
|
|
24
|
+
"name",
|
|
25
|
+
"prefix",
|
|
26
|
+
"prefix_length"
|
|
27
|
+
],
|
|
28
|
+
"additionalProperties": false
|
|
29
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "create_ipv6_raw_rule",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"chain": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"enum": [
|
|
9
|
+
"prerouting",
|
|
10
|
+
"output"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"action": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": [
|
|
16
|
+
"accept",
|
|
17
|
+
"drop",
|
|
18
|
+
"notrack",
|
|
19
|
+
"jump",
|
|
20
|
+
"log",
|
|
21
|
+
"passthrough",
|
|
22
|
+
"return"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"src_address": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"dst_address": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"src_port": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"dst_port": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"protocol": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"in_interface": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"out_interface": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"src_address_list": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"dst_address_list": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"comment": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"disabled": {
|
|
56
|
+
"default": false,
|
|
57
|
+
"type": "boolean"
|
|
58
|
+
},
|
|
59
|
+
"log": {
|
|
60
|
+
"default": false,
|
|
61
|
+
"type": "boolean"
|
|
62
|
+
},
|
|
63
|
+
"log_prefix": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"place_before": {
|
|
67
|
+
"description": "Rule number or ID (*N) to insert before",
|
|
68
|
+
"type": "string"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"required": [
|
|
72
|
+
"chain",
|
|
73
|
+
"action",
|
|
74
|
+
"disabled",
|
|
75
|
+
"log"
|
|
76
|
+
],
|
|
77
|
+
"additionalProperties": false
|
|
78
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "delete_s3_backup",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"key": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "S3 object key to delete"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"required": [
|
|
12
|
+
"key"
|
|
13
|
+
],
|
|
14
|
+
"additionalProperties": false
|
|
15
|
+
}
|