From 735ce2a95746ad31f442bad2180a1fa7b45b59c4 Mon Sep 17 00:00:00 2001 From: kawaiipunk Date: Tue, 21 Jun 2022 14:12:55 +0100 Subject: [PATCH] Added ufw limit rule to rate limit connecting on port 222 --- tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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