feat: move to dedicated repo
This commit is contained in:
commit
4a88a5b28d
54 changed files with 1524 additions and 0 deletions
26
tasks/firewall/firewall-rules-routed.yaml
Normal file
26
tasks/firewall/firewall-rules-routed.yaml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
|
||||
# basic firewall rules
|
||||
- name: "firewall - allow incoming routed traffic"
|
||||
community.general.ufw:
|
||||
rule: "allow"
|
||||
route: "yes"
|
||||
src: "{{ item[0] }}"
|
||||
dest: "{{ item[1] }}"
|
||||
with_nested:
|
||||
- "{{ __rule['source_nets'] }}"
|
||||
- "{{ __rule['destination_nets'] }}"
|
||||
tags:
|
||||
- "firewall"
|
||||
|
||||
- name: "firewall - allow outgoing routed traffic"
|
||||
community.general.ufw:
|
||||
rule: "allow"
|
||||
route: "yes"
|
||||
src: "{{ item[1] }}"
|
||||
dest: "{{ item[0] }}"
|
||||
with_nested:
|
||||
- "{{ __rule['source_nets'] }}"
|
||||
- "{{ __rule['destination_nets'] }}"
|
||||
tags:
|
||||
- "firewall"
|
||||
Loading…
Add table
Add a link
Reference in a new issue