Allow nebula through firewall
Some checks failed
/ terraform (push) Successful in 1m6s
/ ansible (push) Failing after 2m8s

This commit is contained in:
Jake Howard 2023-11-03 18:06:36 +00:00
parent b1284877a3
commit 850278ab19
Signed by: jake
GPG key ID: 57AFB45680EDD477
6 changed files with 9 additions and 2 deletions

View file

@ -1,2 +1,3 @@
nebula_is_lighthouse: true nebula_is_lighthouse: true
nebula_listen_port: "{{ nebula_lighthouse_port }}"
ssh_extra_allowed_users: f2b@{{ nebula.cidr }} f2b@{{ pve_hosts.internal_cidr }} ssh_extra_allowed_users: f2b@{{ nebula.cidr }} f2b@{{ pve_hosts.internal_cidr }}

View file

@ -0,0 +1,2 @@
# Listen on a static port so it can be opened in the firewall
nebula_listen_port: "{{ nebula_lighthouse_port }}"

View file

@ -12,6 +12,9 @@ table inet filter {
iif lo accept iif lo accept
tcp dport {http, https, {{ ssh_port }}, 8443, 8448} accept tcp dport {http, https, {{ ssh_port }}, 8443, 8448} accept
# Allow nebula
udp dport {{ nebula_listen_port }} accept;
} }
chain POSTROUTING { chain POSTROUTING {

View file

@ -9,7 +9,7 @@
dest: /etc/nftables.conf dest: /etc/nftables.conf
validate: nft -c -f %s validate: nft -c -f %s
become: true become: true
notify: reload firewall notify: reload nftables
- name: Enable nftables - name: Enable nftables
service: service:

View file

@ -1 +1,2 @@
nebula_is_lighthouse: false nebula_is_lighthouse: false
nebula_listen_port: 0

View file

@ -17,7 +17,7 @@ lighthouse:
listen: listen:
host: 0.0.0.0 host: 0.0.0.0
port: "{{ nebula_is_lighthouse | ternary(nebula_lighthouse_port, 0) }}" port: "{{ nebula_listen_port }}"
punchy: punchy:
punch: true punch: true