Hallo Ubuntuusers,
auf einem kleinen Server betreibe ich die Dienste Postfix, Dovecot, SSH, MySQL Sieve und NGINX. Der Server ist über eine IPv4 und eine IPv6 Adresse erreichbar.
Heute habe ich festgestellt, dass nicht alle Dienste antworten wenn sie auf IPv6 angesprochen werden, obwohl sie laut netstat auch über IPv6 auf ihrem Port lauschen. Im folgenden Codeblock gebe ich einmal die Liste der Dienste und versuche mich via telnet mit diesen zu verbinden. Dies versuche ich einmal über die 127.0.0.1 und einmal über die ::1. Man beachte das unterschiedliche Verhalten der Dienste.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | user@server:~$ sudo netstat -tulpen Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 0 3102948964 1515/master tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 0 16378785 2059/nginx tcp 0 0 0.0.0.0:4190 0.0.0.0:* LISTEN 0 3097769441 544/dovecot tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 0 3097769517 544/dovecot tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 115 3098328820 605/mysqld tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 0 3102949140 1515/master tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 0 3097769511 544/dovecot tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 0 16378780 2059/nginx tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 3097766721 547/sshd tcp6 0 0 :::25 :::* LISTEN 0 3102948969 1515/master tcp6 0 0 :::4190 :::* LISTEN 0 3097769446 544/dovecot tcp6 0 0 :::993 :::* LISTEN 0 3097769520 544/dovecot tcp6 0 0 :::587 :::* LISTEN 0 3102949154 1515/master tcp6 0 0 :::143 :::* LISTEN 0 3097769514 544/dovecot tcp6 0 0 :::22 :::* LISTEN 0 3097766741 547/sshd user@server:~$ telnet 127.0.0.1 25 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. 220 host.example.com ESMTP quit 221 2.0.0 Bye Connection closed by foreign host. user@server:~$ telnet ::1 25 Trying ::1... ^C user@server:~$ telnet 127.0.0.1 443 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. ^] telnet> quit Connection closed. user@server:~$ telnet ::1 443 Trying ::1... ^C user@server:~$ telnet 127.0.0.1 4190 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. "IMPLEMENTATION" "Dovecot (Ubuntu) Pigeonhole" "SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave" "NOTIFY" "mailto" "SASL" "PLAIN LOGIN" "STARTTLS" "VERSION" "1.0" OK "Dovecot (Ubuntu) ready." ^] telnet> quit Connection closed. user@server:~$ telnet ::1 4190 Trying ::1... ^C user@server:~$ telnet ::1 22 Trying ::1... Connected to ::1. Escape character is '^]'. SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 ^] telnet> quit Connection closed. user@server:~$ |
Der SSH-Dienst ist der einzige, der auch auf Anfragen auf die ::1 antwortet. Alle anderen Anfragen laufen in einen Timeout, wenn ich sie nicht vorher durch Strg+C abbreche.
Hat von euch jemand eine Idee woran das liegt?
MfG Tronde