Howto share container ftp from LXD HOST to internet?

I use proxy on LXD HOST command

lxc config device add <container> <proxy device name> proxy nat=true listen=tcp:<lxd.host.ip>:21 connect=tcp:0.0.0.0:21

with static container IP
but when I connect to ftp I got errors

    Server sent passive reply with unroutable address. Using server address instead

GnuTLS error -110: The TLS connection was non-properly terminated.

    The data connection could not be established: ECONNABORTED - Connection aborted

What am I doing wrong?

You probably need to configure your FTP server’s config to use the lxd.host.ip as the passive response IP, as otherwise it’ll be using its own private IP.

I use proftpd with
MasqueradeAddress lxd.host.ip
I do also
PassivePorts 49152 65534

and on HOST

lxc config device add <container> <proxy device name> proxy listen=tcp:<lxd.host.ip>:49152-65534 connect=tcp:0.0.0.0:49152-65534

And is lxd.host.ip the same IP being used by the FTP client?

yes lxd.host.ip is setup in client ftp config filezilla

Can you find out what the unroutable address is?