This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch 4.11
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.11 by this push:
new c0440e8 CLOUDSTACK-10317: Fix SNAT rules for additional public nics
(#2476)
c0440e8 is described below
commit c0440e8124666fe7c642d8875870b7c09b65ce42
Author: Rohit Yadav <[email protected]>
AuthorDate: Thu Mar 8 10:01:36 2018 +0100
CLOUDSTACK-10317: Fix SNAT rules for additional public nics (#2476)
* CLOUDSTACK-10317: Fix SNAT rules for additional public nics
This allows networks with additional public nics to have correct
SNAT iptables rules applied on configuration.
Signed-off-by: Rohit Yadav <[email protected]>
* update based on Wei's suggested change
Signed-off-by: Rohit Yadav <[email protected]>
---
systemvm/debian/opt/cloud/bin/cs/CsAddress.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/systemvm/debian/opt/cloud/bin/cs/CsAddress.py
b/systemvm/debian/opt/cloud/bin/cs/CsAddress.py
index 42992b5..dbafa1d 100755
--- a/systemvm/debian/opt/cloud/bin/cs/CsAddress.py
+++ b/systemvm/debian/opt/cloud/bin/cs/CsAddress.py
@@ -388,7 +388,7 @@ class CsIP:
self.fw.append(["mangle", "",
"-A VPN_%s -j RETURN" % self.address['public_ip']])
self.fw.append(["nat", "",
- "-A POSTROUTING -o eth2 -j SNAT --to-source %s" %
self.address['public_ip']])
+ "-A POSTROUTING -o %s -j SNAT --to-source %s" %
(self.dev, self.cl.get_eth2_ip())])
self.fw.append(["mangle", "",
"-A PREROUTING -i %s -m state --state NEW " %
self.dev +
"-j CONNMARK --set-xmark %s/0xffffffff" %
self.dnum])
--
To stop receiving notification emails like this one, please contact
[email protected].