1998-04-11 20:33:06 +01:00
|
|
|
.\"
|
|
|
|
.\" ----------------------------------------------------------------------------
|
|
|
|
.\" "THE BEER-WARE LICENSE" (Revision 42):
|
|
|
|
.\" <phk@FreeBSD.org> wrote this file. As long as you retain this notice you
|
|
|
|
.\" can do whatever you want with this stuff. If we meet some day, and you think
|
|
|
|
.\" this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
|
|
|
|
.\" ----------------------------------------------------------------------------
|
|
|
|
.\"
|
1998-05-05 07:24:15 +01:00
|
|
|
.\" $Id: nos-tun.8,v 1.1 1998/04/11 19:33:05 phk Exp $
|
1998-04-11 20:33:06 +01:00
|
|
|
.\"
|
|
|
|
.Dd April 11, 1998
|
|
|
|
.Dt NOS-TUN 8
|
|
|
|
.Os FreeBSD 3.0
|
|
|
|
.Sh NAME
|
|
|
|
.Nm nos-tun
|
1998-05-05 07:24:15 +01:00
|
|
|
.Nd implement ``nos'' or ``ka9q'' style IP over IP tunnel
|
1998-04-11 20:33:06 +01:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm nos-tun
|
|
|
|
.Fl t
|
|
|
|
.Ar tunnel
|
|
|
|
.Fl s
|
|
|
|
.Ar source
|
|
|
|
.Fl d
|
|
|
|
.Ar destination
|
|
|
|
.Ar target
|
|
|
|
.Sh DESCRIPTION
|
1998-05-05 07:24:15 +01:00
|
|
|
.Nm Nos-tun
|
1998-04-11 20:33:06 +01:00
|
|
|
is used to establish an
|
|
|
|
.Em nos
|
|
|
|
style tunnel, (also known as
|
|
|
|
.Em ka9q
|
|
|
|
or
|
|
|
|
.Em IP-IP
|
|
|
|
tunnel) using a
|
|
|
|
.Xr tun 4
|
|
|
|
kernel interface.
|
|
|
|
.Pp
|
1998-05-05 07:24:15 +01:00
|
|
|
.Ar Tunnel
|
1998-04-11 20:33:06 +01:00
|
|
|
is the name of the tunnel device
|
1998-05-05 07:24:15 +01:00
|
|
|
.Pa /dev/tun0
|
1998-04-11 20:33:06 +01:00
|
|
|
for example.
|
|
|
|
.Pp
|
1998-05-05 07:24:15 +01:00
|
|
|
.Ar Source
|
1998-04-11 20:33:06 +01:00
|
|
|
and
|
|
|
|
.Ar destination
|
|
|
|
are the addresses used on the tunnel device.
|
|
|
|
If you configure the tunnel against a cisco router, use a netmask of
|
|
|
|
.Dq 255.255.255.252
|
|
|
|
on the cisco. This is because the tunnel is a point-to-point interface
|
1998-05-05 07:24:15 +01:00
|
|
|
in the
|
|
|
|
.Bx Free
|
|
|
|
end, a concept cisco doesn't really implement.
|
1998-04-11 20:33:06 +01:00
|
|
|
.Pp
|
1998-05-05 07:24:15 +01:00
|
|
|
.Ar Target
|
1998-04-11 20:33:06 +01:00
|
|
|
is the address of the remote tunnel device, this must match the source
|
|
|
|
address set on the remote end.
|
|
|
|
.Sh EXAMPLES
|
1998-05-05 07:24:15 +01:00
|
|
|
This end, a
|
|
|
|
.Bx Free
|
|
|
|
box on address 192.168.59.34:
|
1998-04-11 20:33:06 +01:00
|
|
|
.Bd -literal -offset indent 4m
|
|
|
|
nos-tun -t /dev/tun0 -s 192.168.61.1 -d 192.168.61.2 192.168.56.45
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Remote cisco on address 192.168.56.45:
|
|
|
|
.Bd -literal -offset indent 4m
|
|
|
|
interface tunnel 0
|
|
|
|
ip address 192.168.61.2 255.255.255.252
|
|
|
|
tunnel mode nos
|
|
|
|
tunnel destination 192.168.59.34
|
|
|
|
tunnel source 192.168.56.45
|
|
|
|
.Ed
|
|
|
|
.Sh BUGS
|
|
|
|
We don't allow for setting our source address for multihomed machines.
|
1998-05-05 07:24:15 +01:00
|
|
|
.Sh AUTHORS
|
|
|
|
.An Nickolay N. Dudorov Aq nnd@itfs.nsk.su
|
|
|
|
wrote the program,
|
|
|
|
.An Poul-Henning Kamp Aq phk@FreeBSD.org
|
|
|
|
wrote the man-page.
|