Yunohost n'est pas accessible sur le réseau mais je l'atteins en ssh en local

Mon serveur YunoHost

Matériel: Vieil ordinateur
Version de YunoHost: 3.6.5.3
J’ai accès à mon serveur : En SSH | En direct avec un clavier/écran

Description du problème

Bonjour,
Depuis quelques jours, je n’arrive plus à accéder à nextcloud, à la page admin ou aux autres apps que ce soit par l’appli du tel ou de mon laptop (pour nextcloud) ou par un quelconque navigateur distant (pour tous). Ça mouline, puis m’indique ne pas pouvoir y accéder.
Ça ne semble pas être un problème de DNS car les serveurs voient mon ip quels que soient mes domaines.
J’accède bien par SSH en local (pas essayé en distant) et à GNOME quand je lui branche un écran.

En regardant en détail, je m’aperçois que je n’ai plus d’attaques distantes depuis le 26/02 vers 1h du mat sur /var/log/auth.log.1 ce qui semble être un bon indicateur du moment où le système n’a plus été accessible…!

J’ai aussi regardé du côté de fail2ban. On dirait que toutes les ip ont été unban. Toutes mes jails sont vides et j’ai des messages d’erreur:

2020-03-02 08:44:20,865 fail2ban.server         [874]: INFO    Stopping all jails
2020-03-02 08:44:21,596 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports http,https -j f2b-nextcloud
iptables -w -F f2b-nextcloud
iptables -w -X f2b-nextcloud -- stdout: b''
2020-03-02 08:44:21,596 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports http,https -j f2b-nextcloud
iptables -w -F f2b-nextcloud
iptables -w -X f2b-nextcloud -- stderr: b"iptables v1.6.0: Couldn't load target `f2b-nextcloud':No such file or directory\n\nTry `iptables -h' or 'iptables --help' for$
2020-03-02 08:44:21,596 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports http,https -j f2b-nextcloud
iptables -w -F f2b-nextcloud
iptables -w -X f2b-nextcloud -- returned 1
2020-03-02 08:44:21,596 fail2ban.actions        [874]: ERROR   Failed to stop jail 'nextcloud' action 'iptables-multiport': Error stopping action
2020-03-02 08:44:21,599 fail2ban.jail           [874]: INFO    Jail 'nextcloud' stopped
2020-03-02 08:44:21,716 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports http,https -j f2b-yunohost
iptables -w -F f2b-yunohost
iptables -w -X f2b-yunohost -- stdout: b''
2020-03-02 08:44:21,716 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports http,https -j f2b-yunohost
iptables -w -F f2b-yunohost
iptables -w -X f2b-yunohost -- stderr: b"iptables v1.6.0: Couldn't load target `f2b-yunohost':No such file or directory\n\nTry `iptables -h' or 'iptables --help' for m$
2020-03-02 08:44:21,717 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports http,https -j f2b-yunohost
iptables -w -F f2b-yunohost
iptables -w -X f2b-yunohost -- returned 1
2020-03-02 08:44:21,719 fail2ban.actions        [874]: ERROR   Failed to stop jail 'yunohost' action 'iptables-multiport': Error stopping action
2020-03-02 08:44:21,719 fail2ban.jail           [874]: INFO    Jail 'yunohost' stopped
2020-03-02 08:44:22,433 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -j f2b-recidive
iptables -w -F f2b-recidive
iptables -w -X f2b-recidive -- stdout: b''
2020-03-02 08:44:22,433 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -j f2b-recidive
iptables -w -F f2b-recidive
iptables -w -X f2b-recidive -- stderr: b"iptables v1.6.0: Couldn't load target `f2b-recidive':No such file or directory\n\nTry `iptables -h' or 'iptables --help' for m$
2020-03-02 08:44:22,433 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -j f2b-recidive
iptables -w -F f2b-recidive
iptables -w -X f2b-recidive -- returned 1
2020-03-02 08:44:22,433 fail2ban.actions        [874]: ERROR   Failed to stop jail 'recidive' action 'iptables-allports': Error stopping action
2020-03-02 08:44:22,434 fail2ban.jail           [874]: INFO    Jail 'recidive' stopped
2020-03-02 08:44:22,882 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports ssh -j f2b-sshd-ddos
iptables -w -F f2b-sshd-ddos
iptables -w -X f2b-sshd-ddos -- stdout: b''
2020-03-02 08:44:22,883 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports ssh -j f2b-sshd-ddos
iptables -w -F f2b-sshd-ddos
iptables -w -X f2b-sshd-ddos -- stderr: b"iptables v1.6.0: Couldn't load target `f2b-sshd-ddos':No such file or directory\n\nTry `iptables -h' or 'iptables --help' for$
2020-03-02 08:44:22,883 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports ssh -j f2b-sshd-ddos
iptables -w -F f2b-sshd-ddos
iptables -w -X f2b-sshd-ddos -- returned 1
2020-03-02 08:44:22,883 fail2ban.actions        [874]: ERROR   Failed to stop jail 'sshd-ddos' action 'iptables-multiport': Error stopping action
2020-03-02 08:44:22,884 fail2ban.jail           [874]: INFO    Jail 'sshd-ddos' stopped
2020-03-02 08:44:23,344 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports smtp,submission,imap,imaps,pop3,pop3s -j f2b-postfix-s$
iptables -w -F f2b-postfix-sasl
iptables -w -X f2b-postfix-sasl -- stdout: b''
2020-03-02 08:44:23,345 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports smtp,submission,imap,imaps,pop3,pop3s -j f2b-postfix-s$
iptables -w -F f2b-postfix-sasl
iptables -w -X f2b-postfix-sasl -- stderr: b"iptables v1.6.0: Couldn't load target `f2b-postfix-sasl':No such file or directory\n\nTry `iptables -h' or 'iptables --hel$
2020-03-02 08:44:23,345 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports smtp,submission,imap,imaps,pop3,pop3s -j f2b-postfix-s$
iptables -w -F f2b-postfix-sasl
iptables -w -X f2b-postfix-sasl -- returned 1
2020-03-02 08:44:23,345 fail2ban.actions        [874]: ERROR   Failed to stop jail 'postfix-sasl' action 'iptables-multiport': Error stopping action
2020-03-02 08:44:23,345 fail2ban.jail           [874]: INFO    Jail 'postfix-sasl' stopped
2020-03-02 08:44:24,116 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports pop3,pop3s,imap,imaps,submission,sieve -j f2b-dovecot
iptables -w -F f2b-dovecot
2020-03-02 08:44:24,117 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports pop3,pop3s,imap,imaps,submission,sieve -j f2b-dovecot
iptables -w -F f2b-dovecot
iptables -w -X f2b-dovecot -- stderr: b"iptables v1.6.0: Couldn't load target `f2b-dovecot':No such file or directory\n\nTry `iptables -h' or 'iptables --help' for mor$
2020-03-02 08:44:24,117 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports pop3,pop3s,imap,imaps,submission,sieve -j f2b-dovecot
iptables -w -F f2b-dovecot
iptables -w -X f2b-dovecot -- returned 1
2020-03-02 08:44:24,117 fail2ban.actions        [874]: ERROR   Failed to stop jail 'dovecot' action 'iptables-multiport': Error stopping action
2020-03-02 08:44:24,117 fail2ban.jail           [874]: INFO    Jail 'dovecot' stopped
2020-03-02 08:44:24,447 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -j f2b-pam-generic
iptables -w -F f2b-pam-generic
iptables -w -X f2b-pam-generic -- stdout: b''
2020-03-02 08:44:24,447 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -j f2b-pam-generic
iptables -w -F f2b-pam-generic
iptables -w -X f2b-pam-generic -- stderr: b"iptables v1.6.0: Couldn't load target `f2b-pam-generic':No such file or directory\n\nTry `iptables -h' or 'iptables --help'$
2020-03-02 08:44:24,447 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -j f2b-pam-generic
iptables -w -F f2b-pam-generic
iptables -w -X f2b-pam-generic -- returned 1
2020-03-02 08:44:24,448 fail2ban.actions        [874]: ERROR   Failed to stop jail 'pam-generic' action 'iptables-allports': Error stopping action
2020-03-02 08:44:24,448 fail2ban.jail           [874]: INFO    Jail 'pam-generic' stopped
2020-03-02 08:44:24,777 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports ssh -j f2b-sshd
2020-03-02 08:44:24,777 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports ssh -j f2b-sshd
iptables -w -F f2b-sshd
iptables -w -X f2b-sshd -- stderr: b"iptables v1.6.0: Couldn't load target `f2b-sshd':No such file or directory\n\nTry `iptables -h' or 'iptables --help' for more info$
2020-03-02 08:44:24,777 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports ssh -j f2b-sshd
iptables -w -F f2b-sshd
iptables -w -X f2b-sshd -- returned 1
2020-03-02 08:44:24,778 fail2ban.actions        [874]: ERROR   Failed to stop jail 'sshd' action 'iptables-multiport': Error stopping action
2020-03-02 08:44:24,778 fail2ban.jail           [874]: INFO    Jail 'sshd' stopped
2020-03-02 08:44:24,995 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports http,https -j f2b-nginx-http-auth
iptables -w -F f2b-nginx-http-auth
iptables -w -X f2b-nginx-http-auth -- stdout: b''
2020-03-02 08:44:24,995 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports http,https -j f2b-nginx-http-auth
iptables -w -F f2b-nginx-http-auth
iptables -w -X f2b-nginx-http-auth -- stderr: b"iptables v1.6.0: Couldn't load target `f2b-nginx-http-auth':No such file or directory\n\nTry `iptables -h' or 'iptables$
2020-03-02 08:44:24,995 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports http,https -j f2b-nginx-http-auth
iptables -w -F f2b-nginx-http-auth
iptables -w -X f2b-nginx-http-auth -- returned 1
2020-03-02 08:44:24,995 fail2ban.actions        [874]: ERROR   Failed to stop jail 'nginx-http-auth' action 'iptables-multiport': Error stopping action
2020-03-02 08:44:24,996 fail2ban.jail           [874]: INFO    Jail 'nginx-http-auth' stopped
2020-03-02 08:44:25,150 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports smtp,submission -j f2b-postfix
iptables -w -F f2b-postfix
iptables -w -X f2b-postfix -- stdout: b''
2020-03-02 08:44:25,151 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports smtp,submission -j f2b-postfix
iptables -w -F f2b-postfix
iptables -w -X f2b-postfix -- stderr: b"iptables v1.6.0: Couldn't load target `f2b-postfix':No such file or directory\n\nTry `iptables -h' or 'iptables --help' for mor$
2020-03-02 08:44:25,151 fail2ban.action         [874]: ERROR   iptables -w -D INPUT -p tcp -m multiport --dports smtp,submission -j f2b-postfix
iptables -w -F f2b-postfix
iptables -w -X f2b-postfix -- returned 1
2020-03-02 08:44:25,151 fail2ban.actions        [874]: ERROR   Failed to stop jail 'postfix' action 'iptables-multiport': Error stopping action
2020-03-02 08:44:25,151 fail2ban.jail           [874]: INFO    Jail 'postfix' stopped
2020-03-02 08:44:25,153 fail2ban.server         [874]: INFO    Exiting Fail2ban
2020-03-02 08:45:02,426 fail2ban.server         [823]: INFO    Changed logging target to /var/log/fail2ban.log for Fail2ban v0.9.6
2020-03-02 08:45:03,617 fail2ban.database       [823]: INFO    Connected to fail2ban persistent database '/var/lib/fail2ban/fail2ban.sqlite3'
2020-03-02 08:45:03,626 fail2ban.jail           [823]: INFO    Creating new jail 'sshd'
2020-03-02 08:45:04,035 fail2ban.jail           [823]: INFO    Jail 'sshd' uses pyinotify {}
2020-03-02 08:45:04,061 fail2ban.jail           [823]: INFO    Initiated 'pyinotify' backend
2020-03-02 08:45:04,062 fail2ban.actions        [823]: INFO    Set banTime = 600
2020-03-02 08:45:04,084 fail2ban.filter         [823]: INFO    Added logfile = /var/log/auth.log
2020-03-02 08:45:04,086 fail2ban.filter         [823]: INFO    Set maxRetry = 10
2020-03-02 08:45:04,086 fail2ban.filter         [823]: INFO    Set findtime = 600
2020-03-02 08:45:04,086 fail2ban.filter         [823]: INFO    Set jail log file encoding to UTF-8
2020-03-02 08:45:04,086 fail2ban.filter         [823]: INFO    Set maxlines = 10
2020-03-02 08:45:04,153 fail2ban.server         [823]: INFO    Jail sshd is not a JournalFilter instance
2020-03-02 08:45:04,157 fail2ban.jail           [823]: INFO    Creating new jail 'sshd-ddos'
2020-03-02 08:45:04,157 fail2ban.jail           [823]: INFO    Jail 'sshd-ddos' uses pyinotify {}
2020-03-02 08:45:04,161 fail2ban.jail           [823]: INFO    Initiated 'pyinotify' backend
2020-03-02 08:45:04,162 fail2ban.actions        [823]: INFO    Set banTime = 600
2020-03-02 08:45:04,162 fail2ban.filter         [823]: INFO    Added logfile = /var/log/auth.log
2020-03-02 08:45:04,163 fail2ban.filter         [823]: INFO    Set maxRetry = 10
2020-03-02 08:45:04,163 fail2ban.filter         [823]: INFO    Set findtime = 600
2020-03-02 08:45:04,163 fail2ban.filter         [823]: INFO    Set jail log file encoding to UTF-8
2020-03-02 08:45:04,165 fail2ban.server         [823]: INFO    Jail sshd-ddos is not a JournalFilter instance
2020-03-02 08:45:04,168 fail2ban.jail           [823]: INFO    Creating new jail 'nginx-http-auth'
2020-03-02 08:45:04,168 fail2ban.jail           [823]: INFO    Jail 'nginx-http-auth' uses pyinotify {}
2020-03-02 08:45:04,172 fail2ban.jail           [823]: INFO    Initiated 'pyinotify' backend
2020-03-02 08:45:04,173 fail2ban.actions        [823]: INFO    Set banTime = 600

J’ai réinstallé via un backup mais rien ne change…

Du coup, je suis un peu perdu. Même carrément…
Merci d’avance!

Hello @jean!
Vu que tu as accès en SSH, est-ce que tu peux vérifier si des services sont tombés ?

sudo yunohost service status
Est-ce que tu es derrière une box internet ? Les redirections de port sont bien configurées ?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.