Added basic forwardtype= support
This commit is contained in:
parent
1be8d162aa
commit
310bf64c48
@ -183,6 +183,13 @@ class DstPorts(RuleOption):
|
||||
def rule(self):
|
||||
return 'dstports=' + '{!s}-{!s}'.format(*self.range)
|
||||
|
||||
class ForwardType(RuleOption):
|
||||
external = 'external'
|
||||
internal = 'internal'
|
||||
|
||||
@property
|
||||
def rule(self):
|
||||
return 'forwardtype=' + str(self)
|
||||
|
||||
class IcmpType(RuleOption):
|
||||
def __init__(self, untrusted_value):
|
||||
|
Loading…
Reference in New Issue
Block a user