Commit 0d322301 by Bach Dániel Committed by Guba Sándor

firewall: fix add_port()

parent 0b7c760b
......@@ -543,7 +543,7 @@ class Host(models.Model):
proto=proto, nat=True, accept=True,
nat_dport=private, host=self, foreign_network=vg)
rule = Rule(direction='1', owner=self.owner, dport=public,
rule = Rule(direction='1', owner=self.owner, dport=private,
proto=proto, nat=False, accept=True,
host=self, foreign_network=vg)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment