Greenbone-scapdata-sync et al timing out on ipv6


I noticed that the rsync invocation in greenbone-scapdata-sync (and the other sync scripts) is taking along time, since it tries ipv6 first:

% strace: Process 17996 attached
connect(3, {sa_family=AF_INET6, sin6_port=htons(873), inet_pton(AF_INET6, "2a01:130:2000:127::d1", &sin6_addr), sin6_flowinfo=htonl(0), sin6_scope_id=0}, 28^Cstrace: Process 17996 detached

Is there a way to force it to use IPv4?


Then you have a connectivity Issue with your network. If you host has an IPv6 address then you should connect IPv6, or your internet connection is broken :wink: Keep in mind, IPv4 is a legacy protocol and IPv6 should be priority.