moving files to old
This commit is contained in:
4
old/roles/ufw/handlers/main.yml
Normal file
4
old/roles/ufw/handlers/main.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
- name: reload ufw
|
||||
ufw:
|
||||
state: reloaded
|
||||
18
old/roles/ufw/tasks/main.yml
Normal file
18
old/roles/ufw/tasks/main.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
- name: Apply custom connection ufw rules
|
||||
ufw: rule="{{item.rule}}" port="{{item.port}}" src="{{item.src}}" proto="{{item.proto}}" direction="{{item.direction}}"
|
||||
with_items: "{{ufw_rules}}"
|
||||
|
||||
#- name: Limit SSH connection rate
|
||||
# ufw: rule=limit port=22 proto=tcp
|
||||
|
||||
- name: Deny all incoming connections
|
||||
ufw: "direction=incoming policy=reject"
|
||||
|
||||
- name: Enable logging
|
||||
ufw:
|
||||
logging: on
|
||||
|
||||
- name: Enable firewall
|
||||
ufw: state=enabled
|
||||
notify: reload ufw
|
||||
Reference in New Issue
Block a user