1stunc(1)                        sofia-sip-utils                       stunc(1)
2
3
4

NAME

6       stunc - STUN test client.  STUN test client
7
8       Author:
9           Pekka Pessi <Pekka.Pessi@nokia.com>
10
11           Martti Mela <Martti.Mela@nokia.com>
12
13           Kai Vehmanen <Kai.Vehmanen@nokia.com>
14
15       Date:
16           Created: Thu Jul 24 17:21:00 2003 ppessi
17

Synopsis

19       stunc [OPTIONS] <stun-server-address>
20

Description

22       The stunc utility can be used to gather information about possible NAT
23       devices that are located between the client and STUN server.
24
25       stunc can provide the following information: the IP address and port as
26       seen by the STUN server, detecting presence of NATs, and hints on the
27       type of address translation done. It should be noted that the results
28       of NAT type and life-time detection should be considered as hints.
29       There is no guarantee that NAT(s) will handle future packets in the
30       same way.
31

Command Line Options

33       The stunc utility accepts following command line options:
34
35       -b  Perform a STUN binding discovery. stunc will report the client
36           transport address (IP:port) as seen by the STUN server. In the
37           presence of NATs, this address is allocated by the NAT closest to
38           the STUN server.
39
40       -l  Perform a STUN binding life-time check.
41
42       -n  Perform a STUN binding type check. Notice that the results are only
43           hints. Nondeterministic behaviour, resource exhaustion, or reboots
44           of network elements can cause changes in NAT behaviour between
45           successive runs of stunc.
46
47       -r  Randomize the local port. Otherwise stunc let's the operating
48           system select a free port.
49
50       -s  Request a shared-secret over TLS. Tests whether the STUN server
51           supports the shared-secret mechanism (needed to protect message
52           integrity). Can be combined with -b, -l and -n.
53

Return Codes

55       0when successful 1when any errors detected
56

Examples

58       Discover the NAT binding, use a random local port:
59
60        $ stunc stunserver.org -b -r
61
62

Environment

64       STUN_DEBUG
65

Reporting Bugs

67       Report bugs to <sofia-sip-devel@lists.sourceforge.net>.
68

Authors

70       · Pekka Pessi <pekka -dot pessi -at- nokia -dot- com>
71
72       · Martti Mela <martti -dot mela -at- nokia -dot- com>
73
74       · Kai Vehmanen <kai -dot vehmanen -at- nokia -dot- com>
75
77       Copyright (C) 2005,2006 Nokia Corporation.
78
79       This program is free software; see the source for copying conditions.
80       There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
81       PARTICULAR PURPOSE.
82
83
84
85Version 1.12.10                   8 Dec 2008                          stunc(1)
Impressum