Contents

How to Port Forward FTP on MikroTik

How to Port Forward FTP on MikroTik Router

Port forwarding FTP on a MikroTik router allows external users to access an internal FTP server. This guide explains how to forward port 21 (default for FTP) to an internal machine using Winbox/WebFig or CLI.


  • MikroTik router with access to the internet
  • Internal FTP server (e.g., 10.22.1.1)
  • Administrator access to MikroTik (Winbox or Terminal)

Navigate to:

IP → Firewall → NAT

Click the "+" button to add a new rule.

  • Chain: dstnat
  • Protocol: tcp
  • Dst. Port: 21 mikrotik add port forward
  • Action: dst-nat
  • To Addresses: 10.22.1.1 (your internal FTP server)
  • To Ports: 21

mikrotik add port forward

Click OK to save.


If your FTP server uses passive mode, you also need to forward the passive port range (e.g., 50000–50100). Add another NAT rule:

  • Protocol: tcp
  • Dst. Port: 50000-50100
  • Action: dst-nat
  • To Address: 10.22.1.1

The MikroTik FTP connection tracking helper assists with passive FTP connections.

To verify it’s enabled:

/ip firewall service-port print

Ensure the ftp service is listed and enabled=yes.


From an external network:

ftp your-public-ip

Or use an FTP client like FileZilla, connecting to:

  • Host: your-public-ip
  • Port: 21
  • Username/Password: (as configured on your FTP server)

  • Ensure your internal firewall (on the FTP server) allows FTP traffic.
  • Avoid using the default port (21) publicly if possible — consider port mapping for security.

/ip firewall nat add chain=dstnat protocol=tcp dst-port=21 action=dst-nat to-addresses=10.22.1.1 to-ports=21
/ip firewall nat add chain=dstnat protocol=tcp dst-port=50000-50100 action=dst-nat to-addresses=10.22.1.1

Your MikroTik router should now forward FTP traffic correctly to your internal server.