[dtn-users] A problem with dtntunnel

"ssireskin@gmail.com" <ssireskin@gmail.com> Tue, 04 December 2012 17:13 UTC

Return-Path: <ssireskin@gmail.com>
X-Original-To: dtn-users@ietfa.amsl.com
Delivered-To: dtn-users@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8B9A921F8C3D for <dtn-users@ietfa.amsl.com>; Tue, 4 Dec 2012 09:13:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.522
X-Spam-Level:
X-Spam-Status: No, score=-3.522 tagged_above=-999 required=5 tests=[AWL=0.076, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ync+hKsqFhLx for <dtn-users@ietfa.amsl.com>; Tue, 4 Dec 2012 09:13:04 -0800 (PST)
Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by ietfa.amsl.com (Postfix) with ESMTP id 0A6CB21F8C38 for <dtn-users@irtf.org>; Tue, 4 Dec 2012 09:13:04 -0800 (PST)
Received: by mail-pb0-f54.google.com with SMTP id wz12so2986911pbc.13 for <dtn-users@irtf.org>; Tue, 04 Dec 2012 09:13:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=B6Pln56YiopHhHn92kw3eA97XPvL4fTLUMyu5b+t9K4=; b=QQEOEv1wv4d2IrTmEX5zAT+Ipv6e2/Xe2BXWqbQzC9Ly9FumBBFHZPybp/3RgJIyyp H+3bR1SFbYJulwHdpstVCPJmjwW8FOqrlkW5hLjZldZXkL5D62M2+16Y/rEQg8wBNkD0 p6QcZLil+aoN0NRNA0NLgPlqInPRIqLKs8GsVP06eyI5ExRoYjiBEfUuQruwO/9h8bN5 NqOauimFUHCAgwNsSpEdEDD5TWWHL+f+VU/A7jkwLCvHdQru2Uk7mH9msgHBX2ogXDrO OJ19G3/BPoVVkhNOxUwocVT17VBuTnNCuSNhOrfz204vMDLR5GZRfTQKpGvqO9R3TqhK zxQQ==
MIME-Version: 1.0
Received: by 10.68.225.201 with SMTP id rm9mr756710pbc.124.1354641183850; Tue, 04 Dec 2012 09:13:03 -0800 (PST)
Received: by 10.68.18.172 with HTTP; Tue, 4 Dec 2012 09:13:03 -0800 (PST)
Date: Tue, 04 Dec 2012 20:13:03 +0300
Message-ID: <CAJR8z9--cVk67ac-aJ2haKpc=7LSVWHFXhTykaGcdpLQeevtiQ@mail.gmail.com>
From: "ssireskin@gmail.com" <ssireskin@gmail.com>
To: dtn-users@irtf.org
Content-Type: multipart/alternative; boundary="047d7b2ede338fbf7104d009fa6f"
Subject: [dtn-users] A problem with dtntunnel
X-BeenThere: dtn-users@irtf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "The Delay-Tolerant Networking Research Group \(DTNRG\) - Users." <dtn-users.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/dtn-users>, <mailto:dtn-users-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/dtn-users>
List-Post: <mailto:dtn-users@irtf.org>
List-Help: <mailto:dtn-users-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 04 Dec 2012 17:13:04 -0000

Hello all!

I am using dtn-2.9.0 on a RHEL 6 based Linux distro and I am having a
problem when using netcat (nc) with dtntunnel.
On the sender node I run "cat /etc/passwd | nc receiver_ip". On the
receiver node I run "nc -l 9999". With the help
of Iptables port 9999 gets redirected to the port 19999, which is listened
by dtntunnel.

The file /etc/passwd is successfully delivered to the receiver and is shown
on the screen. After this the receiving nc exists.
No problem here. However, nc on the sender node doesn't exit after it sends
the file. It continues to run forever. When I
run nc in the opposite direction, I get the same problem - the sending nc
doesn't exit.

My configuration on both nodes is symmetric:
iptables -t nat -A OUTPUT -d $REMOTE_HOST -p tcp --dport 9999 -j DNAT --to
$LOCAL_HOST:19999
dtntunnel -T $LOCAL_HOST:19999:$REMOTE_HOST:9999 $REMOTE_NODE/dtntunnel/nc
-d
dtntunnel -L --local-eid $LOCAL_NODE/dtntunnel/nc -d

dtnping works ok in both directions.

Please give me any advice.

With best regards,
Sergey Sireskin