summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-fw/root/lib/uci/schema/default/firewall
blob: 35ff0565cc749a3936cba76682798a171987186e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
package firewall

config package
	option title 'Firewall configuration'

config section
	option name	'zone'
	option title	'Firewall zones'
	option package	'firewall'

config variable
	option name	'name'
	option title	'Name'
	option section	'firewall.zone'
	option required	true

config variable
	option name	'network'
	option title	'Networks belonging to this zone'
	option section	'firewall.zone'
	option valueof	'network.interface'
	option multival	true

config variable
	option name	'forward'
	option title	'Zone specific action for forwarded traffic'
	option section	'firewall.zone'
	option required	true

config variable
	option name	'input'
	option title	'Zone specific action for incoming traffic'
	option section	'firewall.zone'
	option required	true

config variable
	option name	'output'
	option title	'Zone specific action for outgoing traffic'
	option section	'firewall.zone'
	option required	true

config variable
	option name	'masq'
	option title	'Enable masquerading for outgoing zone traffic'
	option section	'firewall.zone'
	option datatype	'boolean'



config section
	option name	'defaults'
	option title	'Global firewall defaults'
	option package	'firewall'
	option unique	true
	option required	true

config variable
	option name	'forward'
	option title	'Action for forwarded traffic'
	option section	'firewall.defaults'
	option required	true

config variable
	option name	'input'
	option title	'Action for incoming traffic'
	option section	'firewall.defaults'
	option required	true

config variable
	option name	'output'
	option title	'Action for outgoing traffic'
	option section	'firewall.defaults'
	option required	true

config variable
	option name	'syn_flood'
	option title	'Enable syn-flood protection'
	option section	'firewall.defaults'
	option datatype	'boolean'

config variable
	option name	'drop_invalid'
	option title	'Do not drop packages with state invalid'
	option section	'firewall.defaults'
	option datatype	'boolean'



config section
	option name	'forwarding'
	option title	'Forwarding rules'
	option package	'firewall'

config variable
	option name	'src'
	option title	'Source zone'
	option section	'firewall.forwarding'
	option valueof	'firewall.zone.name'
	option required	true

config variable
	option name	'dest'
	option title	'Destination zone'
	option section	'firewall.forwarding'
	option valueof	'firewall.zone.name'
	option required	true

config variable
	option name	'mtu_fix'
	option title	'Fixup MTU of outgoing packages'
	option section	'firewall.forwarding'
	option datatype	'boolean'



config section
	option name	'rule'
	option title	'Custom rules'
	option package	'firewall'
	list   depends	'target, src'
	list   depends	'target, dest'
	list   depends	'target, src_ip'
	list   depends	'target, src_port'
	list   depends	'target, src_mac'
	list   depends	'target, dest_ip'
	list   depends	'target, dest_port'
	list   depends	'target, proto'

config variable
	option name	'src'
	option title	'Source zone'
	option section	'firewall.rule'
	option valueof	'firewall.zone.name'

config variable
	option name	'src_ip'
	option title	'Source IP address'
	option section	'firewall.rule'
	option datatype	'ipaddr'

config variable
	option name	'src_port'
	option title	'Source port'
	option section	'firewall.rule'
	option datatype	'portrange'

config variable
	option name	'src_mac'
	option title	'Source MAC address'
	option section	'firewall.rule'
	option datatype	'macaddr'

config variable
	option name	'dest'
	option title	'Destination zone'
	option section	'firewall.rule'
	option valueof	'firewall.zone.name'

config variable
	option name	'dest_ip'
	option title	'Destination IP address'
	option section	'firewall.rule'
	option datatype	'ipaddr'

config variable
	option name	'dest_port'
	option title	'Destination port'
	option section	'firewall.rule'
	option datatype	'portrange'

config variable
	option name	'proto'
	option title	'Protocol'
	option section	'firewall.rule'
	option datatype	'string'

config variable
	option name	'target'
	option title	'Option target'
	option section	'firewall.rule'
	option datatype	'string'



config section
	option name	'redirect'
	option title	'Redirection rules'
	option package	'firewall'

config variable
	option name	'src'
	option title	'Source zone'
	option section	'firewall.redirect'
	option valueof	'firewall.zone.name'

config variable
	option name	'src_ip'
	option title	'Source IP address'
	option section	'firewall.redirect'
	option datatype	'ipaddr'

config variable
	option name	'src_port'
	option title	'Source port'
	option section	'firewall.redirect'
	option datatype	'portrange'

config variable
	option name	'src_dport'
	option title	'Source destination port'
	option section	'firewall.redirect'
	option datatype	'portrange'

config variable
	option name	'src_mac'
	option title	'Option src_mac'
	option section	'firewall.redirect'
	option datatype	'macaddr'

config variable
	option name	'dest'
	option title	'Destination zone'
	option section	'firewall.redirect'
	option valueof	'firewall.zone.name'

config variable
	option name	'dest_ip'
	option title	'Destination IP address'
	option section	'firewall.redirect'
	option datatype	'ipaddr'

config variable
	option name	'dest_port'
	option title	'Destination port'
	option section	'firewall.redirect'
	option datatype	'portrange'

config variable
	option name	'proto'
	option title	'Protocol'
	option section	'firewall.redirect'
	option datatype	'string'



config section
	option name	'include'
	option title	'User defined config includes'
	option package	'firewall'

config variable
	option name	'path'
	option title	'Path to the include file'
	option section	'firewall.include'
	option datatype	'file'