Browse Source

feat: add ufw

pull/3/head
Karan Sharma 1 year ago
parent
commit
699c63b167
  1. 4
      hetzner/ansible/roles/bootstrap-node/tasks/main.yml
  2. 14
      hetzner/ansible/roles/bootstrap-node/tasks/ufw.yml

4
hetzner/ansible/roles/bootstrap-node/tasks/main.yml

@ -16,6 +16,10 @@
tags:
- ssh
- import_tasks: ufw.yml
tags:
- ufw
- import_tasks: timezone.yml
tags:
- timezone

14
hetzner/ansible/roles/bootstrap-node/tasks/ufw.yml

@ -0,0 +1,14 @@
- name: Deny all incoming traffic and enable UFW
ufw:
state: enabled
policy: deny
direction: incoming
- name: Set logging
ufw:
logging: 'on'
- name: UFW - Allow SSH connections
ufw:
rule: allow
name: OpenSSH
Loading…
Cancel
Save