33800 Docs

← Retour

Accès Réseau - Configuration Centralisée

Dernière mise à jour : 26/01/2026

CE FICHIER EST LA RÉFÉRENCE pour toutes les questions d'accès réseau.

Architecture de sécurité

┌─────────────────────────────────────────────────────────────────────────────┐
│                         ACCÈS DEPUIS INTERNET                                │
│                                                                              │
│  Visiteur externe ──► DNS Public (O2switch) ──► Freebox (82.65.119.221)     │
│                       *.33800.nowhere84.com      Port forward 80/443         │
│                                                         │                    │
│                                                         ▼                    │
│                                                  Nginx (192.168.1.104)       │
│                                                         │                    │
│                                    ┌────────────────────┴────────────────┐   │
│                                    │                                     │   │
│                              IP autorisée ?                        IP non    │
│                                    │                              autorisée  │
│                                    ▼                                    │    │
│                              Service OK                           403 Forbidden
│                                                                              │
└─────────────────────────────────────────────────────────────────────────────┘

Fichier source unique

Emplacement : /etc/nginx/snippets/allowed-ips.conf sur nginx.local

Ce fichier contient TOUTES les IPs autorisées. Il est inclus par :

IPs autorisées (état actuel)

Plage Description
192.168.1.0/24 LAN 33800 + VPN WireGuard (IPs en 192.168.1.201-254)
2a01:e0a:2c:a320::/64 IPv6 préfixe 33800 (Bordeaux)
127.0.0.1 Localhost IPv4
::1 Localhost IPv6
82.67.42.47 Raph IPv4 (Poitiers)
2a01:e0a:fb8:78c0::/64 Raph IPv6 (Poitiers)
130.180.208.74 Rhinov bureau — Free (Freebox)
92.154.124.233 Rhinov bureau — Orange

Note : Le réseau stockage 10G (10.10.10.0/24) n'a PAS besoin d'accès web.

Services publics (SANS restriction)

Service URL Raison
Jellyfin jellyfin.33800.nowhere84.com Streaming famille/amis

Tous les autres services sont privés (restrictions IP).

Commandes de gestion

Ajouter une IP

# 1. Modifier le snippet
ssh gouroubleu@nginx.local "sudo nano /etc/nginx/snippets/allowed-ips.conf"

# 2. Tester et recharger nginx
ssh gouroubleu@nginx.local "sudo nginx -t && sudo systemctl reload nginx"

# 3. Synchroniser O2switch
/stock_8to/33800-stack/scripts/security/sync-allowed-ips.sh

Vérifier les IPs autorisées

ssh gouroubleu@nginx.local "cat /etc/nginx/snippets/allowed-ips.conf"

Vérifier qu'une config utilise le snippet

ssh gouroubleu@nginx.local "grep -l 'allowed-ips.conf' /etc/nginx/sites-available/*.conf | wc -l"
# Doit retourner 54

Scripts

Script Emplacement Usage
sync-allowed-ips.sh /stock_8to/33800-stack/scripts/security/ Sync nginx → O2switch

Réseau local 33800 (Bordeaux)

Réseau Plage Bridge Usage
LAN principal 192.168.1.0/24 vmbr0 Services, SSH, mDNS
Stockage 10G 10.10.10.0/24 vmbr1 NFS, SMB dédié

Machines principales

Machine IP LAN IP Stockage Rôle
Freebox 192.168.1.254 - Gateway, VPN WireGuard
PVE 192.168.1.4 10.10.10.10 Hyperviseur, Claude
prod-portainer 192.168.1.12 10.10.10.12 Docker PROD
nginx 192.168.1.104 - Reverse proxy
gitlab 192.168.1.196 - GitLab CE
dev-portainer 192.168.1.51 - Docker DEV
win11 192.168.1.30 - Windows, GPU, outils IA

VPN WireGuard (Freebox)

Info Valeur
État Actif
Plage IP 192.168.1.201-254 (IPs fixes, au-dessus du DHCP)
DHCP Freebox 192.168.1.2-200
Clients VPN 3 accès configurés (IPs fixes en 192.168.1.x)
Gestion Freebox OS > Paramètres > VPN Server > WireGuard

Le VPN est couvert par la plage LAN (192.168.1.0/24), pas besoin de règle séparée.

