Set SFTP destination to use IPv4 only?
Hi,
Sometime in the past two weeks, something changed that has forced two of my servers to attempt to connect to my offsite backup system using IPv6 (the server hosting the offsite does not support IPv6). Since then the remote backup destination has failed with a connection timeout and I've had to manually transfer the files.
I can verify the offsite server is reachable from the servers by manually connecting via the command line. Using just the SFTP command it tries and eventually fails to connect via IPv6, then attempts to connect on IPv4, and does so without any delay.
I thought I might be able to workaround the issue by extending the timeout on the remote destination but that didn't work, no matter what value I set.
If I manually attempt to connect using the -4 flag on the SFTP command, I'm connected without any delay.
Is there anyway to force the backup system to use IPv4 for SFTP remote destinations?
Thanks,
Michael
-
Hello Michael, When configuring the SFTP backup destination, can you try entering the specific IPv4 address as the host instead of the hostname to see if that helps? Thank you. 0 -
Such a simple solution, didn"t even consider it! This appears to work. Thanks! Michael 0 -
Hello, I'm glad to see that helped. Note that as far as the IPv6 configuration itself, here are a couple of third-party URLs you may find helpful: Forcing DNS lookups to use IPv4 instead of IPv6 - CentOS Thank you. 0
Please sign in to leave a comment.
Comments
3 comments