Added basic forwardtype= support

This commit is contained in:
Giulio 2021-06-22 18:13:05 +02:00
parent 1be8d162aa
commit 310bf64c48

View File

@ -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):