Skip to main content
martyyy
Explorer III
Aug 5, 2024 2:54 AM UTC
Question

FTP ALG

FOS 7.4.3

I have a client trying to use passive mode for FTP. This mode uses many ports, not just port 20/21.
Is there a Service on the Fortinet that allows FTP ALG? Currently we have this open to any ports

 

TIA :) 

3 replies

ozkanaltas
Valued Contributor III
Aug 5, 2024 8:56 AM UTC

Hello @martyyy ,

 

If I understand correctly, you want to use FTP helper for different TCP ports instead of 20/21. 

 

If you say yes, you can follow this document for your request. 

 

https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-access-FTP-server-externally-on-different/ta-p/195059

Translate
abelio
SuperUser
SuperUser
Aug 5, 2024 6:44 PM UTC

Hello martyyy

As under passive mode, ftp server just listen passively, you only need configure your server FTP properly in order to work in passive mode.  (*)
Your \FTP client configured in passive mode, client starts all connections, server passively listen 
Under FGT you have the usual vip config on port 20/21 


obs:

- we' re NOT talking here about FTP over TLS or another scenario.

- (*) for example, if you use a widely ftp server as VSFTPD, these 3 lines in server confg will take care of passive traffic for data transfer after fork

pasv_enable=Yes
pasv_max_port=40000
pasv_min_port=50000

 

 

 

 

 

Translate
muketsu
New Member
Aug 6, 2024 6:08 AM UTC

Actually there is a reason behind no option provided for disabling ALG for FTP protocol. In perspective of AppID, FTP cannot work without ALG for both active & passive modes.

Translate
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024