Bonjour, j'ai toujours les mêmes problèmes. J'arrive à me connecter en ssh sur localhost sans problème (depuis le serveur sur le même serveur).
nmap après redémarrage du serveur :
Code : Tout sélectionner
PORT STATE SERVICE REASON VERSION
22/tcp open ssh syn-ack ttl 52 OpenSSH 9.2p1 Debian 2+deb12u5 (protocol 2.0)
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
nmap après quelques minutes ou après première session ssh ouverte :
Code : Tout sélectionner
PORT STATE SERVICE REASON VERSION
22/tcp filtered ssh no-response
iptables :
Code : Tout sélectionner
Chain INPUT (policy DROP 95 packets, 20520 bytes)
pkts bytes target prot opt in out source destination
2079 168K f2b-sshd tcp -- any any anywhere anywhere multiport dports ssh
3 180 ACCEPT all -- lo any anywhere anywhere
2122 419K ACCEPT all -- any any anywhere anywhere ctstate RELATED,ESTABLISHED
101 5930 ACCEPT tcp -- any any anywhere anywhere tcp dpt:ssh
0 0 ACCEPT udp -- any any anywhere anywhere udp spt:domain
0 0 ACCEPT tcp -- any any anywhere anywhere tcp spt:domain
0 0 ACCEPT udp -- any any anywhere anywhere udp spt:ntp
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy DROP 6 packets, 260 bytes)
pkts bytes target prot opt in out source destination
3 180 ACCEPT all -- any lo anywhere anywhere
2197 493K ACCEPT all -- any any anywhere anywhere ctstate RELATED,ESTABLISHED
1 1228 ACCEPT tcp -- any any anywhere anywhere tcp spt:ssh
11 768 ACCEPT udp -- any any anywhere anywhere udp dpt:domain
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:domain
9 684 ACCEPT udp -- any any anywhere anywhere udp dpt:ntp
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:http
1 60 ACCEPT tcp -- any any anywhere anywhere tcp dpt:https
Ce qui est à noter c'est que lorsque mon problème commence, je ne perds pas la session ssh active, je ne peux juste plus en ouvrir de nouvelles.
netstat
Code : Tout sélectionner
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:5355 0.0.0.0:* LISTEN 423/systemd-resolve
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 502/sshd: /usr/sbin
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 833/exim4
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 423/systemd-resolve
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 518/postgres
tcp 0 0 127.0.0.54:53 0.0.0.0:* LISTEN 423/systemd-resolve
tcp6 0 0 :::5355 :::* LISTEN 423/systemd-resolve
tcp6 0 0 :::22 :::* LISTEN 502/sshd: /usr/sbin
tcp6 0 0 ::1:5432 :::* LISTEN 518/postgres
tcp6 0 0 ::1:25 :::* LISTEN 833/exim4
udp 0 0 127.0.0.54:53 0.0.0.0:* 423/systemd-resolve
udp 0 0 127.0.0.53:53 0.0.0.0:* 423/systemd-resolve
udp 0 0 *****:68 0.0.0.0:* 445/systemd-network
udp 0 0 10.62.3.213:68 0.0.0.0:* 445/systemd-network
udp 0 0 0.0.0.0:5355 0.0.0.0:* 423/systemd-resolve
udp6 1792 0 **** :::* 445/systemd-network
udp6 0 0 :::5355 :::* 423/systemd-resolve
je ne vois qu'un problème avec le pare-feu de infomaniak de possible, voici les règles utilisées :
je vais ouvrir un ticket chez infomaniak à ce sujet. J'ai d'autres serveurs chez eux et je n'ai pas ce problème.
Merci pour tout
a bientôt
Vous ne pouvez pas consulter les pièces jointes insérées à ce message.