On 2002-04-17 -  13:41 - [+0200], Rickard Borgmäster wrote to [EMAIL PROTECTED]:

> From: Rickard Borgmäster <[EMAIL PROTECTED]>
>
> 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
>
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=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?
>
>
>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to