Add WireGuard firewall rule

This commit is contained in:
2022-08-13 00:19:24 -04:00
parent b255680a7a
commit 7677bc25fa

View File

@@ -27,3 +27,10 @@
name: wg-quick@wg0
state: started
enabled: true
- name: Add WireGuard firewall rule
ufw:
rule: allow
port: "{{ wireguard.listenport }}"
proto: tcp
when: wireguard.listenport is defined