From owner-freebsd-hackers Wed Mar 28 5:31:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from filk.iinet.net.au (syncopation-dns.iinet.net.au [203.59.24.29]) by hub.freebsd.org (Postfix) with SMTP id E810837B71E for ; Wed, 28 Mar 2001 05:31:17 -0800 (PST) (envelope-from julian@elischer.org) Received: (qmail 10105 invoked by uid 666); 28 Mar 2001 13:33:05 -0000 Received: from i079-231.nv.iinet.net.au (HELO elischer.org) (203.59.79.231) by mail.m.iinet.net.au with SMTP; 28 Mar 2001 13:33:05 -0000 Message-ID: <3AC1E79B.B376505E@elischer.org> Date: Wed, 28 Mar 2001 05:31:07 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Gunnar Olsson Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: tunnel question References: <31A473DBB655D21180850008C71E251A031AAEDB@mail.kebne.se> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gunnar Olsson wrote: > > Hi there, > > I have configured a logical ethernet interface, so called a tap interface > (tap0). > I have also managed to bridged that interface to my "real" ethernet > interface (rl0) > and it works fine. Now to my question. > > Is it possible to "tunnel" my tap interface including the ip and ethernet > header into > a new ip and ethernet header, see figure below. > > ---------------------------------|-------------|---------------|-----------| > ------------| > | data | ip(tap0) | eth(tap0) | ip(rl0) | eth(rl0) > | > ---------------------------------|-------------|---------------|-----------| > ------------| > > It is almost as a tun interface, but I would like to keep the layer 2(ARP > handling) > with the logical interface, that's why I want to use the tap interface and > not the > tun interface. > > Any idea have to make this to work appreciates a lot! check out the netgraph examples.. you can create a simple tunnel of this type using the ksocket node and the iface node (amongst others possibilities) The examples in /usr/share/examples/netgraph show an IP/UDP tunnel. other combinations are possible. > Best Regards, > Gunnar > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Gunnar Olsson Phone: +46 8 5062 5762 > Xelerated Packet Devices AB Fax: +46 8 5455 3211 > Regeringsgatan 67 Mobile: +46 73 3279765 > SE-10386 Stockholm > Web: http://www.xelerated.com > Email: mailto:gunnar.olsson@xelerated.com > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000-2001 ---> X_.---._/ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message