chimera-linux/ufw-config.md

29 lines
395 B
Markdown
Raw Normal View History

2025-01-09 22:53:26 +01:00
# UFW configuration
2025-01-09 22:43:47 +01:00
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` :
```
2025-01-09 23:05:04 +01:00
# ufw allow 22
2025-01-09 22:43:47 +01:00
```
You may also limit SSH connections against brute-force :
```
# ufw limit ssh
```
Then reload UFW :
```
# ufw reload
```