strange thing.
tested with lxd 4.0.3 and 4.4, ubuntu18 host, ubuntu20.04/18.04 container.
unable to use active ftp connexion from the container.
only passive connection work.
can connect, enter user, password, but dir command block and return error, and disconnect.
the only way to work is to enter pass command to set passive ftp.
tried from host to same external ftp servers, and active ftp work.
problems occurs only from the container.
problem with port 20…?
container creation from fresh ubuntu 18.04 updated/upgraded:
snap install lxd --channel=4.0/stable (also tested latest/stable)
lxd init (all defaut config)
lxc launch ubuntu:20.04 store
lxc exec store – /bin/bash
apt update
apt upgrade
ftp external server
Connected to server.
Name : username
331 Password required for username
Password:
230 User username logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
200 PORT command successful
and wait to
425 Unable to build data connection: Connection timed out
ftp>exit
450 LIST: Connection timed out