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.

58 lines
1.8 KiB

  1. ##
  2. ## KadNode is a P2P DNS resolver to resolve domains using the BitTorrent network.
  3. ##
  4. config kadnode
  5. option enabled 1
  6. ## ECC Key usage:
  7. ## 1. Create public/secret key pair with `kadnode --bob-create-key /etc/kadnode_secret.pem`
  8. ## 2. Put the secret key file on the router that you want to resolve to and use it for option bob_load_key.
  9. ## 3. Use the public key hex output with .p2p attached on other devices to resovle to the router IP address via kadnode.
  10. ## Secret key for public key links
  11. # list bob_load_key '/etc/kadnode_secret.pem'
  12. ## TLS usage:
  13. ## For resolving domains, put credentials on the router and use option tls_client_cert.
  14. ## For announcing domains, put the certificates and secret key on router and use option tls_server_cert.
  15. ## Folder of CA certificates
  16. ## Install package 'ca-certificates' for the official CA set.
  17. # list tls_client_cert '/etc/ssl/certs'
  18. ## Server credentials
  19. # list tls_server_cert '/ect/mynode.crt,/etc/mynode.key'
  20. ## Add domains to be announced.
  21. ## Note: Only needed in special situations since tls_server_cert and bob_load_key announce automatically its associated domains.
  22. # list announce 'web.myname.p2p'
  23. ## Load and store good nodes every 24h and on start/shutdown.
  24. # option peerfile '/etc/kadnode/peers.txt'
  25. ## Add static peers addresses.
  26. list peer 'bttracker.debian.org:6881'
  27. list peer 'router.bittorrent.com:6881'
  28. ## Bind the DHT to this port.
  29. # option port '6881'
  30. ## Limit DHT communication to this interface.
  31. # option ifname 'eth0'
  32. ## Verbosity: quiet, verbose or debug
  33. # option verbosity 'quiet'
  34. ## Local port to accept forwarded requests.
  35. # option dns_port '3535'
  36. ## Disable multicast peer discovery on the LAN.
  37. # option lpd_disable '1'
  38. ## Disable port forwarding when this router is behind another
  39. ## router in a private network that supports UPnP/NAT-PMP.
  40. # option fwd_disable '1'