Hi all,
I have both IPv4 and IPv6 enabled on my server. For one of the websites a created an FTP account but I have trouble setting up a connection over IPv6.
Of cours I have added an access rule for the passive ports as mentioned in the docs but I still cannot connect via IPv6. In FileZilla I get the message "Connection refused by server". Via IPv4 everything works fine. See the two below logs:
IPv6
Status: Connecting to [2a04:3544:1000:1510:e0f6:e7ff:fe03:2498]:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is your current location
Command: TYPE I
Response: 200 TYPE is now 8-bit binary
Command: EPSV
Response: 229 Extended Passive mode OK (|||30711|)
Command: MLSD
Error: The data connection could not be established: ECONNREFUSED - Connection refused by server
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
IPv4
Status: Connecting to 5.22.208.30:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Status: Directory listing of "/" successful
In UFW the passive rules are listed for both IPv4 and IPv6 but even if I temporary disable UFW I still cannot connect.
Did anyone encountered a similar issue? And if so, how did you solve it?
If we only can connect via IPv4 that is also fine but then each domain should have, by default, a single A record 'ftp' pointing to the server otherwise it will only work for customers/networks which are not IPv6.