Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2002 13:48:07 -0700 (Pacific Daylight Time)
From:      Zomer Pi <pizomer@myrealbox.com>
To:        freebsd-net@freebsd.org
Cc:        =?iso-8859-1?Q?Rickard_Borgm=E4ster?= <doktorn@realworld.nu>
Subject:   Re: Tunneling - No gif interface? Why?
Message-ID:  <Pine.WNT.4.44.0204181344230.156-100000@joker>
In-Reply-To: <20020417134138.53d68990.doktorn@realworld.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-04-17 -  13:41 - [+0200], Rickard Borgm=E4ster wrote to net@FreeBSD=
=2EORG:

> From: Rickard Borgm=E4ster <doktorn@realworld.nu>
>
> I need to create a tunnel to an OpenBSD host. This is because the
> OpenBSD host is my mailrelay, and my local sendmail (port 25) is
> blocked by a firewall out of my control.
>
> But somewhere it seems that the necessary parts are not in the
> system....
>
> $ apropos tunnel
> gif(4)                   - generic tunnel interface
> gifconfig(8)             - configure generic IP tunnel
> nos-tun(8)               - implement ``nos'' or ``ka9q'' style IP over IP
> tunnel stf(4)                   - 6to4 tunnel interface
> tap(4)                   - Ethernet tunnel software network interface
> tun(4)                   - tunnel software network interface
>
> gif, that's what I want!
>
> from gifconfig(8):
> SYNOPSIS
>      gifconfig interface [af] [physsrc physdest]
> [...]
> EXAMPLES
>      If you would like to configure IPv6 over IPv4 (aka IPv6 in IPv4)
> tunnel     between 10.1.1.1 and 10.2.3.4, you should perform the followin=
g
> command:     # gifconfig gif0 inet 10.1.1.1 10.2.3.4
>
> Nice! So lets rock:
>
> $ gifconfig gif0 130.236.218.63 213.88.128.169
> gifconfig: interface gif0 does not exist
>
I'm no expert but i think you'll need
to make the device in /dev/gif0
or something like that

> Oh...
>
>  $ ifconfig -a
> xl0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> =09inet 130.236.218.63 netmask 0xffffff00 broadcast 130.236.218.255
> lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
> =09inet 127.0.0.1 netmask 0xff000000
> ppp0: flags=3D8010<POINTOPOINT,MULTICAST> mtu 1500
> vmnet1: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> =09inet 10.0.8.30 netmask 0xfffffff0 broadcast 10.0.8.31
> =09ether 00:bd:da:0d:00:01
>
> But...
>
>  $ grep tun /usr/src/sys/i386/conf/KERNEL
> pseudo-device=09tun=092=09# Packet tunnel.
> pseudo-device=09gif=092=09# IPv6 and IPv4 tunneling
>
> Why don't I have the gif0 interface?
>
>
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.WNT.4.44.0204181344230.156-100000>