You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
353 B
YAML
19 lines
353 B
YAML
---
|
|
|
|
- name: Enable firewall with deny by default
|
|
ufw:
|
|
state: enabled
|
|
policy: deny
|
|
direction: incoming
|
|
|
|
- name: Block known addresses
|
|
ufw:
|
|
insert: 1 # Insert before common rules
|
|
rule: deny
|
|
from_ip: "{{ item }}"
|
|
direction: in
|
|
comment: "IP from Blocklist"
|
|
loop: "{{ global_ip_blocklist }}"
|
|
tags:
|
|
- ip_blocklist
|