Justin Piszcz
2013-04-23 22:00:02 UTC
Hello,
Aside from changing lftp to disable IPv6 support, is there a way to disable
IPv6 for transfers or to prefer IPv4 for the initial connection? By
default if IPv6 module/option is loaded in the Linux kernel it tries IPv6
first, can this be made an option to use one first over the other and/or
use IPv4 or IPv6 explicitly?
Example, when I tried to download this Linux ISO, it stalls for some time
before it re-connects and tries the IPv4 address.
lftp :~> get
http://ftp.heanet.ie/pub/scientific/livecd/64/x86_64/SL-64-x86_64-2013-04-17-LiveCD.iso
---- Connecting to ftp.heanet.ie (2001:770:18:aa40::c101:c140) port 80
`...86_64-2013-04-17-LiveCD.iso' at 0 [Connecting...]
**** Socket error (Connection timed out) - reconnecting
---- Closing HTTP connection
---- Connecting to ftp.heanet.ie (193.1.193.64) port 80
---- Sending request...
(then it succeeds)
$ host ftp.heanet.ie
ftp.heanet.ie has address 193.1.193.64
ftp.heanet.ie has IPv6 address 2001:770:18:aa40::c101:c140
Justin.
Aside from changing lftp to disable IPv6 support, is there a way to disable
IPv6 for transfers or to prefer IPv4 for the initial connection? By
default if IPv6 module/option is loaded in the Linux kernel it tries IPv6
first, can this be made an option to use one first over the other and/or
use IPv4 or IPv6 explicitly?
Example, when I tried to download this Linux ISO, it stalls for some time
before it re-connects and tries the IPv4 address.
lftp :~> get
http://ftp.heanet.ie/pub/scientific/livecd/64/x86_64/SL-64-x86_64-2013-04-17-LiveCD.iso
---- Connecting to ftp.heanet.ie (2001:770:18:aa40::c101:c140) port 80
`...86_64-2013-04-17-LiveCD.iso' at 0 [Connecting...]
**** Socket error (Connection timed out) - reconnecting
---- Closing HTTP connection
---- Connecting to ftp.heanet.ie (193.1.193.64) port 80
---- Sending request...
(then it succeeds)
$ host ftp.heanet.ie
ftp.heanet.ie has address 193.1.193.64
ftp.heanet.ie has IPv6 address 2001:770:18:aa40::c101:c140
Justin.