diff --git a/qubes/firewall.py b/qubes/firewall.py index 2cddce16..9ba258df 100644 --- a/qubes/firewall.py +++ b/qubes/firewall.py @@ -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):