i2pd.conf 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. ## Configuration file for a typical i2pd user
  2. ## See https://i2pd.readthedocs.io/en/latest/user-guide/configuration/
  3. ## for more options you can use in this file.
  4. ## Lines that begin with "## " try to explain what's going on. Lines
  5. ## that begin with just "#" are disabled commands: you can enable them
  6. ## by removing the "#" symbol.
  7. ## Tunnels config file
  8. ## Default: ~/.i2pd/tunnels.conf or /var/lib/i2pd/tunnels.conf
  9. # tunconf = /var/lib/i2pd/tunnels.conf
  10. ## Tunnels config files path
  11. ## Use that path to store separated tunnels in different config files.
  12. ## Default: ~/.i2pd/tunnels.d or /var/lib/i2pd/tunnels.d
  13. # tunnelsdir = /var/lib/i2pd/tunnels.d
  14. ## Path to certificates used for verifying .su3, families
  15. ## Default: ~/.i2pd/certificates or /var/lib/i2pd/certificates
  16. # certsdir = /var/lib/i2pd/certificates
  17. ## Where to write pidfile (default: /run/i2pd.pid, not used in Windows)
  18. # pidfile = /run/i2pd.pid
  19. ## Logging configuration section
  20. ## By default logs go to stdout with level 'info' and higher
  21. ## For Windows OS by default logs go to file with level 'warn' and higher
  22. ##
  23. ## Logs destination (valid values: stdout, file, syslog)
  24. ## * stdout - print log entries to stdout
  25. ## * file - log entries to a file
  26. ## * syslog - use syslog, see man 3 syslog
  27. log = syslog
  28. ## Path to logfile (default: autodetect)
  29. # logfile = /var/log/i2pd/i2pd.log
  30. ## Log messages above this level (debug, info, *warn, error, critical, none)
  31. ## If you set it to none, logging will be disabled
  32. loglevel = error
  33. ## Write full CLF-formatted date and time to log (default: write only time)
  34. logclftime = true
  35. ## Daemon mode. Router will go to background after start. Ignored on Windows
  36. ## (default: true)
  37. daemon = true
  38. ## Specify a family, router belongs to (default - none)
  39. # family =
  40. nat = true
  41. ## Network interface to bind to
  42. ## Updates address4/6 options if they are not set
  43. # ifname =
  44. ## You can specify different interfaces for IPv4 and IPv6
  45. # ifname4 =
  46. # ifname6 =
  47. ## Local address to bind transport sockets to
  48. ## Overrides host option if:
  49. ## For ipv4: if ipv4 = true and nat = false
  50. ## For ipv6: if 'host' is not set or ipv4 = true
  51. # address4 =
  52. # address6 =
  53. ## External IPv4 or IPv6 address to listen for connections
  54. ## By default i2pd sets IP automatically
  55. ## Sets published NTCP2v4/SSUv4 address to 'host' value if nat = true
  56. ## Sets published NTCP2v6/SSUv6 address to 'host' value if ipv4 = false
  57. # host = 1.2.3.4
  58. ## Port to listen for connections
  59. ## By default i2pd picks random port. You MUST pick a random number too,
  60. ## don't just uncomment this
  61. # port = 4567
  62. ## Enable communication through ipv4 (default: true)
  63. ipv4 = true
  64. ## Enable communication through ipv6 (default: false)
  65. ipv6 = false
  66. ## Bandwidth configuration
  67. ## L limit bandwidth to 32 KB/sec, O - to 256 KB/sec, P - to 2048 KB/sec,
  68. ## X - unlimited
  69. ## Default is L (regular node) and X if floodfill mode enabled.
  70. ## If you want to share more bandwidth without floodfill mode, uncomment
  71. ## that line and adjust value to your possibilities. Value can be set to
  72. ## integer in kilobytes, it will apply that limit and flag will be used
  73. ## from next upper limit (example: if you set 4096 flag will be X, but real
  74. ## limit will be 4096 KB/s). Same can be done when floodfill mode is used,
  75. ## but keep in mind that low values may be negatively evaluated by Java
  76. ## router algorithms.
  77. bandwidth = O
  78. ## Max % of bandwidth limit for transit. 0-100 (default: 100)
  79. # share = 100
  80. ## Router will not accept transit tunnels, disabling transit traffic completely
  81. ## (default: false)
  82. notransit = false
  83. ## Router will be floodfill (default: false)
  84. ## Note: that mode uses much more network connections and CPU!
  85. floodfill = false
  86. [ntcp2]
  87. ## Enable NTCP2 transport (default: true)
  88. enabled = true
  89. ## Publish address in RouterInfo (default: true)
  90. published = true
  91. ## Port for incoming connections (default is global port option value)
  92. # port = 4567
  93. [ssu2]
  94. ## Enable SSU2 transport (default: true)
  95. enabled = true
  96. ## Publish address in RouterInfo (default: true)
  97. published = true
  98. ## Port for incoming connections (default is global port option value)
  99. # port = 4567
  100. [http]
  101. ## Web Console settings
  102. ## Enable the Web Console (default: true)
  103. enabled = true
  104. ## Address and port service will listen on (default: 127.0.0.1:7070)
  105. address = 127.0.0.1
  106. port = 7070
  107. hostname = localhost
  108. ## Path to web console (default: /)
  109. webroot = /
  110. ## Enable Web Console authentication (default: false)
  111. ## You should not use Web Console via public networks without additional encryption.
  112. ## HTTP authentication is not encryption layer!
  113. auth = true
  114. user = i2pd
  115. pass = i2pd
  116. ## Select webconsole language
  117. ## Currently supported english (default), afrikaans, armenian, chinese, czech, french,
  118. ## german, italian, polish, portuguese, russian, spanish, turkish, turkmen, ukrainian
  119. ## and uzbek languages
  120. lang = spanish
  121. strictheaders = true
  122. [httpproxy]
  123. ## Enable the HTTP proxy (default: true)
  124. enabled = true
  125. ## Address and port service will listen on (default: 127.0.0.1:4444)
  126. address = 127.0.0.1
  127. port = 4444
  128. ## Optional keys file for proxy local destination (default: http-proxy-keys.dat)
  129. # keys = http-proxy-keys.dat
  130. ## Enable address helper for adding .i2p domains with "jump URLs" (default: true)
  131. ## You should disable this feature if your i2pd HTTP Proxy is public,
  132. ## because anyone could spoof the short domain via addresshelper and forward other users to phishing links
  133. addresshelper = true
  134. ## Address of a proxy server inside I2P, which is used to visit regular Internet
  135. # outproxy = http://false.i2p
  136. ## httpproxy section also accepts I2CP parameters, like "inbound.length" etc.
  137. [socksproxy]
  138. ## Enable the SOCKS proxy (default: true)
  139. enabled = true
  140. ## Address and port service will listen on (default: 127.0.0.1:4447)
  141. address = 127.0.0.1
  142. port = 4447
  143. ## Optional keys file for proxy local destination (default: socks-proxy-keys.dat)
  144. # keys = socks-proxy-keys.dat
  145. ## Socks outproxy. Example below is set to use Tor for all connections except i2p
  146. ## Enable using of SOCKS outproxy (works only with SOCKS4, default: false)
  147. # outproxy.enabled = false
  148. ## Address and port of outproxy
  149. # outproxy = 127.0.0.1
  150. # outproxyport = 9050
  151. ## socksproxy section also accepts I2CP parameters, like "inbound.length" etc.
  152. [sam]
  153. ## Enable the SAM bridge (default: true)
  154. enabled = true
  155. ## Address and ports service will listen on (default: 127.0.0.1:7656, udp: 7655)
  156. address = 127.0.0.1
  157. port = 7656
  158. portudp = 7655
  159. [bob]
  160. ## Enable the BOB command channel (default: false)
  161. enabled = false
  162. ## Address and port service will listen on (default: 127.0.0.1:2827)
  163. # address = 127.0.0.1
  164. # port = 2827
  165. [i2cp]
  166. ## Enable the I2CP protocol (default: false)
  167. enabled = false
  168. ## Address and port service will listen on (default: 127.0.0.1:7654)
  169. # address = 127.0.0.1
  170. # port = 7654
  171. [i2pcontrol]
  172. ## Enable the I2PControl protocol (default: false)
  173. enabled = false
  174. ## Address and port service will listen on (default: 127.0.0.1:7650)
  175. # address = 127.0.0.1
  176. # port = 7650
  177. ## Authentication password (default: itoopie)
  178. # password = itoopie
  179. [precomputation]
  180. ## Enable or disable elgamal precomputation table
  181. ## By default, enabled on i386 hosts
  182. elgamal = false
  183. [upnp]
  184. ## Enable or disable UPnP: automatic port forwarding (enabled by default in WINDOWS, ANDROID)
  185. enabled = false
  186. ## Name i2pd appears in UPnP forwardings list (default: I2Pd)
  187. # name = I2Pd
  188. [meshnets]
  189. ## Enable connectivity over the Yggdrasil network (default: false)
  190. yggdrasil = false
  191. ## You can bind address from your Yggdrasil subnet 300::/64
  192. ## The address must first be added to the network interface
  193. # yggaddress =
  194. [reseed]
  195. ## Options for bootstrapping into I2P network, aka reseeding
  196. ## Enable reseed data verification (default: true)
  197. verify = true
  198. ## URLs to request reseed data from, separated by comma
  199. ## Default: "mainline" I2P Network reseeds
  200. # urls = https://reseed.i2p-projekt.de/,https://i2p.mooo.com/netDb/,https://netdb.i2p2.no/
  201. ## Reseed URLs through the Yggdrasil, separated by comma
  202. # yggurls = http://[324:9de3:fea4:f6ac::ace]:7070/
  203. ## Path to local reseed data file (.su3) for manual reseeding
  204. # file = /path/to/i2pseeds.su3
  205. ## or HTTPS URL to reseed from
  206. # file = https://legit-website.com/i2pseeds.su3
  207. ## Path to local ZIP file or HTTPS URL to reseed from
  208. # zipfile = /path/to/netDb.zip
  209. ## If you run i2pd behind a proxy server, set proxy server for reseeding here
  210. ## Should be http://address:port or socks://address:port
  211. # proxy = http://127.0.0.1:8118
  212. ## Minimum number of known routers, below which i2pd triggers reseeding (default: 25)
  213. # threshold = 25
  214. [addressbook]
  215. enabled = true
  216. ## AddressBook subscription URL for initial setup
  217. ## Default: reg.i2p at "mainline" I2P Network
  218. # defaulturl = http://shx5vqsw7usdaunyzr2qmes2fq37oumybpudrd4jjj4e4vk4uusa.b32.i2p/hosts.txt
  219. ## Optional subscriptions URLs, separated by comma
  220. # subscriptions = http://reg.i2p/hosts.txt,http://identiguy.i2p/hosts.txt,http://stats.i2p/cgi-bin/newhosts.txt,http://rus.i2p/hosts.txt
  221. [limits]
  222. ## Maximum active transit sessions (default: 5000)
  223. ## This value is doubled if floodfill mode is enabled!
  224. # transittunnels = 5000
  225. ## Limit number of open file descriptors (0 - use system limit)
  226. # openfiles = 0
  227. ## Maximum size of corefile in Kb (0 - use system limit)
  228. # coresize = 0
  229. # zombies = 0
  230. [trust]
  231. ## Enable explicit trust options. (default: false)
  232. enabled = false
  233. ## Make direct I2P connections only to routers in specified Family.
  234. # family = MyFamily
  235. ## Make direct I2P connections only to routers specified here. Comma separated list of base64 identities.
  236. # routers =
  237. ## Should we hide our router from other routers? (default: false)
  238. # hidden = true
  239. [exploratory]
  240. ## Exploratory tunnels settings with default values
  241. # inbound.length = 2
  242. # inbound.quantity = 3
  243. # outbound.length = 2
  244. # outbound.quantity = 3
  245. [persist]
  246. ## Save peer profiles on disk (default: true)
  247. profiles = true
  248. ## Save full addresses on disk (default: true)
  249. addressbook = true
  250. [cpuext]
  251. ## Use CPU AES-NI instructions set when work with cryptography when available (default: true)
  252. # aesni = true
  253. ## Use CPU AVX instructions set when work with cryptography when available (default: true)
  254. # avx = true
  255. ## Force usage of CPU instructions set, even if they not found (default: false)
  256. ## DO NOT TOUCH that option if you really don't know what are you doing!
  257. # force = false