@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
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
"return",
|
|
21
21
|
"jump",
|
|
22
22
|
"passthrough",
|
|
23
|
-
"log"
|
|
23
|
+
"log",
|
|
24
|
+
"add-src-to-address-list",
|
|
25
|
+
"add-dst-to-address-list"
|
|
24
26
|
]
|
|
25
27
|
},
|
|
26
28
|
"src_address": {
|
|
@@ -56,6 +58,138 @@
|
|
|
56
58
|
"dst_address_list": {
|
|
57
59
|
"type": "string"
|
|
58
60
|
},
|
|
61
|
+
"in_interface_list": {
|
|
62
|
+
"description": "Ingress interface list, e.g. \"WAN\" or \"!LAN\"",
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"out_interface_list": {
|
|
66
|
+
"description": "Egress interface list",
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"src_address_type": {
|
|
70
|
+
"description": "\"unicast\" / \"local\" / \"multicast\" / etc.",
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"dst_address_type": {
|
|
74
|
+
"description": "\"unicast\" / \"local\" / \"multicast\" / etc.",
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
"src_mac_address": {
|
|
78
|
+
"description": "Source MAC, negate \"!AA:BB:..\"",
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"port": {
|
|
82
|
+
"description": "Match src OR dst port (any protocol with ports)",
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"connection_mark": {
|
|
86
|
+
"description": "Match a connection mark set in mangle",
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"connection_state": {
|
|
90
|
+
"description": "e.g. \"new\" / \"established,related\" / \"!invalid\"",
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
"connection_type": {
|
|
94
|
+
"description": "Helper-detected conn type, e.g. \"ftp\" / \"sip\"",
|
|
95
|
+
"type": "string"
|
|
96
|
+
},
|
|
97
|
+
"connection_bytes": {
|
|
98
|
+
"description": "Total conn bytes range, e.g. \"1000000-\"",
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
"connection_limit": {
|
|
102
|
+
"description": "Per-address conn limit, e.g. \"100,64\"",
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
"connection_rate": {
|
|
106
|
+
"description": "Conn rate range, e.g. \"0-100k\"",
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"packet_mark": {
|
|
110
|
+
"description": "Match a packet mark set in mangle",
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
"routing_mark": {
|
|
114
|
+
"description": "Match a routing mark set in mangle",
|
|
115
|
+
"type": "string"
|
|
116
|
+
},
|
|
117
|
+
"icmp_options": {
|
|
118
|
+
"description": "ICMPv6 type:code, e.g. \"128:0\"",
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
121
|
+
"ipsec_policy": {
|
|
122
|
+
"description": "e.g. \"in,ipsec\" / \"out,none\"",
|
|
123
|
+
"type": "string"
|
|
124
|
+
},
|
|
125
|
+
"content": {
|
|
126
|
+
"description": "Match a literal string in the packet payload",
|
|
127
|
+
"type": "string"
|
|
128
|
+
},
|
|
129
|
+
"dscp": {
|
|
130
|
+
"description": "DSCP value 0-63",
|
|
131
|
+
"type": "string"
|
|
132
|
+
},
|
|
133
|
+
"priority": {
|
|
134
|
+
"description": "Match packet priority (queue/VLAN)",
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
"tcp_flags": {
|
|
138
|
+
"description": "e.g. \"syn,!ack\"",
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
"tcp_mss": {
|
|
142
|
+
"description": "TCP MSS range, e.g. \"1440-1500\"",
|
|
143
|
+
"type": "string"
|
|
144
|
+
},
|
|
145
|
+
"packet_size": {
|
|
146
|
+
"description": "Packet size range, e.g. \"1500\" or \"0-500\"",
|
|
147
|
+
"type": "string"
|
|
148
|
+
},
|
|
149
|
+
"hop_limit": {
|
|
150
|
+
"description": "IPv6 hop-limit matcher, e.g. \"equal:64\"",
|
|
151
|
+
"type": "string"
|
|
152
|
+
},
|
|
153
|
+
"headers": {
|
|
154
|
+
"description": "Match IPv6 extension headers",
|
|
155
|
+
"type": "string"
|
|
156
|
+
},
|
|
157
|
+
"limit": {
|
|
158
|
+
"description": "Rate limit, e.g. \"10,5:packet\"",
|
|
159
|
+
"type": "string"
|
|
160
|
+
},
|
|
161
|
+
"dst_limit": {
|
|
162
|
+
"description": "Per-dst rate limit, e.g. \"10,5,dst-address/1m\"",
|
|
163
|
+
"type": "string"
|
|
164
|
+
},
|
|
165
|
+
"nth": {
|
|
166
|
+
"description": "Every Nth packet, e.g. \"2,0\"",
|
|
167
|
+
"type": "string"
|
|
168
|
+
},
|
|
169
|
+
"random": {
|
|
170
|
+
"description": "Match packet randomly with given probability % (1-99)",
|
|
171
|
+
"type": "string"
|
|
172
|
+
},
|
|
173
|
+
"per_connection_classifier": {
|
|
174
|
+
"description": "PCC classifier, e.g. \"both-addresses:2/0\"",
|
|
175
|
+
"type": "string"
|
|
176
|
+
},
|
|
177
|
+
"time": {
|
|
178
|
+
"description": "Time/day matcher, e.g. \"8h-16h,mon,tue,wed,thu,fri\"",
|
|
179
|
+
"type": "string"
|
|
180
|
+
},
|
|
181
|
+
"jump_target": {
|
|
182
|
+
"description": "Target chain name when action=jump",
|
|
183
|
+
"type": "string"
|
|
184
|
+
},
|
|
185
|
+
"address_list": {
|
|
186
|
+
"description": "List name for add-src-to-address-list / add-dst-to-address-list",
|
|
187
|
+
"type": "string"
|
|
188
|
+
},
|
|
189
|
+
"address_list_timeout": {
|
|
190
|
+
"description": "Timeout for the address-list entry, e.g. \"1h\" or \"none\"",
|
|
191
|
+
"type": "string"
|
|
192
|
+
},
|
|
59
193
|
"comment": {
|
|
60
194
|
"type": "string"
|
|
61
195
|
},
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"dst_port": {
|
|
24
24
|
"type": "string"
|
|
25
25
|
},
|
|
26
|
+
"port": {
|
|
27
|
+
"description": "Match src or dst port (any direction)",
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
26
30
|
"protocol": {
|
|
27
31
|
"type": "string"
|
|
28
32
|
},
|
|
@@ -32,12 +36,60 @@
|
|
|
32
36
|
"out_interface": {
|
|
33
37
|
"type": "string"
|
|
34
38
|
},
|
|
39
|
+
"in_interface_list": {
|
|
40
|
+
"description": "Match inbound interface list name",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"out_interface_list": {
|
|
44
|
+
"description": "Match outbound interface list name",
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
35
47
|
"src_address_list": {
|
|
36
48
|
"type": "string"
|
|
37
49
|
},
|
|
38
50
|
"dst_address_list": {
|
|
39
51
|
"type": "string"
|
|
40
52
|
},
|
|
53
|
+
"src_address_type": {
|
|
54
|
+
"description": "Source address type e.g. \"unicast\", \"local\", \"multicast\"",
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"dst_address_type": {
|
|
58
|
+
"description": "Destination address type e.g. \"unicast\", \"local\", \"multicast\"",
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"src_mac_address": {
|
|
62
|
+
"description": "Match source MAC address",
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"hop_limit": {
|
|
66
|
+
"description": "Hop-limit expression e.g. \"equal:1\" or \"less:64\"",
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"tcp_flags": {
|
|
70
|
+
"description": "TCP flag expression e.g. \"syn,!ack\"",
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"tcp_mss": {
|
|
74
|
+
"description": "TCP MSS value or range e.g. \"1400-1500\"",
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
"packet_size": {
|
|
78
|
+
"description": "Packet size or range in bytes e.g. \"0-500\"",
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"dscp": {
|
|
82
|
+
"description": "DSCP value 0-63",
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"ipsec_policy": {
|
|
86
|
+
"description": "IPsec policy match e.g. \"in,ipsec\" or \"out,none\"",
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"limit": {
|
|
90
|
+
"description": "Rate/burst string e.g. \"10,5:packet\"",
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
41
93
|
"comment": {
|
|
42
94
|
"type": "string"
|
|
43
95
|
},
|
|
@@ -26,6 +26,12 @@
|
|
|
26
26
|
"add_default_route": {
|
|
27
27
|
"type": "boolean"
|
|
28
28
|
},
|
|
29
|
+
"default_route_distance": {
|
|
30
|
+
"description": "Distance of the auto-added default route",
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": -9007199254740991,
|
|
33
|
+
"maximum": 9007199254740991
|
|
34
|
+
},
|
|
29
35
|
"use_ipsec": {
|
|
30
36
|
"type": "string",
|
|
31
37
|
"enum": ["yes", "no"]
|
|
@@ -34,6 +40,42 @@
|
|
|
34
40
|
"description": "Pre-shared key for L2TP/IPsec",
|
|
35
41
|
"type": "string"
|
|
36
42
|
},
|
|
43
|
+
"allow": {
|
|
44
|
+
"description": "Allowed auth protocols, comma-separated (pap,chap,mschap1,mschap2)",
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"use_peer_dns": {
|
|
48
|
+
"description": "Use DNS servers offered by the remote peer",
|
|
49
|
+
"type": "boolean"
|
|
50
|
+
},
|
|
51
|
+
"dial_on_demand": {
|
|
52
|
+
"description": "Connect only when traffic is present",
|
|
53
|
+
"type": "boolean"
|
|
54
|
+
},
|
|
55
|
+
"keepalive_timeout": {
|
|
56
|
+
"description": "Seconds before an idle tunnel is considered down",
|
|
57
|
+
"type": "integer",
|
|
58
|
+
"minimum": -9007199254740991,
|
|
59
|
+
"maximum": 9007199254740991
|
|
60
|
+
},
|
|
61
|
+
"max_mtu": {
|
|
62
|
+
"description": "Maximum transmission unit",
|
|
63
|
+
"type": "integer",
|
|
64
|
+
"minimum": -9007199254740991,
|
|
65
|
+
"maximum": 9007199254740991
|
|
66
|
+
},
|
|
67
|
+
"max_mru": {
|
|
68
|
+
"description": "Maximum receive unit",
|
|
69
|
+
"type": "integer",
|
|
70
|
+
"minimum": -9007199254740991,
|
|
71
|
+
"maximum": 9007199254740991
|
|
72
|
+
},
|
|
73
|
+
"mrru": {
|
|
74
|
+
"description": "Max receive reconstructed unit for MRRU (multilink)",
|
|
75
|
+
"type": "integer",
|
|
76
|
+
"minimum": -9007199254740991,
|
|
77
|
+
"maximum": 9007199254740991
|
|
78
|
+
},
|
|
37
79
|
"comment": {
|
|
38
80
|
"type": "string"
|
|
39
81
|
},
|
|
@@ -44,9 +44,17 @@
|
|
|
44
44
|
"dst_port": {
|
|
45
45
|
"type": "string"
|
|
46
46
|
},
|
|
47
|
+
"port": {
|
|
48
|
+
"description": "Match if src OR dst port matches (with protocol)",
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
47
51
|
"protocol": {
|
|
48
52
|
"type": "string"
|
|
49
53
|
},
|
|
54
|
+
"src_mac_address": {
|
|
55
|
+
"description": "Source MAC, negatable e.g. \"!00:11:...\"",
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
50
58
|
"in_interface": {
|
|
51
59
|
"description": "Negatable, e.g. \"!ether1\"",
|
|
52
60
|
"type": "string"
|
|
@@ -129,6 +137,42 @@
|
|
|
129
137
|
"description": "e.g. \"1500\" or \"0-500\"",
|
|
130
138
|
"type": "string"
|
|
131
139
|
},
|
|
140
|
+
"ttl": {
|
|
141
|
+
"description": "Match TTL, e.g. \"equal:64\", \"less-than:10\"",
|
|
142
|
+
"type": "string"
|
|
143
|
+
},
|
|
144
|
+
"tcp_mss": {
|
|
145
|
+
"description": "Match TCP MSS, e.g. \"1400-1500\" or \"!1460\"",
|
|
146
|
+
"type": "string"
|
|
147
|
+
},
|
|
148
|
+
"fragment": {
|
|
149
|
+
"description": "Match second and further fragments",
|
|
150
|
+
"type": "boolean"
|
|
151
|
+
},
|
|
152
|
+
"icmp_options": {
|
|
153
|
+
"description": "Match ICMP type:code, e.g. \"8:0\"",
|
|
154
|
+
"type": "string"
|
|
155
|
+
},
|
|
156
|
+
"ipv4_options": {
|
|
157
|
+
"description": "e.g. \"any\", \"loose-source-routing\", \"record-route\"",
|
|
158
|
+
"type": "string"
|
|
159
|
+
},
|
|
160
|
+
"limit": {
|
|
161
|
+
"description": "Rate limit matcher, e.g. \"50,5:packet\"",
|
|
162
|
+
"type": "string"
|
|
163
|
+
},
|
|
164
|
+
"dst_limit": {
|
|
165
|
+
"description": "Per-destination rate matcher, e.g. \"50,5,dst-address/1m\"",
|
|
166
|
+
"type": "string"
|
|
167
|
+
},
|
|
168
|
+
"content": {
|
|
169
|
+
"description": "Match packets containing this text",
|
|
170
|
+
"type": "string"
|
|
171
|
+
},
|
|
172
|
+
"psd": {
|
|
173
|
+
"description": "Port scan detection, e.g. \"21,3s,3,1\"",
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
132
176
|
"layer7_protocol": {
|
|
133
177
|
"description": "Name of an /ip firewall layer7-protocol regex",
|
|
134
178
|
"type": "string"
|
|
@@ -177,10 +221,30 @@
|
|
|
177
221
|
"description": "e.g. \"1440\" or \"clamp-to-pmtu\", for change-mss",
|
|
178
222
|
"type": "string"
|
|
179
223
|
},
|
|
224
|
+
"new_priority": {
|
|
225
|
+
"description": "Priority for action=set-priority, e.g. \"4\", \"from-dscp\", \"from-ingress\"",
|
|
226
|
+
"type": "string"
|
|
227
|
+
},
|
|
180
228
|
"routing_table": {
|
|
181
229
|
"description": "Routing table for action=route",
|
|
182
230
|
"type": "string"
|
|
183
231
|
},
|
|
232
|
+
"route_dst": {
|
|
233
|
+
"description": "Gateway IP for action=route",
|
|
234
|
+
"type": "string"
|
|
235
|
+
},
|
|
236
|
+
"jump_target": {
|
|
237
|
+
"description": "Target chain name for action=jump",
|
|
238
|
+
"type": "string"
|
|
239
|
+
},
|
|
240
|
+
"sniff_target": {
|
|
241
|
+
"description": "Collector IP for action=sniff-tzsp/sniff-pc",
|
|
242
|
+
"type": "string"
|
|
243
|
+
},
|
|
244
|
+
"sniff_target_port": {
|
|
245
|
+
"description": "Collector UDP port for action=sniff-tzsp",
|
|
246
|
+
"type": "string"
|
|
247
|
+
},
|
|
184
248
|
"address_list": {
|
|
185
249
|
"description": "Target list name for add-src/dst-to-address-list",
|
|
186
250
|
"type": "string"
|
|
@@ -54,6 +54,150 @@
|
|
|
54
54
|
"description": "\"srcnat\" / \"dstnat\" / \"!dstnat\"",
|
|
55
55
|
"type": "string"
|
|
56
56
|
},
|
|
57
|
+
"connection_state": {
|
|
58
|
+
"description": "Match conn state, e.g. \"new\" / \"established,related\" / \"!invalid\"",
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"connection_type": {
|
|
62
|
+
"description": "Match helper-detected conn type, e.g. \"ftp\" / \"sip\"",
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"connection_bytes": {
|
|
66
|
+
"description": "Total conn bytes range, e.g. \"1000000-\"",
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"connection_limit": {
|
|
70
|
+
"description": "Per-address conn limit, e.g. \"100,32\"",
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"connection_rate": {
|
|
74
|
+
"description": "Conn rate range, e.g. \"0-100k\"",
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
"port": {
|
|
78
|
+
"description": "Match src OR dst port (any protocol with ports)",
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"src_mac_address": {
|
|
82
|
+
"description": "Source MAC, negate \"!AA:BB:..\"",
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"packet_mark": {
|
|
86
|
+
"description": "Match a packet mark set in mangle",
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"routing_mark": {
|
|
90
|
+
"description": "Match a routing mark set in mangle",
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
"src_address_type": {
|
|
94
|
+
"description": "\"unicast\" / \"local\" / \"broadcast\" / etc.",
|
|
95
|
+
"type": "string"
|
|
96
|
+
},
|
|
97
|
+
"dst_address_type": {
|
|
98
|
+
"description": "\"unicast\" / \"local\" / \"broadcast\" / etc.",
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
"in_bridge_port": {
|
|
102
|
+
"description": "Ingress bridge port (bridge-filtered)",
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
"out_bridge_port": {
|
|
106
|
+
"description": "Egress bridge port (bridge-filtered)",
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"in_bridge_port_list": {
|
|
110
|
+
"description": "Ingress bridge port list",
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
"out_bridge_port_list": {
|
|
114
|
+
"description": "Egress bridge port list",
|
|
115
|
+
"type": "string"
|
|
116
|
+
},
|
|
117
|
+
"icmp_options": {
|
|
118
|
+
"description": "ICMP type:code, e.g. \"8:0\"",
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
121
|
+
"ipsec_policy": {
|
|
122
|
+
"description": "e.g. \"in,ipsec\" / \"out,none\"",
|
|
123
|
+
"type": "string"
|
|
124
|
+
},
|
|
125
|
+
"layer7_protocol": {
|
|
126
|
+
"description": "Name of an /ip firewall layer7-protocol",
|
|
127
|
+
"type": "string"
|
|
128
|
+
},
|
|
129
|
+
"content": {
|
|
130
|
+
"description": "Match a literal string in the packet payload",
|
|
131
|
+
"type": "string"
|
|
132
|
+
},
|
|
133
|
+
"dscp": {
|
|
134
|
+
"description": "DSCP value 0-63",
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
"priority": {
|
|
138
|
+
"description": "Match packet priority (queue/VLAN)",
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
"tcp_flags": {
|
|
142
|
+
"description": "e.g. \"syn,!ack\"",
|
|
143
|
+
"type": "string"
|
|
144
|
+
},
|
|
145
|
+
"tcp_mss": {
|
|
146
|
+
"description": "TCP MSS range, e.g. \"1440-1500\"",
|
|
147
|
+
"type": "string"
|
|
148
|
+
},
|
|
149
|
+
"packet_size": {
|
|
150
|
+
"description": "Packet size range, e.g. \"1500\" or \"0-500\"",
|
|
151
|
+
"type": "string"
|
|
152
|
+
},
|
|
153
|
+
"limit": {
|
|
154
|
+
"description": "Rate limit, e.g. \"10,5:packet\"",
|
|
155
|
+
"type": "string"
|
|
156
|
+
},
|
|
157
|
+
"nth": {
|
|
158
|
+
"description": "Every Nth packet, e.g. \"2,0\"",
|
|
159
|
+
"type": "string"
|
|
160
|
+
},
|
|
161
|
+
"psd": {
|
|
162
|
+
"description": "Port-scan detection params",
|
|
163
|
+
"type": "string"
|
|
164
|
+
},
|
|
165
|
+
"random": {
|
|
166
|
+
"description": "Match packet randomly with given probability % (1-99)",
|
|
167
|
+
"type": "string"
|
|
168
|
+
},
|
|
169
|
+
"per_connection_classifier": {
|
|
170
|
+
"description": "PCC classifier, e.g. \"both-addresses:2/0\"",
|
|
171
|
+
"type": "string"
|
|
172
|
+
},
|
|
173
|
+
"time": {
|
|
174
|
+
"description": "Time/day matcher, e.g. \"8h-16h,mon,tue,wed,thu,fri\"",
|
|
175
|
+
"type": "string"
|
|
176
|
+
},
|
|
177
|
+
"ttl": {
|
|
178
|
+
"description": "IP TTL matcher, e.g. \"equal:64\"",
|
|
179
|
+
"type": "string"
|
|
180
|
+
},
|
|
181
|
+
"hotspot": {
|
|
182
|
+
"description": "Hotspot state, e.g. \"auth\" / \"!auth\"",
|
|
183
|
+
"type": "string"
|
|
184
|
+
},
|
|
185
|
+
"jump_target": {
|
|
186
|
+
"description": "Target chain name when action=jump",
|
|
187
|
+
"type": "string"
|
|
188
|
+
},
|
|
189
|
+
"address_list": {
|
|
190
|
+
"description": "List name for action=add-src-to-address-list / add-dst-to-address-list",
|
|
191
|
+
"type": "string"
|
|
192
|
+
},
|
|
193
|
+
"address_list_timeout": {
|
|
194
|
+
"description": "Timeout for the address-list entry, e.g. \"1h\" or \"none\"",
|
|
195
|
+
"type": "string"
|
|
196
|
+
},
|
|
197
|
+
"fragment": {
|
|
198
|
+
"description": "Match non-first IP fragments",
|
|
199
|
+
"type": "boolean"
|
|
200
|
+
},
|
|
57
201
|
"to_addresses": {
|
|
58
202
|
"description": "Single IP or range e.g. \"10.0.0.1\" or \"10.0.0.1-10.0.0.10\"",
|
|
59
203
|
"type": "string"
|
|
@@ -32,6 +32,11 @@
|
|
|
32
32
|
"auth": {
|
|
33
33
|
"type": "string"
|
|
34
34
|
},
|
|
35
|
+
"tls_version": {
|
|
36
|
+
"description": "Accepted TLS version",
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": ["any", "only-1.2"]
|
|
39
|
+
},
|
|
35
40
|
"mode": {
|
|
36
41
|
"type": "string",
|
|
37
42
|
"enum": ["ip", "ethernet"]
|
|
@@ -40,12 +45,29 @@
|
|
|
40
45
|
"type": "string",
|
|
41
46
|
"enum": ["tcp", "udp"]
|
|
42
47
|
},
|
|
48
|
+
"mac_address": {
|
|
49
|
+
"description": "Client MAC for ethernet mode",
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"max_mtu": {
|
|
53
|
+
"type": "integer",
|
|
54
|
+
"minimum": -9007199254740991,
|
|
55
|
+
"maximum": 9007199254740991
|
|
56
|
+
},
|
|
43
57
|
"profile": {
|
|
44
58
|
"type": "string"
|
|
45
59
|
},
|
|
46
60
|
"add_default_route": {
|
|
47
61
|
"type": "boolean"
|
|
48
62
|
},
|
|
63
|
+
"route_nopull": {
|
|
64
|
+
"description": "Ignore routes pushed by the server",
|
|
65
|
+
"type": "boolean"
|
|
66
|
+
},
|
|
67
|
+
"use_peer_dns": {
|
|
68
|
+
"description": "Use DNS servers pushed by the server",
|
|
69
|
+
"type": "boolean"
|
|
70
|
+
},
|
|
49
71
|
"verify_server_certificate": {
|
|
50
72
|
"type": "boolean"
|
|
51
73
|
},
|
|
@@ -18,14 +18,48 @@
|
|
|
18
18
|
"dns_server": {
|
|
19
19
|
"type": "string"
|
|
20
20
|
},
|
|
21
|
+
"wins_server": {
|
|
22
|
+
"description": "WINS server IP(s) pushed to clients",
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"address_list": {
|
|
26
|
+
"description": "Address list to add the remote address to",
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"incoming_filter": {
|
|
30
|
+
"description": "Firewall chain for incoming packets",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"outgoing_filter": {
|
|
34
|
+
"description": "Firewall chain for outgoing packets",
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
21
37
|
"rate_limit": {
|
|
22
38
|
"description": "Rate limit, e.g. '10M/10M'",
|
|
23
39
|
"type": "string"
|
|
24
40
|
},
|
|
41
|
+
"session_timeout": {
|
|
42
|
+
"description": "Max session duration, e.g. '1h'",
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"idle_timeout": {
|
|
46
|
+
"description": "Disconnect after this idle time, e.g. '5m'",
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
25
49
|
"use_encryption": {
|
|
26
50
|
"type": "string",
|
|
27
51
|
"enum": ["default", "yes", "no", "required"]
|
|
28
52
|
},
|
|
53
|
+
"use_mpls": {
|
|
54
|
+
"description": "MPLS over the link policy",
|
|
55
|
+
"type": "string",
|
|
56
|
+
"enum": ["default", "yes", "no", "required"]
|
|
57
|
+
},
|
|
58
|
+
"use_compression": {
|
|
59
|
+
"description": "Compression policy",
|
|
60
|
+
"type": "string",
|
|
61
|
+
"enum": ["default", "yes", "no"]
|
|
62
|
+
},
|
|
29
63
|
"change_tcp_mss": {
|
|
30
64
|
"type": "string",
|
|
31
65
|
"enum": ["default", "yes", "no"]
|
|
@@ -38,6 +72,36 @@
|
|
|
38
72
|
"bridge": {
|
|
39
73
|
"type": "string"
|
|
40
74
|
},
|
|
75
|
+
"bridge_horizon": {
|
|
76
|
+
"description": "Bridge split-horizon group",
|
|
77
|
+
"type": "integer",
|
|
78
|
+
"minimum": -9007199254740991,
|
|
79
|
+
"maximum": 9007199254740991
|
|
80
|
+
},
|
|
81
|
+
"bridge_path_cost": {
|
|
82
|
+
"description": "Bridge port path cost",
|
|
83
|
+
"type": "integer",
|
|
84
|
+
"minimum": -9007199254740991,
|
|
85
|
+
"maximum": 9007199254740991
|
|
86
|
+
},
|
|
87
|
+
"bridge_port_priority": {
|
|
88
|
+
"description": "Bridge port priority",
|
|
89
|
+
"type": "integer",
|
|
90
|
+
"minimum": -9007199254740991,
|
|
91
|
+
"maximum": 9007199254740991
|
|
92
|
+
},
|
|
93
|
+
"dhcpv6_pd_pool": {
|
|
94
|
+
"description": "IPv6 prefix delegation pool name",
|
|
95
|
+
"type": "string"
|
|
96
|
+
},
|
|
97
|
+
"on_up": {
|
|
98
|
+
"description": "Script to run when the session connects",
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
"on_down": {
|
|
102
|
+
"description": "Script to run when the session disconnects",
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
41
105
|
"comment": {
|
|
42
106
|
"type": "string"
|
|
43
107
|
}
|
|
@@ -26,9 +26,25 @@
|
|
|
26
26
|
"remote_address": {
|
|
27
27
|
"type": "string"
|
|
28
28
|
},
|
|
29
|
+
"routes": {
|
|
30
|
+
"description": "Routes added while this client is connected",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
29
33
|
"caller_id": {
|
|
30
34
|
"type": "string"
|
|
31
35
|
},
|
|
36
|
+
"limit_bytes_in": {
|
|
37
|
+
"description": "Max bytes the client may upload",
|
|
38
|
+
"type": "integer",
|
|
39
|
+
"minimum": -9007199254740991,
|
|
40
|
+
"maximum": 9007199254740991
|
|
41
|
+
},
|
|
42
|
+
"limit_bytes_out": {
|
|
43
|
+
"description": "Max bytes the client may download",
|
|
44
|
+
"type": "integer",
|
|
45
|
+
"minimum": -9007199254740991,
|
|
46
|
+
"maximum": 9007199254740991
|
|
47
|
+
},
|
|
32
48
|
"comment": {
|
|
33
49
|
"type": "string"
|
|
34
50
|
},
|