summaryrefslogtreecommitdiffstats
path: root/awall
diff options
context:
space:
mode:
Diffstat (limited to 'awall')
-rw-r--r--awall/modules/filter.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/awall/modules/filter.lua b/awall/modules/filter.lua
index 5da8f91..07d5df9 100644
--- a/awall/modules/filter.lua
+++ b/awall/modules/filter.lua
@@ -36,6 +36,9 @@ function Filter:trules()
local res = {}
if self.dnat then
+ if self.action ~= 'accept' then
+ self:error('dnat option not allowed with '..self.action..' action')
+ end
if not self.dest then
self:error('Destination address must be specified with DNAT')
end