You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ya...@apache.org on 2012/08/07 02:15:49 UTC

git commit: S2S VPN: CS-15641: Enable UDP port 4500 for NAT-T

Updated Branches:
  refs/heads/vpc 37b66d3fb -> 435480cb5


S2S VPN: CS-15641: Enable UDP port 4500 for NAT-T


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

Branch: refs/heads/vpc
Commit: 435480cb5a28ee44cfdb8485449608b6edcb61cd
Parents: 37b66d3
Author: Sheng Yang <sh...@citrix.com>
Authored: Mon Aug 6 16:53:55 2012 -0700
Committer: Sheng Yang <sh...@citrix.com>
Committed: Mon Aug 6 17:15:38 2012 -0700

----------------------------------------------------------------------
 .../debian/config/opt/cloud/bin/ipsectunnel.sh     |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/435480cb/patches/systemvm/debian/config/opt/cloud/bin/ipsectunnel.sh
----------------------------------------------------------------------
diff --git a/patches/systemvm/debian/config/opt/cloud/bin/ipsectunnel.sh b/patches/systemvm/debian/config/opt/cloud/bin/ipsectunnel.sh
index b0414b9..1962212 100755
--- a/patches/systemvm/debian/config/opt/cloud/bin/ipsectunnel.sh
+++ b/patches/systemvm/debian/config/opt/cloud/bin/ipsectunnel.sh
@@ -67,6 +67,7 @@ check_and_enable_iptables() {
   if [ $? -ne 0 ]
   then
       sudo iptables -A INPUT -i $outIf -p udp -m udp --dport 500 -j ACCEPT
+      sudo iptables -A INPUT -i $outIf -p udp -m udp --dport 4500 -j ACCEPT
       # Prevent NAT on "marked" VPN traffic, so need to be the first one on POSTROUTING chain
       sudo iptables -t nat -I POSTROUTING -t nat -o $outIf -m mark --mark $vpnoutmark -j ACCEPT
   fi
@@ -90,6 +91,7 @@ check_and_disable_iptables() {
   then
     #Nobody else use s2s vpn now, so delete the iptables rules
     sudo iptables -D INPUT -i $outIf -p udp -m udp --dport 500 -j ACCEPT
+    sudo iptables -D INPUT -i $outIf -p udp -m udp --dport 4500 -j ACCEPT
     sudo iptables -t nat -D POSTROUTING -t nat -o $outIf -m mark --mark $vpnoutmark -j ACCEPT
   fi
   return 0