AP manageur V1.1 (Bêta)

This commit is contained in:
yoannmultigaming committed 2026-11-24 18:10:21 +01:00
1 parent 828a07c220
commit 52fd02e665
45 files changed
+22 -22

No files matched your search

+1
View File
@@ -8,3 +8,4 @@ __pycache__
README.md README.md
docker-compose.yml docker-compose.yml
up.sh up.sh
/images/galerie photo/*
+21 -22
View File
@@ -27,7 +27,7 @@
Suivi en direct de l'état du point d'accès, du nombre de clients connectés, de la durée de fonctionnement (uptime), tableau complet des appareils avec puissance du signal Wi-Fi en temps réel (dBm), routage Internet actif et **QR Code instantané** permettant à n'importe quel smartphone de se connecter en un scan sans saisie manuelle. Suivi en direct de l'état du point d'accès, du nombre de clients connectés, de la durée de fonctionnement (uptime), tableau complet des appareils avec puissance du signal Wi-Fi en temps réel (dBm), routage Internet actif et **QR Code instantané** permettant à n'importe quel smartphone de se connecter en un scan sans saisie manuelle.
<div align="center"> <div align="center">
<img src="images/screenshot-dashboard.png" alt="Tableau de bord AP Manageur" width="900"> <img src="images/galerie photo/screenshot-dashboard.png" alt="Tableau de bord AP Manageur" width="900">
</div> </div>
--- ---
@@ -37,13 +37,13 @@ Lors de la toute première installation, un assistant ergonomique vous accompagn
| Étape 1 : Bienvenue & Restauration | Étape 2 : Configuration Réseau & Wi-Fi | | Étape 1 : Bienvenue & Restauration | Étape 2 : Configuration Réseau & Wi-Fi |
| :---: | :---: | | :---: | :---: |
| <img src="images/screenshot-setup-step1-welcome.png" alt="Setup Étape 1 - Bienvenue" width="450"> | <img src="images/screenshot-setup-step2-wifi.png" alt="Setup Étape 2 - Wi-Fi" width="450"> | | <img src="images/galerie photo/screenshot-setup-step1-welcome.png" alt="Setup Étape 1 - Bienvenue" width="450"> | <img src="images/galerie photo/screenshot-setup-step2-wifi.png" alt="Setup Étape 2 - Wi-Fi" width="450"> |
| **Étape 3 : Compte Administrateur & Passkeys** | **Étape 5 : Options, VPN WireGuard & Sauvegardes** | | **Étape 3 : Compte Administrateur & Passkeys** | **Étape 5 : Options, VPN WireGuard & Sauvegardes** |
| <img src="images/screenshot-setup-step3-admin.png" alt="Setup Étape 3 - Compte Administrateur" width="450"> | <img src="images/screenshot-setup-step5-options.png" alt="Setup Étape 5 - Options" width="450"> | | <img src="images/galerie photo/screenshot-setup-step3-admin.png" alt="Setup Étape 3 - Compte Administrateur" width="450"> | <img src="images/galerie photo/screenshot-setup-step5-options.png" alt="Setup Étape 5 - Options" width="450"> |
<div align="center"> <div align="center">
<p><strong>Étape 6 : Récapitulatif Général & Lancement Immédiat de l'AP</strong></p> <p><strong>Étape 6 : Récapitulatif Général & Lancement Immédiat de l'AP</strong></p>
<img src="images/screenshot-setup-step6-recap.png" alt="Setup Étape 6 - Récapitulatif" width="700"> <img src="images/galerie photo/screenshot-setup-step6-recap.png" alt="Setup Étape 6 - Récapitulatif" width="700">
</div> </div>
--- ---
@@ -52,7 +52,7 @@ Lors de la toute première installation, un assistant ergonomique vous accompagn
Visualisez la cartographie dynamique de votre infrastructure : passerelle Internet (`br0` / `wan`), état du point d'accès Wi-Fi, tunnels VPN actifs, liaisons 802.11 vers chaque équipement avec code couleur de signal (dBm), débits cumulés en direct (TX / RX) et statistiques de répartition par catégorie d'appareil. Visualisez la cartographie dynamique de votre infrastructure : passerelle Internet (`br0` / `wan`), état du point d'accès Wi-Fi, tunnels VPN actifs, liaisons 802.11 vers chaque équipement avec code couleur de signal (dBm), débits cumulés en direct (TX / RX) et statistiques de répartition par catégorie d'appareil.
<div align="center"> <div align="center">
<img src="images/screenshot-topology.png" alt="Topologie Réseau Dynamique" width="900"> <img src="images/galerie photo/screenshot-topology.png" alt="Topologie Réseau Dynamique" width="900">
</div> </div>
--- ---
@@ -61,7 +61,7 @@ Visualisez la cartographie dynamique de votre infrastructure : passerelle Intern
Acheminez le trafic de certains appareils (TV, consoles, PC, smartphones) à travers un tunnel VPN WireGuard ou OpenVPN dédié, pendant que les autres accèdent directement à Internet via la Box. En cas de coupure inattendue du VPN, la protection **Kill-Switch** coupe immédiatement le flux pour interdire toute fuite d'adresse IP réelle. Acheminez le trafic de certains appareils (TV, consoles, PC, smartphones) à travers un tunnel VPN WireGuard ou OpenVPN dédié, pendant que les autres accèdent directement à Internet via la Box. En cas de coupure inattendue du VPN, la protection **Kill-Switch** coupe immédiatement le flux pour interdire toute fuite d'adresse IP réelle.
<div align="center"> <div align="center">
<img src="images/screenshot-vpn-routing.png" alt="Routage VPN par Appareil et Kill-Switch" width="900"> <img src="images/galerie photo/screenshot-vpn-routing.png" alt="Routage VPN par Appareil et Kill-Switch" width="900">
</div> </div>
--- ---
@@ -71,7 +71,7 @@ Consultez l'historique complet des appareils enregistrés en base SQLite, person
| Gestion des Appareils & Quotas Débits | Liste Noire & Filtrage Matériel (MAC) | | Gestion des Appareils & Quotas Débits | Liste Noire & Filtrage Matériel (MAC) |
| :---: | :---: | | :---: | :---: |
| <img src="images/screenshot-devices.png" alt="Gestion des Appareils et Quotas" width="450"> | <img src="images/screenshot-blocked.png" alt="Appareils Bloqués" width="450"> | | <img src="images/galerie photo/screenshot-devices.png" alt="Gestion des Appareils et Quotas" width="450"> | <img src="images/galerie photo/screenshot-blocked.png" alt="Appareils Bloqués" width="450"> |
--- ---
@@ -80,7 +80,7 @@ Inspectez les paquets réseau circulant sur votre interface Wi-Fi directement da
| Analyseur Réseau Wireshark & PCAP en Direct | Statistiques & Consommation par Appareil | | Analyseur Réseau Wireshark & PCAP en Direct | Statistiques & Consommation par Appareil |
| :---: | :---: | | :---: | :---: |
| <img src="images/screenshot-pcap-wireshark.png" alt="Analyseur Réseau Wireshark" width="450"> | <img src="images/screenshot-statistics.png" alt="Statistiques et Fréquentation" width="450"> | | <img src="images/galerie photo/screenshot-pcap-wireshark.png" alt="Analyseur Réseau Wireshark" width="450"> | <img src="images/galerie photo/screenshot-statistics.png" alt="Statistiques et Fréquentation" width="450"> |
--- ---
@@ -89,11 +89,11 @@ Basculez à chaud entre mode Routeur (NAT) et mode Pont (Bridge), consultez les
| Réglages Réseau Wi-Fi & Pont | Journaux de Connexion & Audit | | Réglages Réseau Wi-Fi & Pont | Journaux de Connexion & Audit |
| :---: | :---: | | :---: | :---: |
| <img src="images/screenshot-wifi-settings.png" alt="Réglages Réseau Wi-Fi" width="450"> | <img src="images/screenshot-logs.png" alt="Journaux de Connexion" width="450"> | | <img src="images/galerie photo/screenshot-wifi-settings.png" alt="Réglages Réseau Wi-Fi" width="450"> | <img src="images/galerie photo/screenshot-logs.png" alt="Journaux de Connexion" width="450"> |
<div align="center"> <div align="center">
<p><strong>Personnalisation, Catégories d'Équipements & Mises à Jour Automatiques Gitea</strong></p> <p><strong>Personnalisation, Catégories d'Équipements & Mises à Jour Automatiques Gitea</strong></p>
<img src="images/screenshot-customization.png" alt="Personnalisation et Mises à jour Gitea" width="900"> <img src="images/galerie photo/screenshot-customization.png" alt="Personnalisation et Mises à jour Gitea" width="900">
</div> </div>
--- ---
@@ -103,9 +103,9 @@ AP Manageur propose plusieurs thèmes soignés pour s'adapter à votre goût ou
| Windows XP (Nostalgie Bliss) | Matrix Hacker (Console CRT) | | Windows XP (Nostalgie Bliss) | Matrix Hacker (Console CRT) |
| :---: | :---: | | :---: | :---: |
| <img src="images/screenshot-theme-winxp.png" alt="Thème Windows XP" width="450"> | <img src="images/screenshot-theme-matrix.png" alt="Thème Matrix CRT" width="450"> | | <img src="images/galerie photo/screenshot-theme-winxp.png" alt="Thème Windows XP" width="450"> | <img src="images/galerie photo/screenshot-theme-matrix.png" alt="Thème Matrix CRT" width="450"> |
| **Cyberpunk (Néon Cyan)** | **Thème Clair Moderne** | | **Cyberpunk (Néon Cyan)** | **Thème Clair Moderne** |
| <img src="images/screenshot-theme-cyberpunk.png" alt="Thème Cyberpunk" width="450"> | <img src="images/screenshot-dashboard-light.png" alt="Thème Clair" width="450"> | | <img src="images/galerie photo/screenshot-theme-cyberpunk.png" alt="Thème Cyberpunk" width="450"> | <img src="images/galerie photo/screenshot-dashboard-light.png" alt="Thème Clair" width="450"> |
--- ---
@@ -113,7 +113,7 @@ AP Manageur propose plusieurs thèmes soignés pour s'adapter à votre goût ou
### 📡 1. Modes de Fonctionnement Réseau ### 📡 1. Modes de Fonctionnement Réseau
- **Mode AP (Routeur / NAT)** : - **Mode AP (Routeur / NAT)** :
- Création d'un sous-réseau privé Wi-Fi dédié (`192.168.12.0/24`). - Création d'un sous-réseau privé Wi-Fi dédié (`10.42.0.x/24`).
- Serveur DHCP et DNS intégré (`dnsmasq`) avec attribution automatique des baux et masquage d'adresses (`iptables` NAT). - Serveur DHCP et DNS intégré (`dnsmasq`) avec attribution automatique des baux et masquage d'adresses (`iptables` NAT).
- Gestion automatique des DNS menteurs et de la redirection transparente. - Gestion automatique des DNS menteurs et de la redirection transparente.
- **Mode Pont (Bridge Transparent)** : - **Mode Pont (Bridge Transparent)** :
@@ -211,7 +211,6 @@ Créez le fichier `docker-compose.yml` dans votre dossier de déploiement (par e
```yaml ```yaml
services: services:
ap-manageur: ap-manageur:
build: .
image: gitea.yoann-nas.fr/yoannmultigaming/apmanageur:latest image: gitea.yoann-nas.fr/yoannmultigaming/apmanageur:latest
container_name: ap-manageur container_name: ap-manageur
restart: unless-stopped restart: unless-stopped
@@ -298,7 +297,7 @@ http://<ADRESSE_IP_DU_SERVEUR>:1001/setup
Générez des clés d'API sécurisées dans **Réglages** ➔ **Clés d'API** pour intégrer AP Manageur avec vos systèmes domotiques (**Home Assistant**, **Node-RED**) ou vos scripts de monitoring. Chaque clé dispose d'autorisations granulaires (lecture du statut, gestion des clients, contrôle du Wi-Fi, déclenchement des sauvegardes). Générez des clés d'API sécurisées dans **Réglages** ➔ **Clés d'API** pour intégrer AP Manageur avec vos systèmes domotiques (**Home Assistant**, **Node-RED**) ou vos scripts de monitoring. Chaque clé dispose d'autorisations granulaires (lecture du statut, gestion des clients, contrôle du Wi-Fi, déclenchement des sauvegardes).
<div align="center"> <div align="center">
<img src="images/screenshot-api-keys.png" alt="Gestion des Clés d'API et Permissions" width="750"> <img src="images/galerie photo/screenshot-api-keys.png" alt="Gestion des Clés d'API et Permissions" width="750">
</div> </div>
### 1. Utilisation de l'API REST avec votre Clé d'API ### 1. Utilisation de l'API REST avec votre Clé d'API
@@ -308,23 +307,23 @@ Une fois votre clé générée dans **Réglages** ➔ **Clés d'API** (format `a
```bash ```bash
# Récupérer l'état général et les métriques de l'AP # Récupérer l'état général et les métriques de l'AP
curl -s -H "X-Session-Token: ap_key_VOTRE_CLE" \ curl -s -H "X-Session-Token: ap_key_VOTRE_CLE" \
http://192.168.1.161:1001/api/status | jq . http://192.168.1.x:1001/api/status | jq .
# Lister les équipements connectés en direct # Lister les équipements connectés en direct
curl -s -H "Authorization: Bearer ap_key_VOTRE_CLE" \ curl -s -H "Authorization: Bearer ap_key_VOTRE_CLE" \
http://192.168.1.161:1001/api/clients | jq . http://192.168.1.x:1001/api/clients | jq .
# Bloquer instantanément un équipement par son adresse MAC # Bloquer instantanément un équipement par son adresse MAC
curl -s -X POST \ curl -s -X POST \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "X-Session-Token: ap_key_VOTRE_CLE" \ -H "X-Session-Token: ap_key_VOTRE_CLE" \
-d '{"mac": "AA:BB:CC:DD:EE:FF", "blocked": true}' \ -d '{"mac": "AA:BB:CC:DD:EE:FF", "blocked": true}' \
http://192.168.1.161:1001/api/clients/block http://192.168.1.x:1001/api/clients/block
# Déclencher une sauvegarde immédiate # Déclencher une sauvegarde immédiate
curl -s -X POST \ curl -s -X POST \
-H "X-Session-Token: ap_key_VOTRE_CLE" \ -H "X-Session-Token: ap_key_VOTRE_CLE" \
http://192.168.1.161:1001/api/backups/create | jq . http://192.168.1.x:1001/api/backups/create | jq .
``` ```
--- ---
@@ -334,7 +333,7 @@ curl -s -X POST \
```yaml ```yaml
# Capteurs de surveillance en temps réel # Capteurs de surveillance en temps réel
rest: rest:
- resource: http://192.168.1.161:1001/api/status - resource: http://192.168.1.x:1001/api/status
headers: headers:
X-Session-Token: !secret ap_manageur_api_key X-Session-Token: !secret ap_manageur_api_key
scan_interval: 30 scan_interval: 30
@@ -353,7 +352,7 @@ rest:
# Actions de commande à distance # Actions de commande à distance
rest_command: rest_command:
ap_restart_wifi: ap_restart_wifi:
url: "http://192.168.1.161:1001/api/ap/control" url: "http://192.168.1.x:1001/api/ap/control"
method: "POST" method: "POST"
headers: headers:
Content-Type: "application/json" Content-Type: "application/json"
@@ -361,7 +360,7 @@ rest_command:
payload: '{"action": "restart"}' payload: '{"action": "restart"}'
ap_block_device: ap_block_device:
url: "http://192.168.1.161:1001/api/clients/block" url: "http://192.168.1.x:1001/api/clients/block"
method: "POST" method: "POST"
headers: headers:
Content-Type: "application/json" Content-Type: "application/json"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 180 KiB

After

Width:  |  Height:  |  Size: 180 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 102 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 101 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 132 KiB

After

Width:  |  Height:  |  Size: 132 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 132 KiB

After

Width:  |  Height:  |  Size: 132 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 79 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 100 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 127 KiB

After

Width:  |  Height:  |  Size: 127 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 183 KiB

After

Width:  |  Height:  |  Size: 183 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 151 KiB

After

Width:  |  Height:  |  Size: 151 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 115 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 182 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 150 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 236 KiB

After

Width:  |  Height:  |  Size: 236 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 142 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB