config.yml.node 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. # This is Ars Technica's sample Nebula config file for non-lighthouse nodes.
  2. #
  3. pki:
  4. # every node needs a copy of the CA certificate,
  5. # and its own certificate and key, ONLY.
  6. #
  7. ca: /etc/nebula/ca.crt
  8. cert: /etc/nebula/hawa.crt
  9. key: /etc/nebula/hawa.key
  10. static_host_map:
  11. # how to find one or more lighthouse nodes
  12. # you do NOT need every node to be listed here!
  13. #
  14. # format "Nebula IP": ["public IP or hostname:port"]
  15. #
  16. "172.22.22.1": ["light1.bartrip.me.uk:4242"]
  17. "172.22.22.2": ["light2.bartrip.me.uk:4242"]
  18. lighthouse:
  19. interval: 60
  20. # if you're a lighthouse, say you're a lighthouse
  21. #
  22. am_lighthouse: false
  23. hosts:
  24. # If you're a lighthouse, this section should be EMPTY
  25. # or commented out. If you're NOT a lighthouse, list
  26. # lighthouse nodes here, one per line, in the following
  27. # format:
  28. #
  29. - "172.22.22.1"
  30. - "172.22.22.2"
  31. listen:
  32. # 0.0.0.0 means "all interfaces," which is probably what you want
  33. #
  34. host: 0.0.0.0
  35. port: 4242
  36. # "punchy" basically means "send frequent keepalive packets"
  37. # so that your router won't expire and close your NAT tunnels.
  38. #
  39. punchy: true
  40. # "punch_back" allows the other node to try punching out to you,
  41. # if you're having trouble punching out to it. Useful for stubborn
  42. # networks with symmetric NAT, etc.
  43. #
  44. punch_back: true
  45. tun:
  46. # sensible defaults. don't monkey with these unless
  47. # you're CERTAIN you know what you're doing.
  48. #
  49. dev: nebula1
  50. drop_local_broadcast: false
  51. drop_multicast: false
  52. tx_queue: 500
  53. mtu: 1300
  54. routes:
  55. logging:
  56. level: info
  57. format: text
  58. # you NEED this firewall section.
  59. #
  60. # Nebula has its own firewall in addition to anything
  61. # your system has in place, and it's all default deny.
  62. #
  63. # So if you don't specify some rules here, you'll drop
  64. # all traffic, and curse and wonder why you can't ping
  65. # one node from another.
  66. #
  67. firewall:
  68. conntrack:
  69. tcp_timeout: 120h
  70. udp_timeout: 3m
  71. default_timeout: 10m
  72. max_connections: 100000
  73. # since everything is default deny, all rules you
  74. # actually SPECIFY here are allow rules.
  75. #
  76. outbound:
  77. - port: any
  78. proto: any
  79. host: any
  80. inbound:
  81. - port: any
  82. proto: any
  83. host: any