Commit deedbe17 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

allow 'dnat' parameter without 'dest'

parent 924986d7
......@@ -142,9 +142,6 @@ function Filter:trules()
if self['no-track'] then
self:error('dnat option not allowed with no-track')
if not self.dest then
self:error('Destination address must be specified with DNAT')
if self.dnat:find('/') then
self:error('DNAT target cannot be a network address')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment