mirror of
https://github.com/imthenachoman/How-To-Secure-A-Linux-Server.git
synced 2026-03-26 14:32:44 +01:00
Merge pull request #131 from Miquel-TA/patch-1
Added a brief explanation about ufw limit
This commit is contained in:
@@ -1578,7 +1578,7 @@ You can create rules by explicitly specifying the ports or with application conf
|
|||||||
sudo ufw default deny incoming comment 'deny all incoming traffic'
|
sudo ufw default deny incoming comment 'deny all incoming traffic'
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Obviously we want SSH connections in:
|
1. Obviously we want SSH connections in. Using limit instead of allow will automatically deny connections from an IP address if it attempts to initiate 6 or more connections within a 30-second window:
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
sudo ufw limit in ssh comment 'allow SSH connections in'
|
sudo ufw limit in ssh comment 'allow SSH connections in'
|
||||||
|
|||||||
Reference in New Issue
Block a user