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