forked from juanluisbaptiste/ansible-bigbluebutton
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sebastian Preisner
committed
Jan 5, 2024
1 parent
9203d7d
commit b34394c
Showing
7 changed files
with
104 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,48 @@ | ||
--- | ||
- name: Install UFW firewall | ||
apt: | ||
ansible.builtin.apt: | ||
name: ufw | ||
state: present | ||
tags: | ||
- bbb_configure_ufw | ||
|
||
- name: Allow OpenSSH access in firewall | ||
ufw: | ||
community.general.ufw: | ||
rule: allow | ||
name: OpenSSH | ||
tags: | ||
- bbb_configure_ufw | ||
|
||
- name: Allow HTTP/HTTPS access in firewall | ||
ufw: | ||
community.general.ufw: | ||
rule: allow | ||
name: "Nginx Full" | ||
tags: | ||
- bbb_configure_ufw | ||
|
||
- name: Allow media connections in firewall | ||
ufw: | ||
community.general.ufw: | ||
rule: allow | ||
proto: udp | ||
port: 16384:32768 | ||
tags: | ||
- bbb_configure_ufw | ||
|
||
- name: Allow connections from SIP gateways in firewall | ||
ufw: | ||
community.general.ufw: | ||
rule: allow | ||
from: "{{ lookup('dig', item[0]) }}" | ||
port: "5060,5080" | ||
proto: "{{ item[1] }}" | ||
comment: "SIP gateway" | ||
loop: "{{ bbb_sip_providers.values() | map(attribute='proxy') | product(['tcp', 'udp']) | list }}" | ||
when: bbb_sip_providers is defined | ||
when: bbb_sip_providers is defined | ||
tags: | ||
- bbb_configure_ufw | ||
|
||
- name: Enable firewall rules | ||
ufw: | ||
community.general.ufw: | ||
state: enabled | ||
policy: deny | ||
tags: | ||
- bbb_enable_ufw | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.