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 1A4ED10741 for ; Thu, 19 Dec 2013 05:29:28 +0000 (UTC) Received: (qmail 93483 invoked by uid 500); 19 Dec 2013 05:29:18 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 93454 invoked by uid 500); 19 Dec 2013 05:29:17 -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 93419 invoked by uid 500); 19 Dec 2013 05:29:15 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 93228 invoked by uid 99); 19 Dec 2013 05:29:10 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 05:29:10 +0000 Date: Thu, 19 Dec 2013 05:29:10 +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-4535) In Virtual Router Port Forwarding Service, the connection is not established when client on the same private network 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-4535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13852622#comment-13852622 ] ASF subversion and git services commented on CLOUDSTACK-4535: ------------------------------------------------------------- Commit bcedbe698afd6a4372348de678f63c2c6071e9fc in branch refs/heads/4.3 from [~jayapal] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=bcedbe6 ] CLOUDSTACK-4535 Fixed issue in PF in connecting from private nw when public and private ports are different > In Virtual Router Port Forwarding Service, the connection is not established when client on the same private network > -------------------------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-4535 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4535 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Virtual Router > Affects Versions: pre-4.0.0, 4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.1.1 > Environment: cs4.1.1 > Reporter: sie,chih-wei > Assignee: Jayapal Reddy > Priority: Minor > Fix For: 4.3.0 > > > When a client on the same internal network as the Port Forwarding requests a connection to the service's public IP address & port , the connection breaks. > EX : Port Forwarding for TCP Public_IP:1234 to Private_IP:22 > a client(in private network) do => $ssh root@Public_IP -p 1234 => $ ...time out ... > Solution : In Virtual Router do > $ sudo iptables -t nat -D POSTROUTING -s Private_CIDR -p tcp --dport 1234(public port) -d Private_IP -j SNAT -o eth0 --to-source > $ sudo iptables -t nat -I POSTROUTING -s Private_CIDR -p tcp --dport 22(private port) -d Private_IP -j SNAT -o eth0 --to-source > https://github.com/apache/cloudstack/blob/master/patches/systemvm/debian/config/root/firewall.sh > 74 : (sudo iptables -t nat $op POSTROUTING -s $vrGuestIPNetwork -p $prot --dport ***$port*** -d $guestVmIp -j SNAT -o eth0 --to-source $vrGuestIP &>> $OUTFILE || [ "$op" == "-D" ]) > have to change ?? => > (sudo iptables -t nat $op POSTROUTING -s $vrGuestIPNetwork -p $prot --dport ***$guestPort*** -d $guestVmIp -j SNAT -o eth0 --to-source $vrGuestIP &>> $OUTFILE || [ "$op" == "-D" ]) > Thanks. -- This message was sent by Atlassian JIRA (v6.1.4#6159)