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.

netsukuku.conf.5 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. .\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.14
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sh \" Subsection heading
  6. .br
  7. .if t .Sp
  8. .ne 5
  9. .PP
  10. \fB\\$1\fR
  11. .PP
  12. ..
  13. .de Sp \" Vertical space (when we can't use .PP)
  14. .if t .sp .5v
  15. .if n .sp
  16. ..
  17. .de Vb \" Begin verbatim text
  18. .ft CW
  19. .nf
  20. .ne \\$1
  21. ..
  22. .de Ve \" End verbatim text
  23. .ft R
  24. .fi
  25. ..
  26. .\" Set up some character translations and predefined strings. \*(-- will
  27. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  28. .\" double quote, and \*(R" will give a right double quote. | will give a
  29. .\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to
  30. .\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'
  31. .\" expand to `' in nroff, nothing in troff, for use with C<>.
  32. .tr \(*W-|\(bv\*(Tr
  33. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  34. .ie n \{\
  35. . ds -- \(*W-
  36. . ds PI pi
  37. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  38. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  39. . ds L" ""
  40. . ds R" ""
  41. . ds C` ""
  42. . ds C' ""
  43. 'br\}
  44. .el\{\
  45. . ds -- \|\(em\|
  46. . ds PI \(*p
  47. . ds L" ``
  48. . ds R" ''
  49. 'br\}
  50. .\"
  51. .\" If the F register is turned on, we'll generate index entries on stderr for
  52. .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
  53. .\" entries marked with X<> in POD. Of course, you'll have to process the
  54. .\" output yourself in some meaningful fashion.
  55. .if \nF \{\
  56. . de IX
  57. . tm Index:\\$1\t\\n%\t"\\$2"
  58. ..
  59. . nr % 0
  60. . rr F
  61. .\}
  62. .\"
  63. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  64. .\" way too many mistakes in technical documents.
  65. .hy 0
  66. .if n .na
  67. .\"
  68. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  69. .\" Fear. Run. Save yourself. No user-serviceable parts.
  70. . \" fudge factors for nroff and troff
  71. .if n \{\
  72. . ds #H 0
  73. . ds #V .8m
  74. . ds #F .3m
  75. . ds #[ \f1
  76. . ds #] \fP
  77. .\}
  78. .if t \{\
  79. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  80. . ds #V .6m
  81. . ds #F 0
  82. . ds #[ \&
  83. . ds #] \&
  84. .\}
  85. . \" simple accents for nroff and troff
  86. .if n \{\
  87. . ds ' \&
  88. . ds ` \&
  89. . ds ^ \&
  90. . ds , \&
  91. . ds ~ ~
  92. . ds /
  93. .\}
  94. .if t \{\
  95. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  96. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  97. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  98. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  99. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  100. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  101. .\}
  102. . \" troff and (daisy-wheel) nroff accents
  103. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  104. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  105. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  106. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  107. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  108. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  109. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  110. .ds ae a\h'-(\w'a'u*4/10)'e
  111. .ds Ae A\h'-(\w'A'u*4/10)'E
  112. . \" corrections for vroff
  113. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  114. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  115. . \" for low resolution devices (crt and lpr)
  116. .if \n(.H>23 .if \n(.V>19 \
  117. \{\
  118. . ds : e
  119. . ds 8 ss
  120. . ds o a
  121. . ds d- d\h'-1'\(ga
  122. . ds D- D\h'-1'\(hy
  123. . ds th \o'bp'
  124. . ds Th \o'LP'
  125. . ds ae ae
  126. . ds Ae AE
  127. .\}
  128. .rm #[ #] #H #V #F C
  129. .\" ========================================================================
  130. .\"
  131. .IX Title "netsukuku.conf 8"
  132. .TH netsukuku.conf 8 "2006-06-14" "NetsukukuD 0.0.9b (debug)" ""
  133. .SH "NAME"
  134. netsukuku.conf \- Netsukuku daemon configuration file
  135. .SH "SYNOPSIS"
  136. .IX Header "SYNOPSIS"
  137. /etc/netsukuku/netsukuku.conf
  138. .SH "DESCRIPTION"
  139. .IX Header "DESCRIPTION"
  140. \&\fIntkd\fR\|(8) loads its options from the command line and from \fBnetsukuku.conf\fR.
  141. The options that are changed infrequently resides in the configuration file.
  142. The \fBnetsukuku.conf\fR file is typically installed at /etc/netsukuku/netsukuku.conf.
  143. .PP
  144. The comments starts with a '#'.
  145. If an option is commented, \fBntkd\fR will use its default value.
  146. .PP
  147. The character '=' is used to assign a value to an option.
  148. .PP
  149. All the options will be overridden by their command line equivalent.
  150. .SH "OPTIONS"
  151. .IX Header "OPTIONS"
  152. .Sh "\s-1RESTRICTED\s0 \s-1MODE\s0"
  153. .IX Subsection "RESTRICTED MODE"
  154. .IP "\fBntk_restricted_mode\fR = \fIbool\fR" 4
  155. .IX Item "ntk_restricted_mode = bool"
  156. When set to 1, \fBntkd\fR will be started in restricted mode to be compatible
  157. with Internet. In the restricted mode, only IPs of the largest private subnet,
  158. i.e. 10.x.x.x are chosen.
  159. .Sp
  160. Default: \fI0\fR
  161. .IP "\fBntk_restricted_class\fR = \fIbool\fR" 4
  162. .IX Item "ntk_restricted_class = bool"
  163. When set to 1 the IPs will be chosen from the 172.16.0.0\-172.31.255.255 range
  164. (use this option only if you can't use the 10.x.x.x class).
  165. .Sp
  166. Default: \fI0\fR
  167. .Sh "\s-1INTERNET\s0 \s-1CONNECTION\s0"
  168. .IX Subsection "INTERNET CONNECTION"
  169. All these Internet options requires \fBntk_restricted_mode\fR set to 1.
  170. .IP "\fBinternet_connection\fR = \fIbool\fR" 4
  171. .IX Item "internet_connection = bool"
  172. When set to 1, it specifies that this computer has an active Internet
  173. connection. Note that \fBntkd\fR will overwrite any default route if this
  174. option is set to 0 and the shared Internet connections of other nodes are
  175. used.
  176. .Sp
  177. Default: \fI0\fR
  178. .IP "\fBinternet_gateway\fR = \fIIP:interface\fR" 4
  179. .IX Item "internet_gateway = IP:interface"
  180. It specifies the default gateway used by \fIlocalhost\fR to reach the Internet.
  181. This option is necessary only if you don't have the default route set when you
  182. run \fBntkd\fR (i.e. you haven't connected yet).
  183. If this option isn't specified, \fBntkd\fR will automatically retrieve the
  184. default Internet gateway from the routing table.
  185. Example:
  186. internet_gateway = 192.168.1.1:eth0
  187. .Sp
  188. Default: \fI(null)\fR
  189. .IP "\fBinternet_download_rate\fR = \fIKb\fR" 4
  190. .IX Item "internet_download_rate = Kb"
  191. This option is required if the \fBinternet_connection\fR option has been set to
  192. 1. It must be set to the download rate of the Internet connection in
  193. KiloBytes. Example:
  194. .Sp
  195. .Vb 1
  196. \& internet_download_rate = 640
  197. .Ve
  198. .Sp
  199. Default: \fI(null)\fR
  200. .IP "\fBinternet_upload_rate\fR = \fIKb\fR" 4
  201. .IX Item "internet_upload_rate = Kb"
  202. This option is required if the \fBinternet_connection\fR option has been set to
  203. 1. It must be set to the upload rate of the Internet connection in
  204. KiloBytes. Example:
  205. .Sp
  206. .Vb 1
  207. \& internet_upload_rate = 30
  208. .Ve
  209. .Sp
  210. Default: \fI(null)\fR
  211. .IP "\fBinternet_ping_hosts\fR = \fIhost1:host2:host3:...\fR" 4
  212. .IX Item "internet_ping_hosts = host1:host2:host3:..."
  213. Specifies a list of Internet hostnames which \fBntkd\fR will ping periodically to
  214. verify the status of the Internet connection. If all the hosts specified
  215. aren't reachable, it will assume that the Internet connection isn't available
  216. anymore. When one them becoms pingable, \fBntkd\fR will enable again the
  217. Internet Gateway Search. Example:
  218. .Sp
  219. .Vb 1
  220. \& internet_ping_hosts = google.com:cisco.com:sourceforge.net:dyne.org
  221. .Ve
  222. .Sp
  223. This option hasn't a default value, it must be specified in the
  224. \&\fBnetsukuku.conf\fR file.
  225. .IP "\fBshare_internet\fR = \fIbool\fR" 4
  226. .IX Item "share_internet = bool"
  227. When set to 1, \fBntkd\fR shares the Internet connection among all the other
  228. Netsukuku nodes.
  229. .Sp
  230. Default: \fI1\fR
  231. .IP "\fBshape_internet\fR = \fIbool\fR" 4
  232. .IX Item "shape_internet = bool"
  233. Specifies if \fBntkd\fR will execute the \fI/etc/netsukuku/tc_shaper.sh\fR script to
  234. activate the traffic shaping of the Internet connection.
  235. .Sp
  236. Default: \fI0\fR
  237. .IP "\fBuse_shared_internet\fR = \fIbool\fR" 4
  238. .IX Item "use_shared_internet = bool"
  239. Specifies if \fBntkd\fR will load balance the Internet traffic of this host using
  240. the Inet connections shared by the Netsukuku nodes.
  241. When set to 0, localhost (this machine) uses only its local Internet
  242. connection (if any).
  243. .Sp
  244. Default: \fI1\fR
  245. .Sh "\s-1ANDNA\s0"
  246. .IX Subsection "ANDNA"
  247. .IP "\fBdisable_andna\fR = \fIbool\fR" 4
  248. .IX Item "disable_andna = bool"
  249. When set to 1, \fBntkd\fR won't load the \s-1\fIANDNA\s0\fR\|(8) daemon.
  250. Note that when the \s-1ANDNA\s0 daemon is disabled, the andna system will not work at
  251. all, so it will be impossible to resolve, register or update hostnames.
  252. .Sp
  253. Default: \fI0\fR
  254. .IP "\fBdisable_resolvconf\fR = \fIbool\fR" 4
  255. .IX Item "disable_resolvconf = bool"
  256. When \fBntkd\fR starts it modifies \fI/etc/resolv.conf\fR writing in the first
  257. line \*(L"nameserver 127.0.0.1\*(R". The old \fI/etc/resolv.conf\fR is copied in
  258. \&\fI/etc/resolv.conf.bak\fR. When the daemon is closed \fI/etc/resolv.conf\fR is
  259. restored. If you want to disable this set disable_resolvconf to 1.
  260. If it is disabled you won't be able to resolve hostnames!
  261. .Sp
  262. Default: \fI0\fR
  263. .Sh "\s-1LIMITS\s0"
  264. .IX Subsection "LIMITS"
  265. Note: in the current \fBntkd\fR version these limits aren't effective.
  266. .IP "\fBntk_max_connections\fR = \fInumber\fR" 4
  267. .IX Item "ntk_max_connections = number"
  268. How many connection the netsukuku daemons can simultaneusly handle.
  269. .Sp
  270. Default: \fI512\fR
  271. .IP "\fBntk_max_accepts_per_host\fR = \fInumber\fR" 4
  272. .IX Item "ntk_max_accepts_per_host = number"
  273. How many simultaneusly connections to the daemons from a single host are
  274. allowed.
  275. .Sp
  276. Default: \fI16\fR
  277. .IP "\fBmax_accepts_per_host_time\fR = \fIseconds\fR" 4
  278. .IX Item "max_accepts_per_host_time = seconds"
  279. The wait time necessary for a host to reconnect to the daemons after all the
  280. ntk_max_accepts_per_host were used.
  281. .Sp
  282. Default: \fI4\fR
  283. .Sh "\s-1FILES\s0"
  284. .IX Subsection "FILES"
  285. .IP "\fBpid_file\fR = \fIfilename\fR" 4
  286. .IX Item "pid_file = filename"
  287. \&\fBntkd\fR will save its process id in this file.
  288. It is used to check if other instances of ntkd are already running.
  289. Only one instance is allowed.
  290. .Sp
  291. Default: \fI/var/run/ntkd.pid\fR
  292. .IP "\fBntk_ext_map_file\fR = \fIfilename\fR" 4
  293. .IX Item "ntk_ext_map_file = filename"
  294. .PD 0
  295. .IP "\fBntk_int_map_file\fR = \fIfilename\fR" 4
  296. .IX Item "ntk_int_map_file = filename"
  297. .IP "\fBntk_bnode_map_file\fR = \fIfilename\fR" 4
  298. .IX Item "ntk_bnode_map_file = filename"
  299. .PD
  300. Specify the paths of the maps saved by the daemon.
  301. .Sp
  302. Default: \fI/usr/share/netsukuku/ext_map_file\fR
  303. .Sp
  304. Default: \fI/usr/share/netsukuku/int_map_file\fR
  305. .Sp
  306. Default: \fI/usr/share/netsukuku/bnode_map_file\fR
  307. .IP "\fBandna_hnames_file\fR = \fIfilename\fR" 4
  308. .IX Item "andna_hnames_file = filename"
  309. Specify the path of the file which keeps the \s-1ANDNA\s0 hostnames of the local
  310. host. These hostnames will be registerd in \s-1ANDNA\s0.
  311. .Sp
  312. Default: \fI/etc/netsukuku/andna_hostnames\fR
  313. .IP "\fBsnsd_nodes_file\fR = \fIfilename\fR" 4
  314. .IX Item "snsd_nodes_file = filename"
  315. The snsd_nodes_file keeps the list of the \s-1SNSD\s0 records which will be register
  316. in \s-1ANDNA\s0.
  317. .Sp
  318. Default: \fI/etc/netsukuku/snsd_nodes\fR
  319. .IP "\fBandna_lclkey_file\fR = \fIfilename\fR" 4
  320. .IX Item "andna_lclkey_file = filename"
  321. Specifies the location of the \fIlocal keyring\fR file.
  322. In this keyring the \s-1ANDNA\s0 public and secret keys are saved. Handle this file
  323. with care: without it, you won't be able to update your hostnames, thus you'll
  324. definitely lose them.
  325. .Sp
  326. Default: \fI/usr/share/netsukuku/andna_lcl_keyring\fR
  327. .IP "\fBandna_cache_file\fR = \fIfilename\fR" 4
  328. .IX Item "andna_cache_file = filename"
  329. .PD 0
  330. .IP "\fBandna_lcl_file\fR = \fIfilename\fR" 4
  331. .IX Item "andna_lcl_file = filename"
  332. .IP "\fBandna_rhc_file\fR = \fIfilename\fR" 4
  333. .IX Item "andna_rhc_file = filename"
  334. .IP "\fBandna_counter_c_file\fR = \fIfilename\fR" 4
  335. .IX Item "andna_counter_c_file = filename"
  336. .PD
  337. Specify the paths of the caches used by the \s-1ANDNA\s0 daemon.
  338. .Sp
  339. Default: \fI/usr/share/netsukuku/andna_cache\fR
  340. .Sp
  341. Default: \fI/usr/share/netsukuku/andna_lcl_cache\fR
  342. .Sp
  343. Default: \fI/usr/share/netsukuku/andna_rh_cache\fR
  344. .Sp
  345. Default: \fI/usr/share/netsukuku/andna_counter_cache\fR
  346. .IP "\fBip_masquerade_script\fR = \fIfilename\fR" 4
  347. .IX Item "ip_masquerade_script = filename"
  348. Specifies the path of the \s-1IP\s0 masquerading script.
  349. This script is launched by NetsukukuD, at its start, when it shares the Internet
  350. connection. The script will activate the \s-1IP\s0 masquerading.
  351. The script is also used to disable the \s-1IP\s0 masquerading when \fBntkd\fR is closed.
  352. .Sp
  353. Default: \fI/etc/netsukuku/ip_masquerade.sh\fR
  354. .IP "\fBtc_shaper_script\fR = \fIfilename\fR" 4
  355. .IX Item "tc_shaper_script = filename"
  356. Specifies the path of the traffic shaping script.
  357. This script manages the traffic shaping for the upload bandwidth.
  358. It is executed by \fBntkd\fR at its start if its relative option has been
  359. enabled.
  360. .Sp
  361. Default: \fI/etc/netsukuku/tc_shaper.sh\fR
  362. .SH "CONTACTS"
  363. .IX Header "CONTACTS"
  364. Subscribe to the netsukuku mailing to get help, be updated on the latest news
  365. and discuss on its development.
  366. .PP
  367. To subscribe to the list, send a message to:
  368. netsukuku\-subscribe@lists.dyne.org
  369. .PP
  370. We live night and day in \s-1IRC\s0, come to see us in:
  371. #netsukuku
  372. on the FreeNode irc server (irc.freenode.org).
  373. .SH "AUTHORS"
  374. .IX Header "AUTHORS"
  375. Main authors and maintainers:
  376. .PP
  377. Andrea Lo Pumo aka AlpT <alpt@freaknet.org>
  378. .PP
  379. Main contributors:
  380. .PP
  381. Andrea Leofreddi <andrea.leofreddi@gmail.com>, Katolaz <katolaz@freaknet.org>,
  382. Federico Tomassini <effetom@gmail.com>
  383. .PP
  384. For a complete list read the \s-1AUTHORS\s0 file or visit:
  385. <http://netsukuku.freaknet.org/?p=Contacts>
  386. .SH "SEE ALSO"
  387. .IX Header "SEE ALSO"
  388. For more information about Netsukuku visit:
  389. <http://netsukuku.freaknet.org>
  390. .PP
  391. \&\fIntkd\fR\|(8), \fIntk\-wifi\fR\|(8), \fIandna\fR\|(8), \fIiproute2\fR\|(8), \fIroute\fR\|(8)