diff --git a/tasks/main.yml b/tasks/main.yml index ab819b2..7c9e897 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -31,3 +31,9 @@ - name: Enable the firewall ufw: state: enabled + +- name: Deny connections if an IP address has attempted to initiate 6 or more connections in the last 30 seconds + ufw: + rule: limit + port: 222 + proto: tcp