Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Apr 2002 13:49:03 +0200
From:      John Angelmo <john@veidit.net>
To:        =?ISO-8859-1?Q?Rickard_Borgm=E4ster?= <doktorn@realworld.nu>
Cc:        net@FreeBSD.ORG
Subject:   Re: Tunneling - No gif interface? Why?
Message-ID:  <3CBD612F.3030801@veidit.net>
References:  <20020417134138.53d68990.doktorn@realworld.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
Rickard Borgmäster wrote:
> 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 following
> 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
> 
> Oh...
> 
>  $ ifconfig -a
> xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> 	inet 130.236.218.63 netmask 0xffffff00 broadcast 130.236.218.255
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
> 	inet 127.0.0.1 netmask 0xff000000 
> ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
> vmnet1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> 	inet 10.0.8.30 netmask 0xfffffff0 broadcast 10.0.8.31
> 	ether 00:bd:da:0d:00:01 
> 
> But...
> 
>  $ grep tun /usr/src/sys/i386/conf/KERNEL
> pseudo-device	tun	2	# Packet tunnel.
> pseudo-device	gif	2	# IPv6 and IPv4 tunneling
> 
> Why don't I have the gif0 interface?
> 
> 

Is options INET6 added to your kernel config file?

/John


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?3CBD612F.3030801>