Johnie
June 23, 2023, 12:39pm
1
Getting this error when trying to sync nvt:
rsync: [Receiver] safe_read failed to read 1 bytes: Connection timed out (110)
rsync error: error in rsync protocol data stream (code 12) at io.c(282) [Receiver=3.2.7]
Can access feed.community.greenbone.net:873 :
timeout 5 bash -c “</dev/tcp/feed.community.greenbone.net/873” && echo “connection success” || echo “connection failed”
connection success
What might be the problem?
Kind regards
Lukas
June 26, 2023, 8:57am
2
Your internet connection, your routing, your firewall, CGN … etc… ?
Johnie
June 26, 2023, 11:48am
3
Thank you for the feedback.
Is there a verbose option to run the sync task/script in order to see what the problem might be?
Kind regards.
Lukas
June 26, 2023, 12:07pm
4
Debug it like any other TCP connection, use TCPDUMP so see what happens and where and why the connection is not working.
e.g.
tcpdump -i eth0 port 873 and host feed.community.greenbone.net
And you need to do a tcp connection with a differnt terminal like:
nc feed.community.greenbone.net 873
The rest is network debugging like any other TCP issue in the Internet.
Johnie
June 26, 2023, 12:33pm
5
Thank you for your quick response.
We can connect and do get the welcome message:
@RSYNCD : 31.0
Greenbone community feed server - . . .
This service is hosted by Greenbone Networks - . . .
All transactions are logged.
If you have any questions, please use the Greenbone community portal.
See https://community.greenbone.net for details.
By using this service you agree to our terms and conditions.
Only one sync per time, otherwise the source ip will be temporarily blocked.
I suspect it might be local files/access rights and will investigate further.
Kind regards