Mon serveur YunoHost
**Matériel: Dell Inc. OptiPlex 3050, BIOS 1.30.0
Version de YunoHost: 11.2.27
J’ai accès à mon serveur : En SSH | Par la webadmin | En direct avec un clavier/écran | …
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : Oui
Si oui, expliquer: installation manuelle du driver pour un clé wifi USB Linksys WUSB6400M. J’ai suivi les instructions d’installation ici GitHub - fastoe/RTL8812BU: Realtek RTL8812BU Driver for Linux
Si votre requête est liée à une application:, précisez son nom et sa version: app Wifi HotSpot 2.3.1~ynh1
Description du problème
Bonjour,
J’ai voulu installé un hotspot wifi sur mon serveur mais j’ai rencontré des problèmes que je n’arrive pas à résoudre avec IPV6 et l’App WiFi HotSpot. J’ai parcouru ce forum et lu que d’autres utilisateurs ont connu des problèmes similaires mais je n’ai pas trouvé de solution :
Avant l’installation de Wifi HotSpot:
un diagnostic tout vert avec des IPV4 et IPV6 correctes.
un ip addr
en SSH qui montre bien les IPV4 et IPV6 sur l’interface ethernet enp2s0:
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether d8:9e:f3:8e:1b:1b brd ff:ff:ff:ff:ff:ff
inet 192.168.1.2/24 brd 192.168.1.255 scope global dynamic enp2s0
valid_lft 83157sec preferred_lft 83157sec
inet6 2001:xxx:yyyy:890:aaaa:bbbb:cccc:1b1b/64 scope global dynamic mngtmpaddr
valid_lft 86318sec preferred_lft 14318sec
inet6 fe80::da9e:f3ff:fe8e:1b1b/64 scope link
valid_lft forever preferred_lft forever
Un traceroute6 qui fonctionne :
traceroute6 google.com
traceroute to google.com (2a00:1450:4007:810::200e), 30 hops max, 80 byte packets
1 2001:xxx:yyyy:zzz:aaaa:bbbb:cccc:d762 (2001:xxx:yyyy:zzz:aaaa:bbbb:cccc:d762) 0.642 ms 1.132 ms 1.490 ms
2 * * *
...
Après l’installation de Wifi HotSpot:
Le diagnostic passe en rouge sur les DNS pour ipv6 ainsi que la connexion IPV6 qui semble ne plus exister sur enp2s0 :
ip addr
confirme pourtant que j’ai une adresse IPV6 WAN que je n’arrive plus à joindre de l’extérieur :
ERR_CONNECTION_RESET
dans le navigateur avec mon téléphone en 4G IPV6 mais j’y arrive bien en IPV4 seulement.
Pourtant ip addr
en SSh ne me parait pas déconnant pour les 2 interfaces : enp2s0 et la nouvelle wlx58ef6827860a:
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether d8:9e:f3:8e:1b:1b brd ff:ff:ff:ff:ff:ff
inet 192.168.1.2/24 brd 192.168.1.255 scope global dynamic enp2s0
valid_lft 81797sec preferred_lft 81797sec
inet6 2001:xxx:yyyy:890:aaaa:bbbb:cccc:1b1b/64 scope global dynamic mngtmpaddr
valid_lft 85982sec preferred_lft 13982sec
inet6 fe80::da9e:f3ff:fe8e:1b1b/64 scope link
valid_lft forever preferred_lft forever
3: wlx58ef6827860a: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 02:ef:68:27:86:00 brd ff:ff:ff:ff:ff:ff permaddr 58:ef:68:27:86:0a
inet 10.0.242.1/24 scope global wlx58ef6827860a
valid_lft forever preferred_lft forever
inet6 2001:xxx:yyyy:891::1/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::ef:68ff:fe27:8600/64 scope link
valid_lft forever preferred_lft forever
Dans cette configuration, si je fais en SSH un :
traceroute6 google.com
traceroute to google.com (2a00:1450:4007:80e::200e), 30 hops max, 80 byte packets
connect: Le réseau n'est pas accessible
J’ai pu reproduire ce problème plusieurs fois. Je n’ai aucune erreur lors de l’installation et du paramétrage de WiFi HotSpot et dès que je le désinstalle l’App, tout redevient normal.
Par contre, voici le journal sur service ynh-hotspot et il y a des choses qui m’interpellent :
-- Journal begins at Sun 2024-08-04 22:27:25 CEST, ends at Tue 2024-08-06 15:29:34 CEST. --
août 06 15:28:29 ynh-hotspot[99706]: ++ ynh_app_setting get hotspot ip4_dns
août 06 15:28:29 ynh-hotspot[99706]: ++ set +o xtrace
août 06 15:28:29 ynh-hotspot[99736]: ++ app=hotspot
août 06 15:28:29 ynh-hotspot[99736]: ++ [[ ip4_nat_prefix =~ (unprotected|protected|skipped)_ ]]
août 06 15:28:29 ynh-hotspot[99736]: ++ ynh_app_setting get hotspot ip4_nat_prefix
août 06 15:28:29 ynh-hotspot[99736]: ++ set +o xtrace
août 06 15:28:29 ynh-hotspot[99766]: ++ app=hotspot
août 06 15:28:29 ynh-hotspot[99766]: ++ [[ gateway_interface =~ (unprotected|protected|skipped)_ ]]
août 06 15:28:29 ynh-hotspot[99766]: ++ ynh_app_setting get hotspot gateway_interface
août 06 15:28:29 ynh-hotspot[99766]: ++ set +o xtrace
août 06 15:28:29 ynh-hotspot[99424]: OK
août 06 15:28:29 ynh-hotspot[99424]: [hotspot] Starting...
août 06 15:28:29 ynh-hotspot[99424]: Set NAT
août 06 15:28:29 ynh-hotspot[99424]: Set forwarding
août 06 15:28:29 ynh-hotspot[99424]: Configuring hostapd
août 06 15:28:29 ynh-hotspot[99424]: Starting hostapd...
août 06 15:28:30 ynh-hotspot[99424]: hotspot wlx58ef6827860a: Set IPv4 NAT address
août 06 15:28:30 ynh-hotspot[99424]: hotspot wlx58ef6827860a: Set IPv6 address
août 06 15:28:30 ynh-hotspot[99424]: hotspot wlx58ef6827860a: Set IPv6 firewalling
août 06 15:28:30 ynh-hotspot[99424]: hotspot wlx58ef6827860a: Start the DHCPv4 server (dnsmasq)
août 06 15:28:30 dnsmasq[99838]: démarrage avec le DNS désactivé (version 2.85)
août 06 15:28:30 dnsmasq[99838]: options à la compilation : IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset auth cryptohash DNSSEC loop-detect inotify dumpfile
août 06 15:28:30 dnsmasq-dhcp[99838]: DHCP, plage d\'adresses IP 10.0.242.2 -- 10.0.242.254, durée de bail 4h
août 06 15:28:30 ynh-hotspot[99424]: hotspot wlx58ef6827860a: Start the NDP and DHCPv6 server (dnsmasq)
août 06 15:28:30 dnsmasq[99841]: démarrage avec le DNS désactivé (version 2.85)
août 06 15:28:30 dnsmasq[99841]: options à la compilation : IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset auth cryptohash DNSSEC loop-detect inotify dumpfile
août 06 15:28:30 dnsmasq-dhcp[99841]: annonces de routeurs sur 2001:xxx:yyyy:891::
août 06 15:28:30 ynh-hotspot[99424]: + app=hotspot
août 06 15:28:30 ynh-hotspot[99424]: + [[ gateway_interface =~ (unprotected|protected|skipped)_ ]]
août 06 15:28:30 ynh-hotspot[99424]: + ynh_app_setting set hotspot gateway_interface enp2s0
août 06 15:28:30 ynh-hotspot[99424]: + set +o xtrace
août 06 15:28:30 ynh-hotspot[99424]: + yunohost tools regen-conf dnsmasq
août 06 15:28:32 ynh-hotspot[99903]: La configuration a été mise à jour pour 'dnsmasq'
août 06 15:28:34 ynh-hotspot[99903]: dnsmasq:
août 06 15:28:34 ynh-hotspot[99903]: applied:
août 06 15:28:34 ynh-hotspot[99903]: /etc/dnsmasq.conf:
août 06 15:28:34 ynh-hotspot[99903]: status: updated
août 06 15:28:34 ynh-hotspot[99903]: /etc/resolv.dnsmasq.conf:
août 06 15:28:34 ynh-hotspot[99903]: status: updated
août 06 15:28:34 ynh-hotspot[99903]: pending:
août 06 15:28:34 ynh-hotspot[99424]: + exit 0
août 06 15:28:34 systemd[1]: Finished YunoHost Wifi Hotspot.
août 06 15:28:44 dnsmasq-dhcp[99841]: RTR-ADVERT(wlx58ef6827860a) 2001:xxx:yyyy:891::
août 06 15:29:00 dnsmasq-dhcp[99841]: RTR-ADVERT(wlx58ef6827860a) 2001:xxx:yyyy:891::
août 06 15:29:18 dnsmasq-dhcp[99841]: RTR-ADVERT(wlx58ef6827860a) 2001:xxx:yyyy:891::
août 06 15:29:26 dnsmasq-dhcp[99838]: pas de plage d\'adresse disponible pour la requête DHCP par l\'intermédiaire de enp2s0
août 06 15:29:27 dnsmasq-dhcp[99838]: pas de plage d\'adresse disponible pour la requête DHCP par l\'intermédiaire de enp2s0
août 06 15:29:29 dnsmasq-dhcp[99838]: pas de plage d\'adresse disponible pour la requête DHCP par l\'intermédiaire de enp2s0
août 06 15:29:30 dnsmasq-dhcp[99838]: pas de plage d\'adresse disponible pour la requête DHCP par l\'intermédiaire de enp2s0
août 06 15:29:34 dnsmasq-dhcp[99841]: RTR-ADVERT(wlx58ef6827860a) 2001:xxx:yyyy:891::
J’avoue que ça sort désormais de mes compétences et votre aide serait très appréciée.
Bien cordialement.