Add WireGuard firewall rule

This commit is contained in:
Kris Lamoureux 2022-08-13 00:19:24 -04:00
parent b255680a7a
commit 7677bc25fa
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925

View File

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