Skip to main content
DanieleS99
Explorer
September 6, 2023
Question

Fortigate and filezilla in active mode

  • September 6, 2023
  • 6 replies
  • 6420 views

Hi,

I want to understand what is the right behavior of the Fortigate in a scenario where I have an FTP server and a filezilla client that use the "ACTIVE" mode.

the client is on the INSIDE interface and the FTP server is in DMZ.

I create a rule for allow the traffic from INSIDE to port 21 in DMZ.

Do i need a rule from DMZ to INSIDE? I see that FTP server use source port 20 and client destination port random >1024.

 

 

6 replies

Contributor III
September 6, 2023

Hello DanieleS99,

 

Please check the below guide.

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Allowing-FTPs-over-FortiGate-FTPs-sFTP-SFTP/ta-p/224345

Yes in active mode you've to explicitly open the FTP port communication from server to client otherwise it will not work.

 

spoojary
Staff
Staff
September 6, 2023

In a scenario with an FTP server in the DMZ and an FTP client on the INSIDE using active mode, you should:

  1. Allow outbound traffic from the INSIDE to the DMZ on port 21 (FTP control channel).
  2. Enable the FTP session helper on your FortiGate firewall to automatically handle related data channel connections.

You generally don't need explicit rules for the FTP server to initiate connections back to the client on high-numbered ports. The FTP session helper should manage this for you.

DanieleS99
Explorer
September 6, 2023

How Can I enable the FTP session helper? Or how Can I verify that is enabled and in working? I tried to search in internet without results..

Thanks

hbac
Staff
Staff
September 6, 2023

Hi @DanieleS99

 

You can run the following commands to verify. It should be enabled by default: 

# show full system session-helper | grep ftp -f

# show full firewall service custom | grep FTP -f

 

Regards, 

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!