doc: add more ufw comments
This commit is contained in:
parent
cab15e590e
commit
ba37edd498
@ -52,6 +52,16 @@
|
||||
daemon_reload: true
|
||||
when: not override_conf.stat.exists
|
||||
|
||||
- name: Enable UFW
|
||||
community.general.ufw:
|
||||
state: enabled
|
||||
|
||||
- name: Enable UFW service at startup
|
||||
ansible.builtin.systemd:
|
||||
name: ufw
|
||||
enabled: true
|
||||
state: started
|
||||
|
||||
- name: Start and enable fail2ban
|
||||
ansible.builtin.service:
|
||||
name: fail2ban
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user