Salut,
je viens d’essayer de me connecter en SSH IPV6 (je ne savais pas que ça pouvait se faire) et ça marche
Mais pourquoi donc ça ne marche plus en IPV4 ?
Par contre, une chose que j’ai remarqué mais ça n’était pas vraiment gếnant, en même temps que mon problème de SSH l’adresse yunohost.local n’a plus marché non plus… Hasard ?
En tout cas j’espère que ça va tenir comme ça.
J’aurais quand même bien aimé comprendre ce qu’il se passe.
Merci à tous pour votre aide
Oui je préfère fermer le port 22. Je n’ai pas d’intérêt d’administrer le serveur à distance pour le moment…
Je vais essayer de changer de port sur le routeur…
The IP of your Yunohost looks like it is provided by DHCP. Could you post the output of ip a ? If the laptop that runs Yunohost has ethernet as well as WiFi active, it may switch between the two.
I have seen cases where the router would give another IP on giving a new lease, but keep the old IP cached. Since activating NAT does allow access, the router does seem to know where your Yunohost is.
Another thing that gives seemingly unexplainable symptoms, is DNS rebind protection. It should not get active when accessing a host by IP, but depending on the implementation, you never know. DNS rebind protection as such by a router prevents DNS queries to resolve to a private IP address.
In your opening post
Is that still the case? I don’t imagine you turned off ICMP replies on purpose.
Summarizing, this is what I gleaned from your journey:
Yunohost installed on laptop, DHCP IP = 192.168.1.58
After installation, all is OK:
web services and websites (all of them port 80 / 443) work
SSH from clients to YNH worked initially
The next day, web services and websites still work, but no access via SSH anymore
no log in fail2ban
no ping reply
No clear image of reason for no access:
clients in the LAN can not access YNH over SSH
on YNH one can connect to SSH on localhost
on YNH one can not connect to SSH via the external IP of the machine
it is not possible to connect with another client machine via the LAN IP
it is possible to connect with another cilent machine via the NAT’ed public IP of the router
YNH runs with no problem in the mean time
Outgoing SSH connections from YNH pose no problem
YNH services keep running as expected
Is that correct?
As Jarod suggested, changing the IP may reset some inconsistencies. Myself I’d put it on an IP outside of the DHCP range of your router and configure a static IP, but having it provided an IP via DHCP also works.