infrastructure/ansible/roles/nebula/files/nebula.yml

60 lines
1 KiB
YAML
Raw Normal View History

2021-01-25 21:53:04 +00:00
pki:
ca: /etc/nebula/ca.crt
2021-03-04 16:06:43 +00:00
cert: /etc/nebula/{{ ansible_hostname }}.crt
key: /etc/nebula/{{ ansible_hostname }}.key
2021-01-25 21:53:04 +00:00
static_host_map:
"{{ nebula_lighthouse_ip }}": ["{{ nebula_lighthouse_public_ip }}:{{ nebula_lighthouse_port }}"]
lighthouse:
am_lighthouse: "{{ nebula_is_lighthouse | lower }}"
interval: 60
hosts:
{% if not nebula_is_lighthouse %}
2021-01-25 21:53:04 +00:00
- "{{ nebula_lighthouse_ip }}"
{% endif %}
2021-01-25 21:53:04 +00:00
listen:
host: 0.0.0.0
2023-11-03 18:06:36 +00:00
port: "{{ nebula_listen_port }}"
2021-01-25 21:53:04 +00:00
punchy:
punch: true
tun:
disabled: false
dev: nebula1
drop_local_broadcast: false
drop_multicast: false
tx_queue: 500
mtu: 1300
routes:
unsafe_routes:
2021-03-04 16:06:43 +00:00
{% if ansible_hostname != "ingress" %}
- route: "{{ pve_hosts.internal_cidr }}"
via: "{{ nebula.clients.ingress.ip }}"
{% endif %}
2021-01-25 21:53:04 +00:00
logging:
level: info
format: text
firewall:
conntrack:
tcp_timeout: 12m
udp_timeout: 3m
default_timeout: 10m
max_connections: 100000
outbound:
- port: any
proto: any
host: any
inbound:
- port: any
proto: any
host: any