jx/internal/resource/schemas/iptable.schema.json
Matthew Rich a6426da6e1
Some checks failed
Lint / golangci-lint (push) Successful in 9m53s
Declarative Tests / test (push) Failing after 5s
Declarative Tests / build-fedora (push) Successful in 2m12s
Declarative Tests / build-ubuntu-focal (push) Successful in 1m21s
add support for RSA keys/certs
2024-07-17 01:34:57 -07:00

69 lines
1.5 KiB
JSON

{
"$id": "iptable.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "iptable",
"type": "object",
"required": [ "chain" ],
"properties": {
"id": {
"type": "integer",
"minimum": 1
},
"table": {
"type": "string",
"description": "Rule table name"
},
"chain": {
"type": "string",
"description": "Rule chain name"
},
"destination": {
"type": "string",
"description": "Destination CIDR",
"pattern": "^([0-9]{1,3}\\.){3}[0-9]{1,3}/([0-9]|[1-2][0-9]|3[0-2])$"
},
"source": {
"type": "string",
"description": "Source CIDR",
"pattern": "^([0-9]{1,3}\\.){3}[0-9]{1,3}/([0-9]|[1-2][0-9]|3[0-2])$"
},
"in": {
"type": "string",
"description": "Input ethernet device"
},
"out": {
"type": "string",
"description": "Output ethernet device"
},
"match": {
"type": "array",
"description": "Rule match extensions",
"items": {
"type": "string"
}
},
"extension_flags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"proto": {
"type": "string",
"description": "Rule protocol",
"pattern": "^(tcp|udp|udplite|icmp|icmpv6|ESP|AH|sctp|mh|all|[0-9]+)$"
},
"jump": {
"type": "string"
}
}
}