From owner-freebsd-net@FreeBSD.ORG Thu Dec 11 11:10:34 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A45C31065677 for ; Thu, 11 Dec 2008 11:10:34 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from smtp.teledomenet.gr (smtp.teledomenet.gr [213.142.128.2]) by mx1.freebsd.org (Postfix) with ESMTP id 5EC148FC08 for ; Thu, 11 Dec 2008 11:10:34 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: by smtp.teledomenet.gr (Postfix, from userid 58) id CFD9314209A; Thu, 11 Dec 2008 12:51:21 +0200 (EET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on smtp.teledomenet.gr X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.5 Received: from iris.teledomenet.local (unknown [192.168.1.71]) by smtp.teledomenet.gr (Postfix) with ESMTP id CCC1114205A for ; Thu, 11 Dec 2008 12:51:18 +0200 (EET) From: Nikos Vassiliadis To: freebsd-net@freebsd.org Date: Thu, 11 Dec 2008 12:50:37 +0200 User-Agent: KMail/1.9.10 X-NCC-RegID: gr.telehouse MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812111250.38046.nvass@teledomenet.gr> Subject: ng_bridge + ng_ksocket X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Dec 2008 11:10:34 -0000 Hello, I would like to create an ethernet over UDP tunnel. For my purposes, using ng_bridge and ng_ksocket seem fine. The problem is that the peer address/port is not known, since it will be behind a NAT device and will have a dynamically assigned IP address. In userspace I would use something like recvfrom() to get the peer address. I don't know what to do for ngctl and ng_ksocket. Any suggestions? Is this doable? Is there something I can do to circumvent the problem? Thanks in advance, Nikos