@usex/mikrotik-mcp 1.0.0 → 2.0.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.
Files changed (196) hide show
  1. package/README.md +23 -8
  2. package/dist/cli.js +8545 -2321
  3. package/dist/index.d.ts +42 -2
  4. package/dist/index.js +7787 -2232
  5. package/dist/ui/dashboard.html +19 -0
  6. package/dist/ui/firewall.html +20 -0
  7. package/dist/ui/interfaces.html +20 -0
  8. package/dist/ui/observability.html +27 -0
  9. package/dist/ui/records.html +20 -0
  10. package/package.json +63 -50
  11. package/schemas/README.md +1 -1
  12. package/schemas/config.schema.json +112 -21
  13. package/schemas/tool-catalog.json +11783 -5555
  14. package/schemas/tools/add_dot1x_client.json +42 -0
  15. package/schemas/tools/add_dot1x_server.json +60 -0
  16. package/schemas/tools/add_graphing_interface.json +23 -0
  17. package/schemas/tools/add_graphing_queue.json +22 -0
  18. package/schemas/tools/add_graphing_resource.json +14 -0
  19. package/schemas/tools/add_ipv6_address.json +43 -0
  20. package/schemas/tools/add_ipv6_address_list_entry.json +32 -0
  21. package/schemas/tools/add_ipv6_default_route.json +34 -0
  22. package/schemas/tools/add_ipv6_dhcp_binding.json +42 -0
  23. package/schemas/tools/add_ipv6_dhcp_client.json +69 -0
  24. package/schemas/tools/add_ipv6_dhcp_option.json +29 -0
  25. package/schemas/tools/add_ipv6_dhcp_relay.json +35 -0
  26. package/schemas/tools/add_ipv6_nd.json +68 -0
  27. package/schemas/tools/add_ipv6_nd_prefix.json +35 -0
  28. package/schemas/tools/add_ipv6_route.json +64 -0
  29. package/schemas/tools/add_romon_port.json +34 -0
  30. package/schemas/tools/add_switch_port_isolation.json +23 -0
  31. package/schemas/tools/add_switch_rule.json +96 -0
  32. package/schemas/tools/add_traffic_generator_port.json +23 -0
  33. package/schemas/tools/add_traffic_generator_stream.json +39 -0
  34. package/schemas/tools/add_traffic_monitor.json +54 -0
  35. package/schemas/tools/create_ipv6_dhcp_server.json +60 -0
  36. package/schemas/tools/create_ipv6_filter_rule.json +103 -0
  37. package/schemas/tools/create_ipv6_mangle_rule.json +110 -0
  38. package/schemas/tools/create_ipv6_nat_rule.json +88 -0
  39. package/schemas/tools/create_ipv6_pool.json +29 -0
  40. package/schemas/tools/create_ipv6_raw_rule.json +78 -0
  41. package/schemas/tools/delete_s3_backup.json +15 -0
  42. package/schemas/tools/disable_ipv6_address_list_entry.json +15 -0
  43. package/schemas/tools/disable_ipv6_dhcp_relay.json +14 -0
  44. package/schemas/tools/disable_ipv6_filter_rule.json +14 -0
  45. package/schemas/tools/disable_ipv6_mangle_rule.json +14 -0
  46. package/schemas/tools/disable_ipv6_nat_rule.json +14 -0
  47. package/schemas/tools/disable_ipv6_raw_rule.json +14 -0
  48. package/schemas/tools/disable_ipv6_route.json +14 -0
  49. package/schemas/tools/disable_switch_rule.json +14 -0
  50. package/schemas/tools/disable_traffic_monitor.json +14 -0
  51. package/schemas/tools/download_backup_from_s3.json +25 -0
  52. package/schemas/tools/enable_ipv6_address_list_entry.json +15 -0
  53. package/schemas/tools/enable_ipv6_dhcp_relay.json +14 -0
  54. package/schemas/tools/enable_ipv6_filter_rule.json +14 -0
  55. package/schemas/tools/enable_ipv6_mangle_rule.json +14 -0
  56. package/schemas/tools/enable_ipv6_nat_rule.json +14 -0
  57. package/schemas/tools/enable_ipv6_raw_rule.json +14 -0
  58. package/schemas/tools/enable_ipv6_route.json +14 -0
  59. package/schemas/tools/enable_switch_rule.json +14 -0
  60. package/schemas/tools/enable_traffic_monitor.json +14 -0
  61. package/schemas/tools/flood_ping.json +37 -0
  62. package/schemas/tools/get_bandwidth_server.json +7 -0
  63. package/schemas/tools/get_dot1x_client.json +15 -0
  64. package/schemas/tools/get_dot1x_server.json +15 -0
  65. package/schemas/tools/get_ipv6_address.json +15 -0
  66. package/schemas/tools/get_ipv6_address_list_entry.json +15 -0
  67. package/schemas/tools/get_ipv6_dhcp_client.json +15 -0
  68. package/schemas/tools/get_ipv6_dhcp_relay.json +14 -0
  69. package/schemas/tools/get_ipv6_dhcp_server.json +14 -0
  70. package/schemas/tools/get_ipv6_filter_rule.json +15 -0
  71. package/schemas/tools/get_ipv6_mangle_rule.json +15 -0
  72. package/schemas/tools/get_ipv6_nat_rule.json +15 -0
  73. package/schemas/tools/get_ipv6_nd.json +15 -0
  74. package/schemas/tools/get_ipv6_neighbor.json +15 -0
  75. package/schemas/tools/get_ipv6_pool.json +14 -0
  76. package/schemas/tools/get_ipv6_raw_rule.json +15 -0
  77. package/schemas/tools/get_ipv6_route.json +15 -0
  78. package/schemas/tools/get_ipv6_settings.json +7 -0
  79. package/schemas/tools/get_mac_ping.json +7 -0
  80. package/schemas/tools/get_mac_server.json +7 -0
  81. package/schemas/tools/get_mac_winbox.json +7 -0
  82. package/schemas/tools/get_queue_interface.json +15 -0
  83. package/schemas/tools/get_romon.json +7 -0
  84. package/schemas/tools/get_sms_settings.json +7 -0
  85. package/schemas/tools/get_sniffer_settings.json +7 -0
  86. package/schemas/tools/get_switch.json +15 -0
  87. package/schemas/tools/get_switch_port.json +15 -0
  88. package/schemas/tools/get_switch_port_isolation.json +15 -0
  89. package/schemas/tools/get_switch_rule.json +15 -0
  90. package/schemas/tools/get_traffic_monitor.json +14 -0
  91. package/schemas/tools/ip_scan.json +26 -0
  92. package/schemas/tools/list_bandwidth_server_sessions.json +12 -0
  93. package/schemas/tools/list_dot1x_clients.json +22 -0
  94. package/schemas/tools/list_dot1x_servers.json +18 -0
  95. package/schemas/tools/list_graphing.json +20 -0
  96. package/schemas/tools/list_ipv6_address_lists.json +24 -0
  97. package/schemas/tools/list_ipv6_addresses.json +31 -0
  98. package/schemas/tools/list_ipv6_dhcp_bindings.json +21 -0
  99. package/schemas/tools/list_ipv6_dhcp_clients.json +27 -0
  100. package/schemas/tools/list_ipv6_dhcp_options.json +11 -0
  101. package/schemas/tools/list_ipv6_dhcp_relays.json +21 -0
  102. package/schemas/tools/list_ipv6_dhcp_servers.json +26 -0
  103. package/schemas/tools/list_ipv6_filter_rules.json +43 -0
  104. package/schemas/tools/list_ipv6_mangle_rules.json +37 -0
  105. package/schemas/tools/list_ipv6_nat_rules.json +37 -0
  106. package/schemas/tools/list_ipv6_nd.json +18 -0
  107. package/schemas/tools/list_ipv6_nd_prefixes.json +21 -0
  108. package/schemas/tools/list_ipv6_neighbors.json +29 -0
  109. package/schemas/tools/list_ipv6_pool_used.json +12 -0
  110. package/schemas/tools/list_ipv6_pools.json +14 -0
  111. package/schemas/tools/list_ipv6_raw_rules.json +37 -0
  112. package/schemas/tools/list_ipv6_routes.json +34 -0
  113. package/schemas/tools/list_mac_server_sessions.json +11 -0
  114. package/schemas/tools/list_queue_interfaces.json +16 -0
  115. package/schemas/tools/list_romon_ports.json +11 -0
  116. package/schemas/tools/list_s3_backups.json +22 -0
  117. package/schemas/tools/list_sms_inbox.json +12 -0
  118. package/schemas/tools/list_sniffer_connections.json +7 -0
  119. package/schemas/tools/list_sniffer_hosts.json +11 -0
  120. package/schemas/tools/list_sniffer_packets.json +15 -0
  121. package/schemas/tools/list_sniffer_protocols.json +7 -0
  122. package/schemas/tools/list_switch_port_isolation.json +12 -0
  123. package/schemas/tools/list_switch_ports.json +16 -0
  124. package/schemas/tools/list_switch_rules.json +21 -0
  125. package/schemas/tools/list_switches.json +16 -0
  126. package/schemas/tools/list_traffic_generator_ports.json +11 -0
  127. package/schemas/tools/list_traffic_generator_streams.json +14 -0
  128. package/schemas/tools/list_traffic_monitors.json +21 -0
  129. package/schemas/tools/move_ipv6_filter_rule.json +21 -0
  130. package/schemas/tools/move_ipv6_mangle_rule.json +21 -0
  131. package/schemas/tools/move_ipv6_nat_rule.json +21 -0
  132. package/schemas/tools/move_ipv6_raw_rule.json +21 -0
  133. package/schemas/tools/profile_cpu.json +22 -0
  134. package/schemas/tools/release_ipv6_dhcp_client.json +14 -0
  135. package/schemas/tools/remove_dot1x_client.json +15 -0
  136. package/schemas/tools/remove_dot1x_server.json +15 -0
  137. package/schemas/tools/remove_graphing.json +24 -0
  138. package/schemas/tools/remove_ipv6_address.json +14 -0
  139. package/schemas/tools/remove_ipv6_address_list_entry.json +15 -0
  140. package/schemas/tools/remove_ipv6_dhcp_binding.json +15 -0
  141. package/schemas/tools/remove_ipv6_dhcp_client.json +14 -0
  142. package/schemas/tools/remove_ipv6_dhcp_option.json +14 -0
  143. package/schemas/tools/remove_ipv6_dhcp_relay.json +14 -0
  144. package/schemas/tools/remove_ipv6_dhcp_server.json +14 -0
  145. package/schemas/tools/remove_ipv6_filter_rule.json +14 -0
  146. package/schemas/tools/remove_ipv6_mangle_rule.json +14 -0
  147. package/schemas/tools/remove_ipv6_nat_rule.json +14 -0
  148. package/schemas/tools/remove_ipv6_nd.json +15 -0
  149. package/schemas/tools/remove_ipv6_nd_prefix.json +15 -0
  150. package/schemas/tools/remove_ipv6_neighbor.json +15 -0
  151. package/schemas/tools/remove_ipv6_pool.json +14 -0
  152. package/schemas/tools/remove_ipv6_raw_rule.json +14 -0
  153. package/schemas/tools/remove_ipv6_route.json +15 -0
  154. package/schemas/tools/remove_romon_port.json +15 -0
  155. package/schemas/tools/remove_switch_port_isolation.json +15 -0
  156. package/schemas/tools/remove_switch_rule.json +14 -0
  157. package/schemas/tools/remove_traffic_generator_port.json +15 -0
  158. package/schemas/tools/remove_traffic_generator_stream.json +15 -0
  159. package/schemas/tools/remove_traffic_monitor.json +14 -0
  160. package/schemas/tools/renew_ipv6_dhcp_client.json +14 -0
  161. package/schemas/tools/s3_backup_info.json +15 -0
  162. package/schemas/tools/s3_backup_status.json +7 -0
  163. package/schemas/tools/save_sniffer.json +15 -0
  164. package/schemas/tools/send_sms.json +34 -0
  165. package/schemas/tools/show_firewall_filter.json +7 -0
  166. package/schemas/tools/show_interfaces.json +7 -0
  167. package/schemas/tools/show_system_dashboard.json +7 -0
  168. package/schemas/tools/speed_test.json +47 -0
  169. package/schemas/tools/start_sniffer.json +7 -0
  170. package/schemas/tools/start_traffic_generator.json +14 -0
  171. package/schemas/tools/stop_sniffer.json +7 -0
  172. package/schemas/tools/stop_traffic_generator.json +7 -0
  173. package/schemas/tools/update_bandwidth_server.json +24 -0
  174. package/schemas/tools/update_dot1x_client.json +36 -0
  175. package/schemas/tools/update_dot1x_server.json +54 -0
  176. package/schemas/tools/update_ipv6_filter_rule.json +77 -0
  177. package/schemas/tools/update_ipv6_mangle_rule.json +80 -0
  178. package/schemas/tools/update_ipv6_nat_rule.json +65 -0
  179. package/schemas/tools/update_ipv6_nd.json +64 -0
  180. package/schemas/tools/update_ipv6_pool.json +28 -0
  181. package/schemas/tools/update_ipv6_raw_rule.json +59 -0
  182. package/schemas/tools/update_ipv6_settings.json +35 -0
  183. package/schemas/tools/update_mac_ping.json +15 -0
  184. package/schemas/tools/update_mac_server.json +15 -0
  185. package/schemas/tools/update_mac_winbox.json +15 -0
  186. package/schemas/tools/update_queue_interface.json +20 -0
  187. package/schemas/tools/update_romon.json +19 -0
  188. package/schemas/tools/update_sms_settings.json +30 -0
  189. package/schemas/tools/update_sniffer_settings.json +39 -0
  190. package/schemas/tools/update_switch.json +34 -0
  191. package/schemas/tools/update_switch_port.json +39 -0
  192. package/schemas/tools/update_switch_port_isolation.json +22 -0
  193. package/schemas/tools/update_switch_rule.json +83 -0
  194. package/schemas/tools/update_traffic_monitor.json +46 -0
  195. package/schemas/tools/upload_backup_to_s3.json +25 -0
  196. 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
+ }