FTP cannot connect if i use the public ip

Hello,

I have completed the setup of the FTP on TrueNas Scale.

If I try to connect from my PC to the TrueNas FTP using the local IP “192.168.2.10,” then it connects normally and everything works.
https://prnt.sc/K2U1yem2jH84

If I try to connect with my public IP xxx.xxx.xxx.xxx:4444 with the same settings in the FTP client, then I get this message.
https://prnt.sc/VifTWST1ukZM

The port on my MIKROTIK router is functioning correctly, it’s open. below you can also see the port forward
https://prnt.sc/4fNknLkc1kER
https://prnt.sc/F5IIUFpp-4oO

Here’s the settings from TrueNas
https://prnt.sc/McM-YJUd04o5

Where do you think there might be a problem?

Thanks in advance,
Stefanos

/export file=anynameyouwish ( minus router serial number, any public WANIP information,keys etc.)

When using ftp you may consider learning about how ftp works, and how to use it properly.
It open up port’s that not being open.
Try to enable/disable PASV(Passive mode), first in you client app.
Then you can see in this picture how the traffic goes
ftp.png

Thank you all for your responses.

I have attached the file. I hope I did it correctly.

Below, I am writing to you in detail about my efforts regarding the port and the firewall rules.
/ip firewall nat add chain=dstnat protocol=tcp dst-address=PUBLIC_IP dst-port=21 action=dst-nat to-address=FTPSERVERIP to-port=21 comment=“FTP Server Port Forwarding”

/ip firewall filter add chain=input protocol=tcp dst-port=21 action=accept comment=“Allow FTP Control”
/ip firewall filter add chain=input protocol=tcp dst-port=50000-50007 action=accept comment=“Allow FTP Passive Data”

I hope I helped

My suggestion is not to use ftp, make i vpn server on the router, and make a vpn connection into your network.
It more secure and more newer and trendier.
And only open up one port to the router.

Thanks for your answer,
I found a hosting provider that allows me to install Vpn.
(I want to backup my cpanel to my local server)
I will always follow your advice.

Thank you for your reply, and please you can now mark this thread as solved.

At board style: Canvas

At board style: prosilver