Add 443/UDP for http3

This commit is contained in:
Sam A. 2023-08-01 18:59:53 +02:00
parent aba33a6626
commit 823c0a0abe
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
2 changed files with 6 additions and 1 deletions

View File

@ -26,6 +26,7 @@ open_ports:
- { port: '80', proto: 'tcp', comment: 'HTTP' }
- { port: '81', proto: 'tcp', comment: 'Pi-hole (not port-forwarded)' }
- { port: '443', proto: 'tcp', comment: 'HTTPS' }
- { port: '443', proto: 'udp', comment: 'HTTPS' }
- { port: '4001', proto: 'tcp', comment: 'IPFS Kubo P2P' }
- { port: '4001', proto: 'udp', comment: 'IPFS Kubo P2P' }
- { port: '5001', proto: 'tcp', comment: 'IPFS Kubo RPC API (not port-forwarded)' }

View File

@ -2,11 +2,15 @@
---
- name: Allow necessary ports in UFW
community.general.ufw:
rule: allow
to_port: "{{ item.port }}"
proto: "{{ item.proto }}"
comment: "{{ item.comment }}"
insert: "{{ ansible_loop.index }}"
rule: allow
loop: "{{ open_ports }}"
loop_control:
extended: true
extended_allitems: false
- name: Enable UFW
community.general.ufw: