mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
9
roles/unmaintained/bitwarden_rs/tasks/iptables.yml
Normal file
9
roles/unmaintained/bitwarden_rs/tasks/iptables.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
|
||||
- name: Handle bitwarden_rs ports in the firewall
|
||||
iptables_raw:
|
||||
name: bitwarden_rs
|
||||
state: "{{ (bitwarden_src_ip | length > 0) | ternary('present','absent') }}"
|
||||
rules: "-A INPUT -m state --state NEW -m multiport -p tcp --dports {{ bitwarden_http_port }},{{ bitwarden_ws_port }} -s {{ bitwarden_src_ip | join(',') }} -j ACCEPT"
|
||||
when: iptables_manage | default(True)
|
||||
tags: firewall,bitwarden
|
Reference in New Issue
Block a user