diff --git a/qubesmanager/firewall.py b/qubesmanager/firewall.py index 0214bd0..d91475c 100644 --- a/qubesmanager/firewall.py +++ b/qubesmanager/firewall.py @@ -230,6 +230,7 @@ class QubesFirewallRulesModel(QAbstractItemModel): self.allow = conf["allow"] self.allowDns = conf["allowDns"] self.allowIcmp = conf["allowIcmp"] + self.allowYumProxy = conf["allowYumProxy"] for rule in conf["rules"]: self.appendChild(QubesFirewallRuleItem( @@ -239,15 +240,16 @@ class QubesFirewallRulesModel(QAbstractItemModel): def get_vm_name(self): return self.__vm.name - def apply_rules(self, allow, dns, icmp): + def apply_rules(self, allow, dns, icmp, yumproxy): assert self.__vm is not None - if(self.allow != allow or self.allowDns != dns or self.allowIcmp != icmp): + if(self.allow != allow or self.allowDns != dns or self.allowIcmp != icmp or self.allowYumProxy != yumproxy): self.fw_changed = True conf = { "allow": allow, "allowDns": dns, "allowIcmp": icmp, + "allowYumProxy": yumproxy, "rules": list() } diff --git a/qubesmanager/settings.py b/qubesmanager/settings.py index 530bbe0..badf78c 100755 --- a/qubesmanager/settings.py +++ b/qubesmanager/settings.py @@ -167,7 +167,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog): self.qvm_collection.unlock_db() if self.tabWidget.isTabEnabled(self.tabs_indices["firewall"]): - self.fw_model.apply_rules(self.policyAllowRadioButton.isChecked(), self.dnsCheckBox.isChecked(), self.icmpCheckBox.isChecked()) + self.fw_model.apply_rules(self.policyAllowRadioButton.isChecked(), self.dnsCheckBox.isChecked(), self.icmpCheckBox.isChecked(), self.yumproxyCheckBox.isChecked()) if self.tabWidget.isTabEnabled(self.tabs_indices["applications"]): self.AppListManager.save_appmenu_select_changes() @@ -642,6 +642,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog): self.set_allow(model.allow) self.dnsCheckBox.setChecked(model.allowDns) self.icmpCheckBox.setChecked(model.allowIcmp) + self.yumproxyCheckBox.setChecked(model.allowYumProxy) def set_allow(self, allow): self.policyAllowRadioButton.setChecked(allow) diff --git a/settingsdlg.ui b/settingsdlg.ui index c647200..ad527a2 100644 --- a/settingsdlg.ui +++ b/settingsdlg.ui @@ -29,7 +29,7 @@ - 1 + 2 @@ -648,7 +648,7 @@ - + QLayout::SetMaximumSize @@ -758,6 +758,13 @@ + + + + Allow connections to Updates Proxy + + +