addedInput schema / additionalProperties
Added value: +false
addedInput schema / properties / allowEstablished / default
Added value: +false
addedInput schema / properties / allowEstablished / description
Added value: +"Prepend an INPUT rule accepting ESTABLISHED and RELATED connections via conntrack."
addedInput schema / properties / allowLoopback / default
Added value: +false
addedInput schema / properties / allowLoopback / description
Added value: +"Prepend an INPUT rule accepting all traffic on the loopback interface."
addedInput schema / properties / defaults / additionalProperties
Added value: +false
addedInput schema / properties / defaults / description
Added value: +"Default chain policies applied when generating (defaults: input ACCEPT, forward DROP, output ACCEPT)."
addedInput schema / properties / defaults / properties / forward / default
Added value: +"DROP"
addedInput schema / properties / defaults / properties / forward / description
Added value: +"Default policy for the FORWARD chain."
addedInput schema / properties / defaults / properties / forward / enum
Added value: +[
+ "ACCEPT",
+ "DROP",
+ "REJECT"
+]
addedInput schema / properties / defaults / properties / input / default
Added value: +"ACCEPT"
addedInput schema / properties / defaults / properties / input / description
Added value: +"Default policy for the INPUT chain."
addedInput schema / properties / defaults / properties / input / enum
Added value: +[
+ "ACCEPT",
+ "DROP",
+ "REJECT"
+]
addedInput schema / properties / defaults / properties / output / default
Added value: +"ACCEPT"
addedInput schema / properties / defaults / properties / output / description
Added value: +"Default policy for the OUTPUT chain."
addedInput schema / properties / defaults / properties / output / enum
Added value: +[
+ "ACCEPT",
+ "DROP",
+ "REJECT"
+]
removedInput schema / properties / defaults / required
Removed value: -[
- "input",
- "forward",
- "output"
-]
addedInput schema / properties / logDrops
Added value: +{
+ "default": false,
+ "description": "Append a rate-limited LOG rule on INPUT before the default policy applies.",
+ "type": "boolean"
+}
addedInput schema / properties / operation
Added value: +{
+ "default": "generate",
+ "description": "generate builds firewall scripts from the input fields below; presets ignores all other fields and returns the 9 built-in templates.",
+ "enum": [
+ "generate",
+ "presets"
+ ],
+ "type": "string"
+}
addedInput schema / properties / rules / description
Added value: +"Ordered firewall rules. Each rule maps to one iptables -A line (and an nftables equivalent). Invalid rows are silently skipped."
addedInput schema / properties / rules / items / additionalProperties
Added value: +false
addedInput schema / properties / rules / items / properties / action / description
Added value: +"Jump target for matched packets. SNAT and DNAT need natTarget; MASQUERADE needs an interface."
addedInput schema / properties / rules / items / properties / action / enum
Added value: +[
+ "ACCEPT",
+ "DROP",
+ "REJECT",
+ "LOG",
+ "SNAT",
+ "DNAT",
+ "MASQUERADE"
+]
addedInput schema / properties / rules / items / properties / chain / description
Added value: +"Target chain. PREROUTING and POSTROUTING route into the nat table."
addedInput schema / properties / rules / items / properties / chain / enum
Added value: +[
+ "INPUT",
+ "OUTPUT",
+ "FORWARD",
+ "PREROUTING",
+ "POSTROUTING"
+]
addedInput schema / properties / rules / items / properties / destination
Added value: +{
+ "description": "Destination IPv4/IPv6 address or CIDR. An invalid value produces a warning.",
+ "type": "string"
+}
addedInput schema / properties / rules / items / properties / destinationPort / description
Added value: +"Destination port: single, range, or comma list."
addedInput schema / properties / rules / items / properties / interface
Added value: +{
+ "description": "Network interface. Bound with -i on INPUT/FORWARD/PREROUTING and -o on OUTPUT/POSTROUTING.",
+ "type": "string"
+}
addedInput schema / properties / rules / items / properties / natTarget
Added value: +{
+ "description": "Rewrite target for DNAT (host and port) or SNAT (source address).",
+ "type": "string"
+}
addedInput schema / properties / rules / items / properties / protocol / description
Added value: +"Layer-4 protocol match. Omit or use all to match any protocol."
addedInput schema / properties / rules / items / properties / protocol / enum
Added value: +[
+ "tcp",
+ "udp",
+ "icmp",
+ "all"
+]
addedInput schema / properties / rules / items / properties / ruleComment / description
Added value: +"Free-text note emitted as an iptables comment match and an nftables comment."
addedInput schema / properties / rules / items / properties / source
Added value: +{
+ "description": "Source IPv4/IPv6 address or CIDR (such as 10.0.0.0/8). An invalid value produces a warning, not an error.",
+ "type": "string"
+}
addedInput schema / properties / rules / items / properties / sourcePort
Added value: +{
+ "description": "Source port: single (80), range (1000 colon 2000), or comma list (80 then 443). A list emits an -m multiport match.",
+ "type": "string"
+}
changedInput schema / properties / rules / items / required
Previous value: -[
- "chain",
- "protocol",
- "destinationPort",
- "action",
- "ruleComment"
-]New value: +[
+ "chain",
+ "action"
+]
removedInput schema / required
Removed value: -[
- "defaults",
- "allowLoopback",
- "allowEstablished",
- "rules"
-]
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "operation": {
+ "description": "The operation performed (generate or presets).",
+ "type": "string"
+ },
+ "result": {
+ "description": "For generate: the produced scripts. For presets: a presets array of named templates.",
+ "properties": {
+ "explanation": {
+ "description": "Per-line breakdown pairing each emitted rule with a plain-English meaning.",
+ "items": {
+ "properties": {
+ "meaning": {
+ "description": "Plain-English description of what the line does.",
+ "type": "string"
+ },
+ "rule": {
+ "description": "The emitted iptables line.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "files": {
+ "description": "Suggested target file name and install path for each generated script.",
+ "items": {
+ "properties": {
+ "name": {
+ "description": "Suggested file name (rules.v4 or nft.conf).",
+ "type": "string"
+ },
+ "path": {
+ "description": "Conventional install path for the script.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "iptables": {
+ "description": "Complete iptables-restore script (filter table, plus nat table when NAT rules exist).",
+ "type": "string"
+ },
+ "nftables": {
+ "description": "Equivalent nftables script (table inet filter, plus table ip nat when NAT rules exist).",
+ "type": "string"
+ },
+ "warnings": {
+ "description": "Human-readable lockout and validation warnings (invalid IP, SNAT in wrong chain, SSH open to the world, and similar).",
+ "items": {
+ "description": "A warning message.",
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "success": {
+ "description": "Whether the request succeeded.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+}