From owner-freebsd-net Thu Mar 29 6:14:45 2001 Delivered-To: freebsd-net@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 89B0837B71B for ; Thu, 29 Mar 2001 06:14:38 -0800 (PST) (envelope-from julian@elischer.org) Received: (qmail 31834 invoked by uid 666); 29 Mar 2001 14:16:28 -0000 Received: from i080-035.nv.iinet.net.au (HELO elischer.org) (203.59.80.35) by mail.m.iinet.net.au with SMTP; 29 Mar 2001 14:16:28 -0000 Message-ID: <3AC3433F.A673BB6F@elischer.org> Date: Thu, 29 Mar 2001 06:14:23 -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 (E-mail)" , "Freebsd Net (E-mail)" Subject: Re: using vtund References: <31A473DBB655D21180850008C71E251A031AAEE2@mail.kebne.se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Gunnar Olsson wrote: > > Hi, > Is the following possible to do with the vtund?! > > I have one host running FreeBSD 4.2. On that host > I have one "real" ethernet board, rl0. I would like to create > several tap interfaces (managed to do). All packets directed > to the tap interfaces I want to be tunneled through the rl0 > interfaces and then just grab the packets on the other side, > i.e. no client-server behaviour but using vtund anyway?! > > Example: > ifconfig tap0 10.10.10.1 netmask 255.255.255.0 > ifconfig rl0 10.0.0.1 netmask 255.255.255.0 > > When doing a ping 10.10.10.2 I would like following to happen: > > data-->tap ip header-->tap ether header > > that packet sent to vtund and sent out of the rl0 interface. > On the rl0 wire the packet should look like: > > date-->tap ip header-->tap ether header-->rl0 ip header-->rl0 ether header.. you can do this from the command line in netgraph (you may need to grab the eiface module from -currenet I haven't back-ported it yet.) > > Is this possible to do with vtund? If so, how should I edit the vtund.conf > file? Should I start vtund in server mode? > > 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-net" 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-net" in the body of the message