You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. NAME
  2. ntkd - Netsukuku protocol daemon
  3. SYNOPSIS
  4. ntkd [-hvaldrD46] [-i net_interface] [-c conf_file] [-l logfile]
  5. DESCRIPTION
  6. Netsukuku is a mesh network or a P2P net system that generates and
  7. sustains itself autonomously. It is designed to handle an unlimited
  8. number of nodes with minimal CPU and memory resources. Thanks to this
  9. feature it can be easily used to build a worldwide distributed,
  10. anonymous and anarchical network, separated from the Internet, without
  11. the support of any servers, ISPs or authority controls.
  12. The complete features list of Netsukuku is here:
  13. <http://netsukuku.freaknet.org/files/doc/misc/Ntk_features_list>
  14. In order to join to Netsukuku you have to use ntkd, which is the daemon
  15. implementing the Npv7 protocol. The daemon at startup takes the list of
  16. all the network interfaces which are currently UP and it uses all of
  17. them to send and receive packets. If you want to force the daemon to use
  18. specific interfaces you should use the -i option. The ports it listens
  19. to are: 269-udp, 269-tcp, 277-udp, 277-tcp. So be sure to open them in
  20. the firewall.
  21. For more information about Netsukuku visit:
  22. <http://netsukuku.freaknet.org>
  23. OPTIONS
  24. -4, --ipv4
  25. Forces the daemon to use ipv4 addresses only
  26. -6, --ipv6
  27. Forces the daemon to use ipv6 addresses only. Warning, this is still
  28. experimental.
  29. -i *interface*, --iface *interface*
  30. Specifies the network interface the daemon will use to join
  31. Netsukuku, i.e. wlan0. You can use more than one interface by
  32. specifying multiple times the -i option. For example:
  33. ntkd -i wlan0 -i eth0 -i wifi1 -i eth1
  34. -a, --no_andna
  35. Forces ntkd to don't run the ANDNA daemon when started.
  36. -R, --no_resolv
  37. When NetsukukuD starts it modifies /etc/resolv.conf writing in the
  38. first line the string "nameserver 127.0.0.1". The old
  39. /etc/resolv.conf is copied in /etc/resolv.conf.bak. When the daemon
  40. is closed /etc/resolv.conf is restored. If you want to disable this
  41. set use the -R option.
  42. -r*[bool]*, --restricted=*[bool]*
  43. With this option the daemon will run in restricted mode as specified
  44. in the Npv7, only IPs of a private class will be chosen. It is used
  45. for Internet compatibility. If no argument is given to the option,
  46. the default restricted private class 10.0.0.0 is used, otherwise if
  47. *bool* is not zero, the restricted class will be
  48. 172.16.0.0-172.31.255.255.
  49. -I, --share-inet
  50. Tells NetsukukuD to run in restricted mode (see -r) and to share
  51. your Internet connection. Please check the relative options in
  52. /etc/netsukuku/netsukuku.conf
  53. -D, --no_daemon
  54. This option tells ntkd to don't detach to background and daemonizing
  55. itself. The daemon will run on foreground instead.
  56. -c *configuration_file*, --conf *configuration_file*
  57. Specifies the name of the configuration file. The default is
  58. /etc/netsukuku/netsukuku.conf. ntkd will not start without a
  59. configuration file.
  60. -l *logfile*, --logfile *logfile*
  61. Specifies that ntkd should send all of its messages to the specified
  62. file. The *logfile* will be overwritten.
  63. -d, --debug
  64. With this option the daemon will run with displaying its debug
  65. messages. The more -d you specify the more debug messages you'll
  66. get. Sometimes it's cool to use it, but be careful and don't go
  67. insane ;)
  68. -h, --help
  69. Display a the list of available options and their brief description.
  70. -v, --version
  71. Displays the version of the ntkd daemon.
  72. EXAMPLES
  73. Usually you'll just want to use ntkd with a wifi device:
  74. ntk-wifi wlan0
  75. ntkd -i wlan0
  76. If you one to use more than one network interface:
  77. ntkd -i eth0 -i wlan0 -i wifi1 -i eth2
  78. SIGNALS
  79. When the SIGHUP signal is sent to ntkd(8), the andna_hostnames and
  80. snsd_nodes files will be reloaded and it will try to register all the
  81. new added hostnames and snsd records.
  82. When the SIGALRM signal is sent to ntkd, the resolved hostnames cache is
  83. flushed.
  84. LOGS
  85. If ntkd is started as a daemon (without the -D option), all the logs are
  86. sent to syslog under the LOG_DAEMON category.
  87. If the no-daemon option (-D) is used, all the logs are printed to
  88. stderr.
  89. FILES
  90. /etc/netsukuku/netsukuku.conf
  91. It is the default path for the ntkd configuration file. It's
  92. possible to choose another file using the -c option.
  93. /etc/netsukuku/andna_hostnames
  94. It is the file where the hostnames to be registerd in ANDNA are kept
  95. one per line. It's location can be changed by modifying the relative
  96. option in the netsukuku.conf file.
  97. /etc/netsukuku/snsd_nodes
  98. The snsd_nodes_file keeps the list of the SNSD records which will be
  99. register in ANDNA.
  100. /usr/share/netsukuku/ext_map_file
  101. /usr/share/netsukuku/int_map_file
  102. /usr/share/netsukuku/bnode_map_file
  103. They are the Netsukuku maps saved by the daemon. Their locations can
  104. be changed in netsukuku.conf.
  105. /usr/share/netsukuku/andna_lcl_keyring
  106. In this keyring your ANDNA public and secret keys are saved. Handle
  107. this file with care: without it, you won't be able to update your
  108. hostnames, thus you'll definitely lose them.
  109. /usr/share/netsukuku/andna_cache
  110. /usr/share/netsukuku/andna_lcl_cache
  111. /usr/share/netsukuku/andna_rh_cache
  112. /usr/share/netsukuku/andna_counter_cache
  113. They are the saved ANDNA caches. Their locations can be changed in
  114. netsukuku.conf.
  115. /etc/netsukuku/ip_masquerade.sh
  116. This script is launched by NetsukukuD, at its start, when it shares
  117. the Internet connection. The script will activate the IP
  118. masquerading. The script is also used to disable the IP masquerading
  119. when ntkd is closed.
  120. /etc/netsukuku/tc_shaper.sh
  121. This script manages the traffic shaping for the upload bandwidth. It
  122. is executed by ntkd at its start if its relative option has been
  123. enabled.
  124. /var/run/ntkd.pid
  125. It is the lock file created by ntkd at its start, it is used to
  126. check if other instances of ntkd are already running. Only one
  127. instance is allowed.
  128. KERNEL DEPENDENCIES
  129. On Linux be sure to have the following options set in your kernel
  130. .config. These options are taken from linux-2.6.14.
  131. #
  132. # Networking options
  133. #
  134. CONFIG_PACKET=y
  135. CONFIG_UNIX=y
  136. CONFIG_INET=y
  137. CONFIG_IP_MULTICAST=y
  138. CONFIG_IP_ADVANCED_ROUTER=y
  139. CONFIG_IP_MULTIPLE_TABLES=y
  140. CONFIG_IP_ROUTE_MULTIPATH=y
  141. CONFIG_NET_IPIP=y
  142. CONFIG_NETFILTER=y
  143. and these from linux-2.6.16.19.
  144. #
  145. # Core Netfilter Configuration
  146. #
  147. CONFIG_NETFILTER_XT_MATCH_CONNTRACK=y
  148. NETFILTER_XT_TARGET_CONNMARK=y
  149. #
  150. # IP: Netfilter Configuration
  151. #
  152. CONFIG_IP_NF_IPTABLES=y
  153. CONFIG_IP_NF_FILTER=y
  154. CONFIG_IP_NF_TARGET_REJECT=y
  155. CONFIG_IP_NF_NAT=y
  156. CONFIG_IP_NF_NAT_NEEDED=y
  157. CONFIG_IP_NF_TARGET_MASQUERADE=y
  158. If you are using modules you have to load them before launching the
  159. daemon.
  160. BUGS
  161. { Don't panic! }
  162. If you encounter any bug, please report it. Use the online bug track
  163. system: <http://bugs.dyne.org/>
  164. or the mailing list: <http://lists.dyne.org/netsukuku/>
  165. and explain what the problem is and if possible a way to reproduce it.
  166. CONTACTS
  167. Subscrive to the netsukuku mailing to get help, be updated on the latest
  168. news and discuss on its development.
  169. To subscribe to the list, send a message to:
  170. netsukuku-subscribe@lists.dyne.org
  171. We live night and day in IRC, come to see us in: #netsukuku on the
  172. FreeNode irc server (irc.freenode.org).
  173. AUTHORS
  174. Main authors and maintainers:
  175. Andrea Lo Pumo aka AlpT <alpt@freaknet.org>
  176. Main contributors:
  177. Andrea Leofreddi <andrea.leofreddi@gmail.com>, Katolaz
  178. <katolaz@freaknet.org>, Federico Tomassini <effetom@gmail.com>
  179. For a complete list read the AUTHORS file or visit:
  180. <http://netsukuku.freaknet.org/?p=Contacts>
  181. SEE ALSO
  182. For more information about Netsukuku visit:
  183. <http://netsukuku.freaknet.org>
  184. netsukuku.conf(5), ntk-wifi(8), andna(8), iproute2(8), route(8)