Add WireGuard firewall rule
This commit is contained in:
parent
b255680a7a
commit
7677bc25fa
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user