Inhalt
Systemweit
echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.d/disableipv6.conf
SSH
echo AddressFamily inet >> /etc/ssh/sshd_conf
Postfix
postconf -e inet_protocols=ipv4
Inhalt
echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.d/disableipv6.conf
echo AddressFamily inet >> /etc/ssh/sshd_conf
postconf -e inet_protocols=ipv4
1 Kommentar
Hi Christian,
du willst das Systemweite deaktivieren von ipv6 gar nicht. Das führt unter aktuellen Systemen dazu das einige Dienste die mit ::1 kommunizieren nicht mehr funktionieren ein Beispiel dafür ist ssh -X.
https://blog.chr.istoph.de/disable-ipv6-aus-sicherheitsgrunden/