From owner-freebsd-net Wed Apr 17 4:49:25 2002 Delivered-To: freebsd-net@freebsd.org Received: from h38n2fls34o1000.telia.com (h38n2fls34o1000.telia.com [213.64.210.38]) by hub.freebsd.org (Postfix) with ESMTP id B402737B405 for ; Wed, 17 Apr 2002 04:49:20 -0700 (PDT) Received: from veidit.net ([213.88.166.91]) (authenticated bits=0) by h38n2fls34o1000.telia.com (8.12.2/8.12.2) with ESMTP id g3HBnAq5001194 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 17 Apr 2002 13:49:18 +0200 (CEST) Message-ID: <3CBD612F.3030801@veidit.net> Date: Wed, 17 Apr 2002 13:49:03 +0200 From: John Angelmo User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.9) Gecko/20020414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Rickard_Borgm=E4ster?= Cc: net@FreeBSD.ORG Subject: Re: Tunneling - No gif interface? Why? References: <20020417134138.53d68990.doktorn@realworld.nu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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 mtu 1500 > inet 130.236.218.63 netmask 0xffffff00 broadcast 130.236.218.255 > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > ppp0: flags=8010 mtu 1500 > vmnet1: flags=8843 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