|
1027 | 1027 | }, |
1028 | 1028 | } |
1029 | 1029 |
|
1030 | | -firewall_properties = { |
1031 | | - "syn_flood": { |
1032 | | - "type": "boolean", |
1033 | | - "title": "SYN flood protection.", |
1034 | | - "description": "Enables SYN flood protection.", |
1035 | | - "default": False, |
1036 | | - "format": "checkbox", |
1037 | | - "propertyOrder": 1, |
1038 | | - }, |
| 1030 | +firewall_defaults = { |
1039 | 1031 | "input": { |
1040 | 1032 | "allOf": [ |
1041 | 1033 | {"$ref": "#/definitions/firewall/firewall_policy"}, |
1042 | 1034 | { |
1043 | | - "title": "input", |
1044 | | - "description": "policy for the INPUT chain of the filter table", |
1045 | | - "propertyOrder": 2, |
| 1035 | + "title": "Default input policy", |
| 1036 | + "description": "Default policy for the INPUT chain of the filter table", |
| 1037 | + "propertyOrder": 1, |
1046 | 1038 | }, |
1047 | 1039 | ] |
1048 | 1040 | }, |
1049 | 1041 | "output": { |
1050 | 1042 | "allOf": [ |
1051 | 1043 | {"$ref": "#/definitions/firewall/firewall_policy"}, |
1052 | 1044 | { |
1053 | | - "title": "output", |
1054 | | - "description": "policy for the OUTPUT chain of the filter table", |
1055 | | - "propertyOrder": 3, |
| 1045 | + "title": "Default output policy", |
| 1046 | + "description": "Default policy for the OUTPUT chain of the filter table", |
| 1047 | + "propertyOrder": 2, |
1056 | 1048 | }, |
1057 | 1049 | ] |
1058 | 1050 | }, |
1059 | 1051 | "forward": { |
1060 | 1052 | "allOf": [ |
1061 | 1053 | {"$ref": "#/definitions/firewall/firewall_policy"}, |
1062 | 1054 | { |
1063 | | - "title": "forward", |
1064 | | - "description": "policy for the FORWARD chain of the filter table", |
1065 | | - "propertyOrder": 4, |
| 1055 | + "title": "Default forward policy", |
| 1056 | + "description": "Defulat policy for the FORWARD chain of the filter table", |
| 1057 | + "propertyOrder": 3, |
1066 | 1058 | }, |
1067 | 1059 | ] |
1068 | 1060 | }, |
| 1061 | + "synflood_protect": { |
| 1062 | + "type": "boolean", |
| 1063 | + "title": "Enable SYN flood protection.", |
| 1064 | + "description": "Enables SYN flood protection.", |
| 1065 | + "default": False, |
| 1066 | + "format": "checkbox", |
| 1067 | + "propertyOrder": 4, |
| 1068 | + }, |
| 1069 | +} |
| 1070 | + |
| 1071 | +firewall_properties = { |
| 1072 | + "defaults": { |
| 1073 | + "type": "object", |
| 1074 | + "title": "Defaults", |
| 1075 | + "description": "Defaults for the fireall", |
| 1076 | + "propertyOrder": 4, |
| 1077 | + "properties": firewall_defaults, |
| 1078 | + "required": ["input", "output", "forward", "synflood_protect"], |
| 1079 | + }, |
1069 | 1080 | "forwardings": { |
1070 | 1081 | "type": "array", |
1071 | 1082 | "title": "Forwardings", |
|
0 commit comments