Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 965C318FC3 for ; Fri, 14 Aug 2015 11:07:48 +0000 (UTC) Received: (qmail 41566 invoked by uid 500); 14 Aug 2015 11:07:48 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 41538 invoked by uid 500); 14 Aug 2015 11:07:48 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 41525 invoked by uid 500); 14 Aug 2015 11:07:48 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 41520 invoked by uid 99); 14 Aug 2015 11:07:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2015 11:07:48 +0000 Date: Fri, 14 Aug 2015 11:07:48 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-8710) site2site vpn iptables rules are not configured on VR MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-8710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14696877#comment-14696877 ] ASF subversion and git services commented on CLOUDSTACK-8710: ------------------------------------------------------------- Commit 05a29f01b4de0e88e2f0fb99886573a25c87fea6 in cloudstack's branch refs/heads/master from [~remibergsma] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=05a29f0 ] Merge pull request #693 from remibergsma/s2svpn-fixes Fix site-to-site VPN featureThis is work done together with @jayapalu on fixing the site2site VPN. The first part was done in PR #690 by @jayapalu. On top of that, some other fixes were needed and those are added in this PR. It made sense to make a new PR which includes all fixes so we can actually test it. The original PR #690 is already merged into this one, so can be closed. Since the commit ids are kept the same, merging this will close both. I closely compared the 4.4/4.5 implementation with the new 4.6 one. I did not only make it work, but also added some security improvements (some of which were also in 4.4/4.5). I noticed the pre shared key was being logged, so removed that as well. This is how I tested and verified it: https://github.com/schubergphilis/MCT-shared/tree/master/helper_scripts/cloudstack/vpn_tests When I have some time available, I'll write a Marvin test for it that we can include in the repo. It now works(tm) with one manual step due to CLOUDSTACK-8685: We need a default gateway before site-to-site VPN will actually work. It will connect, but not forward packets. The reason for this, is due to the iptables setup. VM1 has router1 as gateway, but router1 does not know the route to VM2 so it will give up. With a default gateway, the packets are about to be forwarded to the default gateway but when they reach eth1 the public nic, iptables kicks in, does some magic and forwards it through the ipsec tunnel. So, you need a default gw set to upstream. Workaround for now is setting the route manually: ``route add default gw 1.2.3.4`` or ``ip route add default via 1.2.3.4`` In other words, we need to fix CLOUDSTACK-8685 soon, too. Thanks to @snuf @jayapalu! @jayapalu @snuf could you please review this? * pr/693: do not log sensitive site-to-site VPN PSK tighten security of site-to-site VPN CLOUDSTACK-8730: fix s2s iptables rules and ipsec config CLOUDSTACK-8710: Fixed applying iptables rules for s2s vpn Signed-off-by: Remi Bergsma > site2site vpn iptables rules are not configured on VR > ----------------------------------------------------- > > Key: CLOUDSTACK-8710 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8710 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Network Devices > Affects Versions: 4.6.0 > Reporter: Jayapal Reddy > Assignee: Jayapal Reddy > Priority: Critical > > 1. Configure vpc > 2. Configure site2site vpn > 3. After configuration go to VR and check the iptables rules of VR. > Observed that there no rules configured on ports 500, 4500. > In configure.py there is method 'configure_iptables' which is having rules but these are not getting applied on VR on site2site vpn configuration. -- This message was sent by Atlassian JIRA (v6.3.4#6332)