Réseau Raph (86000 - Poitiers)

Info Valeur
Nom Raph
IPv4 fixe 82.67.42.47
IPv6 préfixe 2a01:e0a:fb8:78c0::/64
NRO 86194COU
PTO FI-8456-6614
FAI Free (Freebox)

DNS configurés sur O2switch (25/01/2026)

Enregistrement Type Valeur Stack
*.33800.nowhere84.com A 82.65.119.221 Bordeaux
*.33800.nowhere84.com AAAA 2a01:e0a:2c:a320::1 Bordeaux
*.86000.nowhere84.com A 82.67.42.47 Raph (Poitiers)
*.86000.nowhere84.com AAAA 2a01:e0a:fb8:78c0::1 Raph (Poitiers)

Acces autorises : Raph a acces a tous les services *.nowhere84.com et *.33800.nowhere84.com sauf indication contraire. Seul ami avec acces externe autorise. IP Freebox fixe (fibre).

Verification DNS :

dig @ns1.o2switch.net test.86000.nowhere84.com A +short    # → 82.67.42.47
dig @ns1.o2switch.net test.86000.nowhere84.com AAAA +short # → 2a01:e0a:fb8:78c0::1

A faire pour 86000 : Wildcard SSL + reverse proxy chez Raph

Freebox Ultra

Info Valeur
Modèle Freebox v9 (r1) / Ultra
IP LAN 192.168.1.254
IP Publique 82.65.119.221
Password MyUlia75$w
API App ID claude.33800.infra
API Token /stock_8to/33800-stack/secrets/freebox_app_token

Port Forwarding actif

Port Destination Service
80 192.168.1.104 Nginx HTTP
443 192.168.1.104 Nginx HTTPS

O2switch

Info Valeur
IP 109.234.161.246
Domaine nowhere84.com
cPanel https://yellow.o2switch.net:2083
SSH alias o2switch

Sites hébergés

URL Dossier Protection
dashboard.nowhere84.com ~/public_html/dashboard/ .htaccess
claude.nowhere84.com ~/public_html/claude/ .htaccess
status.nowhere84.com ~/public_html/status/ .htaccess

Note : O2switch (109.234.161.246) est volontairement NON autorisé sur les services 33800. Le healthcheck O2switch considère 403 comme OK.

IMPORTANT : IPs publiques pour O2switch

Les sites O2switch (dashboard, claude, status) voient les IPs publiques des visiteurs, pas les IPs privées. Le script sync-allowed-ips.sh ajoute automatiquement :

Ceci permet aux utilisateurs du LAN 33800 d'accéder aux sites O2switch (leur requête sort via l'IP publique Freebox).

VPN Rhinov (Entreprise) - fusionne depuis rhinov-vpn.md 23/02/2026

Info Valeur
Entreprise Rhinov
Type VPN WireGuard
Endpoint 92.154.124.233:11220
Mode Full tunnel (0.0.0.0/0)
IP VPN client 10.9.0.9/32 (IPv4), fd42:42:42::9/128 (IPv6)
DNS internes 192.168.10.250, 192.168.10.100

Config WireGuard :

[Interface]
PrivateKey = qLUWEgelsihZgs8eKagD2uscxHmlYnNfhmYssyki3Gw=
Address = 10.9.0.9/32, fd42:42:42::9/128
DNS = 192.168.10.250, 192.168.10.100

[Peer]
PublicKey = iOSjBbSgxpX2JTuVfLImPTM9SD6H3EDTkcENZh59tGI=
PresharedKey = WpaQeO6m4kLli3PWtilH4a1HoalTQOm6Gx0hnkr5h9I=
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = 92.154.124.233:11220

Commandes :

sudo wg-quick up rhinov    # Connecter
sudo wg-quick down rhinov  # Deconnecter
sudo wg show               # Status

Usage via connectors-api : Creer instance SSH + configurer VPN dans la section dediee pour acceder aux machines internes Rhinov.


Ce que Pi-hole fait et NE FAIT PAS

Pi-hole... Oui/Non
Résout *.33800.nowhere84.com → nginx pour le réseau local ✅ OUI
Bloque les pubs ✅ OUI
Protège contre l'accès externe NON

Pi-hole = Split-DNS pour le confort local, PAS une protection. La vraie protection = restrictions nginx + .htaccess O2switch.