https://kb.synology.com/en-au/DSM/help/DSM/AdminCenter/file_ftp_setting?version=7
21, 20

At Control Panel > File Services > FTP, you can enable FTP services to allow clients to access folders and data on the system. Before enabling FTP, make sure the following TCP ports of your router are being forwarded to the Synology NAS device: 21 (default control connection), 20 (data connection for active mode) and 55536-55567 (data connection for passive mode).