some minor changes and typo corrections

This commit is contained in:
lamuse 2017-01-30 11:06:38 +01:00
parent dfd2ac1ff6
commit bf68c18c5b
2 changed files with 3 additions and 5 deletions

View File

@ -1,9 +1,7 @@
Great work, Rudd-O!
changes to src/usr/lib64/python2.7/site-packages/qubes/modules/007FortressQubesProxyVm.py:
If the server VM gets firewall rules besides of "allow all", those rules were only honored for outgoing traffic in the original code.
My code also creates rules for incoming traffic in the proxy VM and the server VM.
The changed code also creates rules for incoming traffic in the proxy VM and in the server VM.
It may not be perfect, but it works for me.
My code is GPL, of course.
btw, code is GPL

View File

@ -102,7 +102,7 @@ class QubesProxyVm(OriginalQubesProxyVm):
ruletext += "/{0}".format(rule["netmask"])
if rule["proto"] is not None and rule["proto"] != "any":
ruletext += " -p {0}".format(rule["proto"]), fuer
ruletext += " -p {0}".format(rule["proto"])
if rule["portBegin"] is not None and rule["portBegin"] > 0:
ruletext += " --dport {0}".format(rule["portBegin"])
if rule["portEnd"] is not None and rule["portEnd"] > rule["portBegin"]: