% UFW


## Firewall

Installation et configuration

```bash
sudo apt install ufw
sudo ufw allow ssh
sudo ufw allow http
sudo ufw allow https
sudo ufw allow 64035/tcp # Après avoir ajouté Port 64035 dans sshd_config
sudo ufw enable
```

```bash
$ sudo ufw allow ssh
Rules updated
Rules updated (v6)
lauhub@ecaz:~$ sudo ufw allow http
Rules updated
Rules updated (v6)
lauhub@ecaz:~$ sudo ufw allow https
Rules updated
Rules updated (v6)
$ sudo ufw allow out to any port 53
$ sudo ufw default allow outgoing
$ sudo ufw default allow routed

```

```
sudo nano /etc/default/ufw
```

Mettre: `DEFAULT_FORWARD_POLICY="ACCEPT"`

Source: [Proxmox - Server setup · GitHub](https://gist.github.com/rdroro/9988478)

