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 E502E200CBD for ; Thu, 6 Jul 2017 12:34:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E3D12166031; Thu, 6 Jul 2017 10:34:11 +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 3B11E166029 for ; Thu, 6 Jul 2017 12:34:11 +0200 (CEST) Received: (qmail 5057 invoked by uid 500); 6 Jul 2017 10:34:09 -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 4758 invoked by uid 500); 6 Jul 2017 10:34:09 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 4726 invoked by uid 99); 6 Jul 2017 10:34:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jul 2017 10:34:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C3886CA9F4 for ; Thu, 6 Jul 2017 10:34:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id HmY1DN1yAUC3 for ; Thu, 6 Jul 2017 10:34:08 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id AC1475FB40 for ; Thu, 6 Jul 2017 10:34:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5AAAAE0D89 for ; Thu, 6 Jul 2017 10:34:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 017032467D for ; Thu, 6 Jul 2017 10:34:04 +0000 (UTC) Date: Thu, 6 Jul 2017 10:34:04 +0000 (UTC) From: "Rajani Karuturi (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CLOUDSTACK-9930) SNAT rule is incorrectly added on for PF rule MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 06 Jul 2017 10:34:12 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rajani Karuturi updated CLOUDSTACK-9930: ---------------------------------------- Fix Version/s: (was: 4.10.0.0) 4.10.1.0 > SNAT rule is incorrectly added on for PF rule > --------------------------------------------- > > Key: CLOUDSTACK-9930 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9930 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Reporter: Jayapal Reddy > Fix For: 4.10.1.0 > > > 1. Acquire an ip from the additional public subnet. > 2. Configure a port forwarding rule on the isolated network. > 3. Check the snat rule added in nat table. It is added on default source nat interface instead of additional public subnet interface. > eth3 - additional public subnet interface. > {noformat} > root@r-133-QA:~# iptables -t nat -L -nv > Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes) > pkts bytes target prot opt in out source destination > 0 0 CONNMARK tcp -- eth3 * 0.0.0.0/0 10.147.52.100 tcp dpt:22 state NEW CONNMARK save > 0 0 DNAT tcp -- eth3 * 0.0.0.0/0 10.147.52.100 tcp dpt:22 to:10.1.1.182:22 > 0 0 DNAT tcp -- eth0 * 0.0.0.0/0 10.147.52.100 tcp dpt:22 to:10.1.1.182:22 > 0 0 MARK tcp -- eth3 * 0.0.0.0/0 10.147.52.100 tcp dpt:22 MARK set 0x3 > Chain INPUT (policy ACCEPT 0 packets, 0 bytes) > pkts bytes target prot opt in out source destination > Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes) > pkts bytes target prot opt in out source destination > 0 0 DNAT tcp -- * * 0.0.0.0/0 10.147.52.100 tcp dpt:22 to:10.1.1.182:22 > Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes) > pkts bytes target prot opt in out source destination > 10 500 SNAT all -- * eth2 0.0.0.0/0 0.0.0.0/0 to:10.147.46.107 > 0 0 SNAT all -- * eth2 0.0.0.0/0 0.0.0.0/0 to:10.147.52.100 > 0 0 SNAT tcp -- * eth0 10.1.1.0/24 10.1.1.182 tcp dpt:22 to:10.1.1.1 > root@r-133-QA:~# > root@r-133-QA:~# > root@r-133-QA:~# > root@r-133-QA:~# ip a > 1: lo: mtu 16436 qdisc noqueue state UNKNOWN > link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 > inet 127.0.0.1/8 scope host lo > 2: eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000 > link/ether 02:00:24:c6:00:07 brd ff:ff:ff:ff:ff:ff > inet 10.1.1.1/24 brd 10.1.1.255 scope global eth0 > 3: eth1: mtu 1500 qdisc pfifo_fast state UP qlen 1000 > link/ether 0e:00:a9:fe:02:b7 brd ff:ff:ff:ff:ff:ff > inet 169.254.2.183/16 brd 169.254.255.255 scope global eth1 > 4: eth2: mtu 1500 qdisc pfifo_fast state UP qlen 1000 > link/ether 1e:00:1e:00:00:13 brd ff:ff:ff:ff:ff:ff > inet 10.147.46.107/24 brd 10.147.46.255 scope global eth2 > 7: eth3: mtu 1500 qdisc pfifo_fast state UP qlen 1000 > link/ether 1e:00:e0:00:00:33 brd ff:ff:ff:ff:ff:ff > inet 10.147.52.100/24 brd 10.147.52.255 scope global eth3 > root@r-133-QA:~# > root@r-133-QA:~# ip route show table Table_eth3 > default via 10.147.52.1 dev eth3 proto static > throw 10.1.1.0/24 proto static > throw 169.254.0.0/16 proto static > root@r-133-QA:~# ip route show table Table_eth2 > default via 10.147.46.1 dev eth2 proto static > throw 10.1.1.0/24 proto static > throw 169.254.0.0/16 proto static > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)