From 70bf9f6f8c137a30d9fc6f93402361700cf32af6 Mon Sep 17 00:00:00 2001 From: Giulio Date: Tue, 22 Jun 2021 18:18:33 +0200 Subject: [PATCH] Added forwardtype= support --- qubesadmin/firewall.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qubesadmin/firewall.py b/qubesadmin/firewall.py index d86f8f4..3a75678 100644 --- a/qubesadmin/firewall.py +++ b/qubesadmin/firewall.py @@ -74,6 +74,15 @@ class Action(RuleChoice): return 'action=' + str(self) +class ForwardType(RuleOption): + external = 'external' + internal = 'internal' + + @property + def rule(self): + return 'forwardtype=' + str(self) + + class Proto(RuleChoice): '''Protocol name''' tcp = 'tcp'