Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BB61617A73 for ; Tue, 9 Jun 2015 12:32:21 +0000 (UTC) Received: (qmail 73563 invoked by uid 500); 9 Jun 2015 12:32:14 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 73508 invoked by uid 500); 9 Jun 2015 12:32:14 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 73496 invoked by uid 99); 9 Jun 2015 12:32:14 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2015 12:32:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 356371A4815 for ; Tue, 9 Jun 2015 12:32:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.882 X-Spam-Level: ** X-Spam-Status: No, score=2.882 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, NORMAL_HTTP_TO_IP=0.001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Wm0eavVHGH0x for ; Tue, 9 Jun 2015 12:32:07 +0000 (UTC) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id C94F52762F for ; Tue, 9 Jun 2015 12:32:06 +0000 (UTC) Received: by wiwd19 with SMTP id d19so16532417wiw.0 for ; Tue, 09 Jun 2015 05:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=fBlokLBefesn4BVoh9Qm2jbmWHcmqSM6ReeI6N2wuuE=; b=TDDsBaV85eJN3WpI4vtELTHanIJcgUJBEXXmTcJiR16M6PLpcfJA4iR+oAwUV69qEu 8sRMU7wBJq7chU6GrLqY2J7yvZwpnRnGb/AOT2eUGZDZ56tT9LjX8VpbrsKCHpi91spr 6oy8VWLxSzFP3rnjWW+2OUKXJBCEUggFbqzaGhKD8I1vxXiu+TL0aTFhPV1BYQLLjxwR Sx+MsFDsZLHzl53u53HNZsdkHC7NNJp6RnjLOAZ7QyKZR8/CnDD4xft6aFoPmgh5PbFb 8nWA/VrvGIDOEPMjl9kwiBKMwm7XGj8FrDgnD8Y6E39QLLCc1s9cFvyZRcNX/drJLndx WEBQ== X-Received: by 10.194.184.14 with SMTP id eq14mr42009549wjc.58.1433853080345; Tue, 09 Jun 2015 05:31:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.137.130 with HTTP; Tue, 9 Jun 2015 05:30:59 -0700 (PDT) From: "Vincenzo D'Amore" Date: Tue, 9 Jun 2015 14:30:59 +0200 Message-ID: Subject: VPN Zookeeper client connection To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=047d7bd6baf483a567051814ef6f --047d7bd6baf483a567051814ef6f Content-Type: text/plain; charset=UTF-8 Hi all, I'm unable to upload a file into a zookeeper instance running behind a VPN. As far as I understood, after the first connection to client port 2181, there is a second connection from client to server to a random port which is dynamically assigned by zookeeper server. INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] - Accepted socket connection from /10.0.2.2:53159 INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@868] - Client attempting to establish new session at /10.0.2.2:53159 INFO [SyncThread:0:ZooKeeperServer@617] - Established session 0x14dd817fa700010 with negotiated timeout 20000 for client /10.0.2.2:53159 WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@357] - caught end of stream exception EndOfStreamException: Unable to read additional data from client sessionid 0x14dd817fa700010, likely client has closed socket at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:228) at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208) at java.lang.Thread.run(Thread.java:745) 53159 port is unreachable from outside, because it is random and cannot be mapped to VPN access rules. Is there a way to workaround this problem? May I define a static port or a port range for the second connection? -- Vincenzo D'Amore email: v.damore@gmail.com skype: free.dev mobile: +39 349 8513251 --047d7bd6baf483a567051814ef6f--