clean up some peer firewall stuff
This commit is contained in:
@@ -63,3 +63,23 @@
|
|||||||
- name: Run netbird up with setup key
|
- name: Run netbird up with setup key
|
||||||
command:
|
command:
|
||||||
cmd: /usr/local/bin/netbird up --setup-key {{ netbird_setup_key }} --management-url https://netbird.jthan.io:443
|
cmd: /usr/local/bin/netbird up --setup-key {{ netbird_setup_key }} --management-url https://netbird.jthan.io:443
|
||||||
|
|
||||||
|
- name: Create netbird firewalld zone
|
||||||
|
ansible.posix.firewalld:
|
||||||
|
zone: netbird
|
||||||
|
state: present
|
||||||
|
permanent: true
|
||||||
|
|
||||||
|
- name: Set netbird zone target to ACCEPT
|
||||||
|
ansible.posix.firewalld:
|
||||||
|
zone: netbird
|
||||||
|
state: present
|
||||||
|
permanent: true
|
||||||
|
target: ACCEPT
|
||||||
|
|
||||||
|
- name: Add netbird interface to netbird zone
|
||||||
|
ansible.posix.firewalld:
|
||||||
|
zone: netbird
|
||||||
|
interface: wt0
|
||||||
|
permanent: true
|
||||||
|
state: enabled
|
||||||
|
|||||||
Reference in New Issue
Block a user