View | Details | Raw Unified | Return to bug 13309 | Differences between
and this patch

Collapse All | Expand All

(-)nos-tun.8 (-5 / +25 lines)
Lines 24-29 Link Here
24
.Ar destination
24
.Ar destination
25
.Fl p
25
.Fl p
26
.Ar protocol_number
26
.Ar protocol_number
27
.Fl r
28
.Ar retry_count
29
.Fl w
30
.Ar retry_delay
27
.Ar target
31
.Ar target
28
.Sh DESCRIPTION
32
.Sh DESCRIPTION
29
.Nm Nos-tun
33
.Nm Nos-tun
Lines 46-65 Link Here
46
and
50
and
47
.Ar destination
51
.Ar destination
48
are the addresses used on the tunnel device.
52
are the addresses used on the tunnel device.
49
If you configure the tunnel against a cisco router, use a netmask of
53
If you configure the tunnel against a Cisco router, use a netmask of
50
.Dq 255.255.255.252
54
.Dq 255.255.255.252
51
on the cisco.  This is because the tunnel is a point-to-point interface
55
on the Cisco router.  This is because the tunnel is a point-to-point interface
52
in the
56
in the
53
.Bx Free
57
.Bx Free
54
end, a concept cisco doesn't really implement.
58
end, a concept Cisco doesn't really implement.  Destination may be 
59
a hostname.
55
.Pp
60
.Pp
56
.Ar Protocol number
61
.Ar Protocol number
57
sets tunnel mode. Original KA9Q NOS uses 94 but many peoples use 4
62
sets tunnel mode. Original KA9Q NOS uses 94 but many peoples use 4
58
in worldwide backbone of ampr.org.
63
in worldwide backbone of ampr.org.
59
.Pp
64
.Pp
65
.Ar Retry count
66
if provided, limits the number of times 
67
.Nm nos-tun
68
will attempt to re-establish a tunnel when a connection fails.  Use 0
69
for infinite retries.  The default is 10.  When performing a retry, the
70
tunnel is shut down and rebuilt, performing name lookups again if 
71
applicable.  This allows for building tunnels with static addresses
72
across links with dynamic addresses.
73
.Pp
74
.Ar Retry delay
75
Number of seconds to sleep before trying to re-establish a tunnel.
76
The default is 60 seconds.
77
.Pp
60
.Ar Target
78
.Ar Target
61
is the address of the remote tunnel device, this must match the source
79
is the address of the remote tunnel device, this must match the source
62
address set on the remote end.
80
address set on the remote end.  Target may be a hostname.
63
.Sh EXAMPLES
81
.Sh EXAMPLES
64
This end, a
82
This end, a
65
.Bx Free
83
.Bx Free
Lines 68-74 Link Here
68
nos-tun -t /dev/tun0 -s 192.168.61.1 -d 192.168.61.2 192.168.56.45
86
nos-tun -t /dev/tun0 -s 192.168.61.1 -d 192.168.61.2 192.168.56.45
69
.Ed
87
.Ed
70
.Pp
88
.Pp
71
Remote cisco on address 192.168.56.45:
89
Remote Cisco router on address 192.168.56.45:
72
.Bd -literal -offset indent 4m 
90
.Bd -literal -offset indent 4m 
73
interface tunnel 0
91
interface tunnel 0
74
ip address 192.168.61.2 255.255.255.252
92
ip address 192.168.61.2 255.255.255.252
Lines 85-87 Link Here
85
wrote the man-page.
103
wrote the man-page.
86
.An Isao SEKI Aq iseki@gongon.com
104
.An Isao SEKI Aq iseki@gongon.com
87
added a new flag, IP protocol number.
105
added a new flag, IP protocol number.
106
.An Nick Johnson
107
added retries, -r and -w flags.

Return to bug 13309