mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
nat rules added to incorrect interface
This commit is contained in:
parent
7700e940ff
commit
c1ec5b0b16
@ -382,17 +382,17 @@ class CsIP:
|
|||||||
])
|
])
|
||||||
self.fw.append(["", "front", "-A NETWORK_STATS_%s -o %s -s %s" % ("eth1", "eth1", self.address['network'])])
|
self.fw.append(["", "front", "-A NETWORK_STATS_%s -o %s -s %s" % ("eth1", "eth1", self.address['network'])])
|
||||||
self.fw.append(["", "front", "-A NETWORK_STATS_%s -o %s -d %s" % ("eth1", "eth1", self.address['network'])])
|
self.fw.append(["", "front", "-A NETWORK_STATS_%s -o %s -d %s" % ("eth1", "eth1", self.address['network'])])
|
||||||
|
self.fw.append(["nat", "front",
|
||||||
|
"-A POSTROUTING -s %s -o %s -j SNAT --to-source %s" %
|
||||||
|
(self.address['network'], self.dev,
|
||||||
|
self.address['public_ip'])
|
||||||
|
])
|
||||||
|
|
||||||
if self.get_type() in ["public"]:
|
if self.get_type() in ["public"]:
|
||||||
self.fw.append(["nat", "front",
|
self.fw.append(["nat", "front",
|
||||||
"-A POSTROUTING -o %s -j SNAT --to-source %s" %
|
"-A POSTROUTING -o %s -j SNAT --to-source %s" %
|
||||||
(self.dev, self.address['public_ip'])
|
(self.dev, self.address['public_ip'])
|
||||||
])
|
])
|
||||||
self.fw.append(["nat", "front",
|
|
||||||
"-A POSTROUTING -s %s -o %s -j SNAT --to-source %s" %
|
|
||||||
(self.address['network'], self.dev,
|
|
||||||
self.address['public_ip'])
|
|
||||||
])
|
|
||||||
self.fw.append(["", "front",
|
self.fw.append(["", "front",
|
||||||
"-A FORWARD -o %s -d %s -j ACL_INBOUND_%s" % (self.dev, self.address['network'], self.dev)
|
"-A FORWARD -o %s -d %s -j ACL_INBOUND_%s" % (self.dev, self.address['network'], self.dev)
|
||||||
])
|
])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user