Development

This commit is contained in:
Matthew Grotke 2026-06-01 00:22:54 -04:00
parent 203128d003
commit 5588c55257

View file

@ -121,6 +121,13 @@
"input_type": "text", "input_type": "text",
"placeholder": "e.g. Allow Chromecast" "placeholder": "e.g. Allow Chromecast"
}, },
{
"type": "field",
"label": "Protocol",
"name": "protocol",
"input_type": "select",
"options": "%PROTOCOL_OPTIONS%"
},
{ {
"type": "field", "type": "field",
"label": "Source", "label": "Source",
@ -130,48 +137,35 @@
"placeholder": "e.g. 192.168.20.100 or 192.168.20.0/24", "placeholder": "e.g. 192.168.20.100 or 192.168.20.0/24",
"hint": "You may allow either a single device IP or an entire subnet to contact dest." "hint": "You may allow either a single device IP or an entire subnet to contact dest."
}, },
{
"type": "field",
"label": "Destination",
"name": "dst_ip_or_subnet",
"input_type": "text",
"validate": "VALIDATION_IPV4_FORMAT|VALIDATION_IPV4_CIDR",
"placeholder": "e.g. 192.168.10.200 or 192.168.10.0/24",
"hint": "You may allow either a single device IP or an entire subnet to be reached by source."
},
{ {
"type": "field_row", "type": "field_row",
"cols": 2, "cols": 3,
"items": [ "items": [
{ {
"type": "field_row", "type": "field",
"cols": 2, "label": "Destination",
"items": [ "name": "dst_ip_or_subnet",
{ "input_type": "text",
"type": "field", "validate": "VALIDATION_IPV4_FORMAT|VALIDATION_IPV4_CIDR",
"label": "Dest Port Range", "placeholder": "e.g. 192.168.10.200 or 192.168.10.0/24",
"name": "dst_port_min", "hint": "You may allow either a single device IP or an entire subnet to be reached by source."
"input_type": "number",
"min": 1,
"max": 65535,
"hint": "This exception only applies to traffic over this port range and protocol."
},
{
"type": "field",
"label": "",
"name": "dst_port_max",
"input_type": "number",
"min": 1,
"max": 65535
}
]
}, },
{ {
"type": "field", "type": "field",
"label": "Protocol", "label": "Dest Port Range Start",
"name": "protocol", "name": "dst_port_min",
"input_type": "select", "input_type": "number",
"options": "%PROTOCOL_OPTIONS%" "min": 1,
"max": 65535,
"hint": "This exception only applies to traffic over this port range."
},
{
"type": "field",
"label": "Dest Port Range End",
"name": "dst_port_max",
"input_type": "number",
"min": 1,
"max": 65535
} }
] ]
}, },