Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!pumpkin.pangea.ca!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!howland.erols.net!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!shift.utell.net!nobody
From: brian@shift.utell.net (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How to use a tunnel interface?
Date: Wed, 9 Jul 1997 14:37:41 +0100
Organization: Awfulhak Ltd.
Lines: 40
Message-ID: <5740q5.1j2.ln@shift.utell.net>
References: <5q001q$cri@news-sop.inria.fr>
Reply-To: brian@awfulhak.org, brian@utell.co.uk
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:44159
In article <5q001q$cri@news-sop.inria.fr>,
eduros@chouette.inria.fr (Emmanuel Duros) writes:
>
> I have been trying to undestand how to use a tunnel interface but
> I have not had much success!
>
> I just want to send packets that would be tunneled via the interface
> tun0.
>
> According to me, the configuration could be as follow.
>
> On my station, I create a tunnel:
>
> $ ifconfig tun0 138.96.152.64 138.96.152.20
> (138.96.152.64 is my local IP address)
>
> Then I had a route to the tunnel:
>
> $ route add 138.96.100.100 138.96.152.20
>
> As I ping host 138.96.100.100 and check (tcpdump -i tun0) what goes
> through the tunnel nothing happens.
>
> What is wrong with this?
>
> Where can I find a documentation on the tunnel interface, the way it
> works...???
Writing to tun0 without a reader will achieve nothing. You need
to write a program that reads tun0 and does something with the
data (ppp for example sends it down a serial line).
> Thankx
>
> Emmanuel
--
Brian <brian@awfulhak.org> <brian@freebsd.org>
<http://www.awfulhak.org>
Don't _EVER_ lose your sense of humour !