Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
alpine
awall
Commits
fd06c2e7
Commit
fd06c2e7
authored
Apr 09, 2012
by
Kaarle Ritvanen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected fw zone exclusion in NATRule.init
parent
bdc0328a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
awall/modules/nat.lua
awall/modules/nat.lua
+4
-2
No files found.
awall/modules/nat.lua
View file @
fd06c2e7
...
...
@@ -18,8 +18,10 @@ local NATRule = model.class(model.Rule)
function
NATRule
:
init
(
context
)
model
.
Rule
.
init
(
self
,
context
)
if
util
.
contains
({
self
[
'in'
],
self
.
out
},
fwzone
)
then
error
(
'NAT rules not allowed for firewall zone'
)
for
i
,
dir
in
ipairs
({
'in'
,
'out'
})
do
if
util
.
contains
(
self
[
dir
],
model
.
fwzone
)
then
error
(
'NAT rules not allowed for firewall zone'
)
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment