Repository: cloudstack
Updated Branches:
  refs/heads/strongswan [created] 013fbd41f


corrected iptables rules, update log info


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/013fbd41
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/013fbd41
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/013fbd41

Branch: refs/heads/strongswan
Commit: 013fbd41fb9aac45c7ab06f2ea11d60c50835abd
Parents: 62816eb
Author: Jayapal <[email protected]>
Authored: Tue Aug 11 09:55:24 2015 +0530
Committer: Jayapal <[email protected]>
Committed: Tue Aug 11 09:58:44 2015 +0530

----------------------------------------------------------------------
 systemvm/patches/debian/config/opt/cloud/bin/configure.py        | 4 ++--
 systemvm/patches/debian/config/opt/cloud/bin/update_config.py    | 2 +-
 .../definitions/systemvmtemplate/install_systemvm_packages.sh    | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/013fbd41/systemvm/patches/debian/config/opt/cloud/bin/configure.py
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/configure.py 
b/systemvm/patches/debian/config/opt/cloud/bin/configure.py
index 4bfe1f6..392fc9e 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/configure.py
+++ b/systemvm/patches/debian/config/opt/cloud/bin/configure.py
@@ -428,7 +428,7 @@ class CsSite2SiteVpn(CsDataBag):
         self.fw.append(["", "front", "-A INPUT -i %s -p udp -m udp --dport 500 
-j ACCEPT" % dev])
         self.fw.append(["", "front", "-A INPUT -i %s -p udp -m udp --dport 
4500 -j ACCEPT" % dev])
         self.fw.append(["", "front", "-A INPUT -i %s -p esp -j ACCEPT" % dev])
-        self.fw.append(["nat", "front", "-A POSTROUTING -t nat -o %s-m mark 
--set-xmark 0x525/0xffffffff -j ACCEPT" % dev])
+        self.fw.append(["nat", "front", "-A POSTROUTING -t nat -o %s -m mark 
--mark 0x525/0xffffffff -j ACCEPT" % dev])
         for net in obj['peer_guest_cidr_list'].lstrip().rstrip().split(','):
             self.fw.append(["mangle", "front",
                             "-A FORWARD -s %s -d %s -j MARK --set-xmark 
0x525/0xffffffff" % (obj['local_guest_cidr'], net)])
@@ -478,7 +478,7 @@ class CsSite2SiteVpn(CsDataBag):
             CsHelper.execute("ipsec reload")
             #CsHelper.execute("ipsec --add vpn-%s" % rightpeer)
             if not obj['passive']:
-                CsHelper.execute("ipsec up vpn-%s" % rightpeer)
+                CsHelper.execute("ipsec up vpn-%s &" % rightpeer)
         os.chmod(vpnsecretsfile, 0o400)
 
     def convert_sec_to_h(self, val):

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/013fbd41/systemvm/patches/debian/config/opt/cloud/bin/update_config.py
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/update_config.py 
b/systemvm/patches/debian/config/opt/cloud/bin/update_config.py
index 77557f9..ec62ada 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/update_config.py
+++ b/systemvm/patches/debian/config/opt/cloud/bin/update_config.py
@@ -26,7 +26,7 @@ import os.path
 import configure
 import json
 
-logging.basicConfig(filename='/var/log/cloud.log', level=logging.DEBUG, 
format='%(asctime)s %(message)s')
+logging.basicConfig(filename='/var/log/cloud.log', level=logging.DEBUG, 
format='%(asctime)s  %(funcName)s:%(lineno)d %(message)s')
 
 # first commandline argument should be the file to process
 if (len(sys.argv) != 2):

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/013fbd41/tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh
----------------------------------------------------------------------
diff --git 
a/tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh 
b/tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh
index c8b7b91..b9686c8 100644
--- a/tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh
+++ b/tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh
@@ -28,7 +28,7 @@ function install_vhd_util() {
 
 function debconf_packages() {
   echo 'sysstat sysstat/enable boolean true' | debconf-set-selections
-  echo "openswan openswan/install_x509_certificate boolean false" | 
debconf-set-selections
+  echo "strongswan strongswan/install_x509_certificate boolean false" | 
debconf-set-selections
   echo "openswan openswan/install_x509_certificate seen true" | 
debconf-set-selections
   echo "iptables-persistent iptables-persistent/autosave_v4 boolean true" | 
debconf-set-selections
   echo "iptables-persistent iptables-persistent/autosave_v6 boolean true" | 
debconf-set-selections

Reply via email to