Question
Passive FTP & port forwarding
Hi, I have a ftp, dns, mail and a web server (different machines) behind fortigate 60 fortios 3 mr2. I have only one public IP address so I must use VIP port forwarding. Web server, mail server, dns and active ftp works with VIP. Simply ; Port 80 -> web server ip Port 25 -> mail server ip Port 53 -> dns ip Port 21 -> ftp ip Also there are firewall policies external -> web VIP (nat is not checked) external -> mail VIP (nat is not checeked) external -> dns VIP (nat is not checked) external -> ftp VIP (nat is not checked) Nat is not checeked because in server logs I can see which " real" IP' s were connected to my servers. If I check nat it also works but I can only see my fortigate is connecting to my servers. But there is an exception fortigate translating address and port for ftp anyway. This doesn' t disturb active ftp sessions because server connects to client. To employ passive connections I firstly make the ftp server to use defined passive ports (let' s say 5000-5050). Then I add a VIP to fortigate: port 5000-5050 -> ftp server (5000-5050) and a firewall policy external -> passive ftp (nat is not checked) and the result is " it doesn' t work" :) The problem is client enters pasv and the server replies with port to connect but fortigate translates it. For example: The server replies port 5012. Fortigate translates it to 10321. Client tries to connect 10321 but there is no VIP with port forwarding on this port. VIP is between the ports 5000-5050. Any suggestions to make passive connection work? Thanks in advance. Batuhan Kisacikoglu
