config.yml.j2 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. pki:
  2. ca: /etc/nebula/vagrant-test-ca.crt
  3. cert: /etc/nebula/host.crt
  4. key: /etc/nebula/host.key
  5. # Port Nebula will be listening on
  6. listen:
  7. host: 0.0.0.0
  8. port: 4242
  9. # sshd can expose informational and administrative functions via ssh
  10. sshd:
  11. # Toggles the feature
  12. enabled: true
  13. # Host and port to listen on
  14. listen: 127.0.0.1:2222
  15. # A file containing the ssh host private key to use
  16. host_key: /etc/ssh/ssh_host_ed25519_key
  17. # A file containing a list of authorized public keys
  18. authorized_users:
  19. {% for user in nebula_users %}
  20. - user: {{ user.name }}
  21. keys:
  22. {% for key in user.ssh_auth_keys %}
  23. - "{{ key }}"
  24. {% endfor %}
  25. {% endfor %}
  26. local_range: 10.168.0.0/16
  27. static_host_map:
  28. # lighthouse
  29. {{ hostvars[groups['lighthouse'][0]][vagrant_ifce]['ipv4']['address'] | to_nebula_ip }}: ["{{ hostvars[groups['lighthouse'][0]][vagrant_ifce]['ipv4']['address']}}:4242"]
  30. default_route: "0.0.0.0"
  31. lighthouse:
  32. {% if 'lighthouse' in group_names %}
  33. am_lighthouse: true
  34. serve_dns: true
  35. {% else %}
  36. am_lighthouse: false
  37. {% endif %}
  38. interval: 60
  39. hosts:
  40. - {{ hostvars[groups['lighthouse'][0]][vagrant_ifce]['ipv4']['address'] | to_nebula_ip }}
  41. # Configure the private interface
  42. tun:
  43. dev: nebula1
  44. # Sets MTU of the tun dev.
  45. # MTU of the tun must be smaller than the MTU of the eth0 interface
  46. mtu: 1300
  47. # TODO
  48. # Configure logging level
  49. logging:
  50. level: info
  51. format: json
  52. firewall:
  53. conntrack:
  54. tcp_timeout: 12m
  55. udp_timeout: 3m
  56. default_timeout: 10m
  57. max_connections: 100,000
  58. inbound:
  59. - proto: icmp
  60. port: any
  61. host: any
  62. - proto: any
  63. port: 22
  64. host: any
  65. {% if "lighthouse" in groups %}
  66. - proto: any
  67. port: 53
  68. host: any
  69. {% endif %}
  70. outbound:
  71. - proto: any
  72. port: any
  73. host: any