@usex/mikrotik-mcp 3.23.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 +4174 -2644
- package/dist/index.js +4122 -2641
- package/dist/ui/connected-devices.html +21 -0
- package/dist/ui/dashboard.html +1 -1
- package/dist/ui/firewall-audit.html +3 -3
- package/dist/ui/firewall.html +3 -3
- package/dist/ui/interfaces.html +3 -3
- package/dist/ui/observability.html +43 -43
- package/dist/ui/records.html +3 -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
|
@@ -10,12 +10,34 @@
|
|
|
10
10
|
"description": "Match IP/CIDR, e.g. '10.0.0.0/24'",
|
|
11
11
|
"type": "string"
|
|
12
12
|
},
|
|
13
|
+
"filter_ipv6_address": {
|
|
14
|
+
"description": "Match IPv6/prefix, e.g. '2001:db8::/64'",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"filter_mac_address": {
|
|
18
|
+
"description": "Match MAC address",
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
13
21
|
"filter_port": {
|
|
14
22
|
"type": "string"
|
|
15
23
|
},
|
|
16
24
|
"filter_mac_protocol": {
|
|
17
25
|
"type": "string"
|
|
18
26
|
},
|
|
27
|
+
"filter_direction": {
|
|
28
|
+
"description": "Capture direction: any, rx, or tx",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"enum": ["any", "rx", "tx"]
|
|
31
|
+
},
|
|
32
|
+
"filter_operator_between_entries": {
|
|
33
|
+
"description": "How filter entries combine: and / or",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"enum": ["and", "or"]
|
|
36
|
+
},
|
|
37
|
+
"filter_stream": {
|
|
38
|
+
"description": "Capture only TZSP-streamed packets",
|
|
39
|
+
"type": "boolean"
|
|
40
|
+
},
|
|
19
41
|
"streaming_enabled": {
|
|
20
42
|
"type": "boolean"
|
|
21
43
|
},
|
|
@@ -27,10 +49,20 @@
|
|
|
27
49
|
"description": "Buffer size, e.g. '10M'",
|
|
28
50
|
"type": "string"
|
|
29
51
|
},
|
|
52
|
+
"memory_scroll": {
|
|
53
|
+
"description": "Overwrite oldest packets when buffer is full",
|
|
54
|
+
"type": "boolean"
|
|
55
|
+
},
|
|
30
56
|
"file_name": {
|
|
31
57
|
"description": "Capture file name (.pcap)",
|
|
32
58
|
"type": "string"
|
|
33
59
|
},
|
|
60
|
+
"file_limit": {
|
|
61
|
+
"description": "Max capture file size in KiB",
|
|
62
|
+
"type": "integer",
|
|
63
|
+
"minimum": -9007199254740991,
|
|
64
|
+
"maximum": 9007199254740991
|
|
65
|
+
},
|
|
34
66
|
"only_headers": {
|
|
35
67
|
"type": "boolean"
|
|
36
68
|
}
|
|
@@ -25,6 +25,14 @@
|
|
|
25
25
|
"mirror_egress": {
|
|
26
26
|
"description": "Egress mirror source port (newer chips), or 'none'",
|
|
27
27
|
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"mirror_egress_target": {
|
|
30
|
+
"description": "Egress mirror target port (88E6393X/88E6191X/88E6190 chips), or 'none'",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"switch_all_ports": {
|
|
34
|
+
"description": "Switch all ports together (RB450G/RB435G/RB850Gx2 only)",
|
|
35
|
+
"type": "boolean"
|
|
28
36
|
}
|
|
29
37
|
},
|
|
30
38
|
"required": ["switch_id"],
|
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
"dst_address": {
|
|
19
19
|
"type": "string"
|
|
20
20
|
},
|
|
21
|
+
"src_address6": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"dst_address6": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
21
27
|
"src_mac_address": {
|
|
22
28
|
"type": "string"
|
|
23
29
|
},
|
|
@@ -36,6 +42,10 @@
|
|
|
36
42
|
"mac_protocol": {
|
|
37
43
|
"type": "string"
|
|
38
44
|
},
|
|
45
|
+
"vlan_header": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"enum": ["any", "not-present", "present"]
|
|
48
|
+
},
|
|
39
49
|
"vlan_id": {
|
|
40
50
|
"type": "string"
|
|
41
51
|
},
|
|
@@ -24,6 +24,14 @@
|
|
|
24
24
|
"attributes": {
|
|
25
25
|
"type": "string"
|
|
26
26
|
},
|
|
27
|
+
"caller_id": {
|
|
28
|
+
"description": "Caller ID the user is restricted to (e.g. MAC)",
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"otp_secret": {
|
|
32
|
+
"description": "Base32 OTP shared secret for two-factor auth",
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
27
35
|
"comment": {
|
|
28
36
|
"type": "string"
|
|
29
37
|
},
|
|
@@ -38,6 +38,19 @@
|
|
|
38
38
|
},
|
|
39
39
|
"arp_timeout": {
|
|
40
40
|
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"loop_protect": {
|
|
43
|
+
"description": "Loop protection: default, on, off",
|
|
44
|
+
"type": "string",
|
|
45
|
+
"enum": ["default", "on", "off"]
|
|
46
|
+
},
|
|
47
|
+
"loop_protect_disable_time": {
|
|
48
|
+
"description": "Time to disable interface on loop detection, e.g. '5m' (0 = forever)",
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"loop_protect_send_interval": {
|
|
52
|
+
"description": "Interval between loop-protect probe packets, e.g. '5s'",
|
|
53
|
+
"type": "string"
|
|
41
54
|
}
|
|
42
55
|
},
|
|
43
56
|
"required": ["name"],
|
|
@@ -24,6 +24,40 @@
|
|
|
24
24
|
"persistent_keepalive": {
|
|
25
25
|
"type": "string"
|
|
26
26
|
},
|
|
27
|
+
"name": {
|
|
28
|
+
"description": "optional peer name label",
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"private_key": {
|
|
32
|
+
"description": "peer's private key (lets the router generate this peer's client config)",
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"responder": {
|
|
36
|
+
"description": "only respond to handshakes, never initiate",
|
|
37
|
+
"type": "boolean"
|
|
38
|
+
},
|
|
39
|
+
"client_address": {
|
|
40
|
+
"description": "client tunnel address(es) for the generated client config",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"client_dns": {
|
|
44
|
+
"description": "DNS server(s) written into the generated client config",
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"client_endpoint": {
|
|
48
|
+
"description": "server endpoint host[:port] written into the generated client config",
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"client_keepalive": {
|
|
52
|
+
"description": "client persistent-keepalive for the generated config e.g. \"25s\"",
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"client_listen_port": {
|
|
56
|
+
"description": "listen-port written into the generated client config",
|
|
57
|
+
"type": "integer",
|
|
58
|
+
"minimum": -9007199254740991,
|
|
59
|
+
"maximum": 9007199254740991
|
|
60
|
+
},
|
|
27
61
|
"comment": {
|
|
28
62
|
"type": "string"
|
|
29
63
|
},
|
|
@@ -17,6 +17,97 @@
|
|
|
17
17
|
},
|
|
18
18
|
"comment": {
|
|
19
19
|
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"mtu": {
|
|
22
|
+
"description": "Interface MTU in bytes",
|
|
23
|
+
"type": "integer",
|
|
24
|
+
"minimum": -9007199254740991,
|
|
25
|
+
"maximum": 9007199254740991
|
|
26
|
+
},
|
|
27
|
+
"arp": {
|
|
28
|
+
"description": "ARP mode for the interface",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"enum": ["disabled", "enabled", "proxy-arp", "reply-only", "local-proxy-arp"]
|
|
31
|
+
},
|
|
32
|
+
"hide_ssid": {
|
|
33
|
+
"description": "Legacy: do not broadcast the SSID in beacons (AP modes)",
|
|
34
|
+
"type": "boolean"
|
|
35
|
+
},
|
|
36
|
+
"wireless_protocol": {
|
|
37
|
+
"description": "Legacy: wireless protocol, e.g. '802.11', 'nv2', 'nstreme'",
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"scan_list": {
|
|
41
|
+
"description": "Legacy: frequencies/ranges to scan (e.g. 'default' or '5180-5320')",
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"frequency": {
|
|
45
|
+
"description": "Legacy: operating frequency in MHz",
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"band": {
|
|
49
|
+
"description": "Legacy: band, e.g. '2ghz-b/g/n' or '5ghz-a/n/ac'",
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"channel_width": {
|
|
53
|
+
"description": "Legacy: channel width",
|
|
54
|
+
"type": "string",
|
|
55
|
+
"enum": ["20mhz", "40mhz", "80mhz", "160mhz", "20/40mhz-eC", "20/40mhz-Ce"]
|
|
56
|
+
},
|
|
57
|
+
"frequency_mode": {
|
|
58
|
+
"description": "Legacy: regulatory frequency mode",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"enum": ["manual-txpower", "regulatory-domain", "superchannel"]
|
|
61
|
+
},
|
|
62
|
+
"country": {
|
|
63
|
+
"description": "Legacy: regulatory country setting (e.g. 'united states')",
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"antenna_gain": {
|
|
67
|
+
"description": "Legacy: antenna gain in dBi used for tx-power calculations",
|
|
68
|
+
"type": "integer",
|
|
69
|
+
"minimum": -9007199254740991,
|
|
70
|
+
"maximum": 9007199254740991
|
|
71
|
+
},
|
|
72
|
+
"wds_mode": {
|
|
73
|
+
"description": "Legacy: WDS mode",
|
|
74
|
+
"type": "string",
|
|
75
|
+
"enum": ["disabled", "dynamic", "dynamic-mesh", "static", "static-mesh"]
|
|
76
|
+
},
|
|
77
|
+
"wds_default_bridge": {
|
|
78
|
+
"description": "Legacy: bridge that dynamic WDS interfaces are added to",
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"default_authentication": {
|
|
82
|
+
"description": "Legacy: allow clients not in the access-list to authenticate",
|
|
83
|
+
"type": "boolean"
|
|
84
|
+
},
|
|
85
|
+
"default_forwarding": {
|
|
86
|
+
"description": "Legacy: allow client-to-client forwarding by default",
|
|
87
|
+
"type": "boolean"
|
|
88
|
+
},
|
|
89
|
+
"tx_power": {
|
|
90
|
+
"description": "Legacy: manual transmit power in dBm",
|
|
91
|
+
"type": "integer",
|
|
92
|
+
"minimum": -9007199254740991,
|
|
93
|
+
"maximum": 9007199254740991
|
|
94
|
+
},
|
|
95
|
+
"tx_power_mode": {
|
|
96
|
+
"description": "Legacy: how tx-power is determined",
|
|
97
|
+
"type": "string",
|
|
98
|
+
"enum": ["default", "card-rates", "all-rates-fixed", "manual-table"]
|
|
99
|
+
},
|
|
100
|
+
"distance": {
|
|
101
|
+
"description": "Legacy: link distance ('dynamic', 'indoors', or a km value)",
|
|
102
|
+
"type": "string"
|
|
103
|
+
},
|
|
104
|
+
"disconnect_timeout": {
|
|
105
|
+
"description": "Legacy: time before a non-responding client is disconnected",
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
"security_profile": {
|
|
109
|
+
"description": "Legacy: name of the security profile to apply",
|
|
110
|
+
"type": "string"
|
|
20
111
|
}
|
|
21
112
|
},
|
|
22
113
|
"required": ["name"],
|