BBB-via-ansible/README.md

37 lines
1.2 KiB
Markdown
Raw Normal View History

# bbb-vps-prep (Ubuntu 22.04) — nftables + hardening + Docker (BBB 3.x ready)
Ce dépôt prépare un VPS **Ubuntu 22.04** pour BigBlueButton (BBB 3.x) avec :
- SSH durci (clés seulement, root interdit, allowlist utilisateurs)
- **nftables** comme firewall (pas UFW, pas iptables en gestion humaine)
- Docker CE (repo officiel) requis par BBB 3.x
- compatibilité Docker : on **nefface jamais** le ruleset global, on applique une **table nftables dédiée** (`inet hostfilter`)
- fail2ban avec action nftables
- journald persistant + rotation
- sysctl hardening (inclut ip_forward pour Docker)
- swapfile (utile avec 12 Go RAM)
## Mise en route
1) Éditer `inventory.ini` (IP du VPS)
2) Éditer `group_vars/all.yml` (clé publique, CIDR SSH, FQDN)
3) Exécuter :
```bash
make check
make run
```
Mode dry-run :
```bash
make dry-run
```
## Ports ouverts (par défaut)
- SSH: 22/TCP (restreignable par CIDR)
- BBB: 80/TCP, 443/TCP, 1638432768/UDP
- TURN (cohab): 3478/TCP+UDP, 5349/TCP, 3276965535/UDP
## Notes
- Docker gardera ses règles nécessaires au bridge/NAT; ce dépôt ajoute une couche “policy” via nftables.
- TURN sur 443 “exclusif” nest pas compatible cohabitation 1 IP avec nginx/BBB (on utilise 5349/TLS).