Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3F349200B85 for ; Thu, 1 Sep 2016 08:22:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 38918160AB4; Thu, 1 Sep 2016 06:22:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7F3E8160AC4 for ; Thu, 1 Sep 2016 08:22:27 +0200 (CEST) Received: (qmail 3682 invoked by uid 500); 1 Sep 2016 06:22:20 -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 3661 invoked by uid 500); 1 Sep 2016 06:22:20 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 3657 invoked by uid 99); 1 Sep 2016 06:22:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2016 06:22:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 85EEF2C1B81 for ; Thu, 1 Sep 2016 06:22:20 +0000 (UTC) Date: Thu, 1 Sep 2016 06:22:20 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9480) Egress Firewall: Incorrect use of Allow/Deny for ICMP MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 01 Sep 2016 06:22:43 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15454470#comment-15454470 ] ASF GitHub Bot commented on CLOUDSTACK-9480: -------------------------------------------- Github user murali-reddy commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1666#discussion_r77119259 --- Diff: systemvm/patches/debian/config/opt/cloud/bin/configure.py --- @@ -145,40 +145,41 @@ def add_rule(self, cidr): logging.debug("Current ACL IP direction is ==> %s", self.direction) if self.direction == 'egress': self.fw.append(["filter", "", " -A FW_OUTBOUND -j FW_EGRESS_RULES"]) + fwr = " -I FW_EGRESS_RULES" + + #In case we have a default rule (accept all or drop all), we have to evaluate the action again. + if self.rule['cidr'] == ['0.0.0.0/0']: --- End diff -- If-else block does exactly that logic. If rule has CIDR 0.0.0.0/0 then rule action is set to that of default egress policy in the network offering. If rule has a CIDR other than 0.0.0.0/0 then reverse action (as that of default egress policy in the network offering) is set for the rule > Egress Firewall: Incorrect use of Allow/Deny for ICMP > ----------------------------------------------------- > > Key: CLOUDSTACK-9480 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9480 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Network Controller > Affects Versions: 4.6.2, 4.7.1, 4.8.0, 4.9.0 > Reporter: Murali Reddy > Assignee: Murali Reddy > Fix For: 4.9.1 > > > When 'default egress policy' is set to 'allow' in the network offering, any egress rule that is added will 'deny' the traffic overriding the default behaviour. > Conversely, when 'default egress policy' is set to 'deny' in the network offering, any egress rule that is added will 'allow' the traffic overriding the default behaviour. > While this works for 'tcp', 'udp' as expected, for 'icmp' protocol its always set to ALLOW. > Egress firewall rule behaviour should be consistent for all the protocols. -- This message was sent by Atlassian JIRA (v6.3.4#6332)