doc
This commit is contained in:
parent
56cccfc2ec
commit
7efaa96160
30
ufw-config.md
Normal file
30
ufw-config.md
Normal file
@ -0,0 +1,30 @@
|
||||
# UFW config
|
||||
|
||||
To enable UFW :
|
||||
```
|
||||
# dinitctl enable ufw
|
||||
# ufw enable
|
||||
```
|
||||
|
||||
Deny all incoming traffic by default, allow outgoing :
|
||||
```
|
||||
# ufw default deny incoming
|
||||
# ufw default allow outgoing
|
||||
```
|
||||
|
||||
Open needed ports, here an example with `SSH` :
|
||||
```
|
||||
# ufw allow ssh
|
||||
```
|
||||
|
||||
> Common ports are `ssh`, `http`, `https`, `dns`, etc...
|
||||
|
||||
You may also limit SSH connections against brute-force :
|
||||
```
|
||||
# ufw limit ssh
|
||||
```
|
||||
|
||||
Then reload UFW :
|
||||
```
|
||||
# ufw reload
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user