doc: add more ufw comments

This commit is contained in:
Clément Désiles
2025-11-10 23:57:34 +01:00
parent cab15e590e
commit ba37edd498
2 changed files with 18 additions and 7 deletions
+8 -7
View File
@@ -46,16 +46,17 @@
src: wireguard.conf.j2
dest: /etc/wireguard/{{ wireguard_interface }}.conf
- name: Start and enable service
ansible.builtin.service:
name: wg-quick@{{ wireguard_interface }}
state: started
enabled: true
daemon_reload: true
- name: Configure the firewall for wireguard
community.general.ufw:
rule: allow
port: "{{ wireguard_port }}"
proto: udp
direction: in
comment: Wireguard VPN
- name: Start and enable service
ansible.builtin.service:
name: wg-quick@{{ wireguard_interface }}
state: started
enabled: true
daemon_reload: true