Windows Server 2012 r2 firewall settings for FTP in active mode

firewallftpiisiis-7.5windows

I have created an FTP site in Windows Server 2012 R2. The server is hosted on a domain and the user is also on a domain. The FTP is configured on some random port 3586 and will work on Active Mode.

The FTP works fine on the local network but when I try to connect it from other network, FileZilla fails to retrieve directory listing where as the command line gets stuck at

150 opening ascii mode data connection.

I know my firewall settings are wrong but I don't know what to enter in local port settings and what to enter in remote port settings for Inbound and Outbound settings.

Can someone please help me how to set the Windows Server firewall settings. I will be much grateful

Thanks.

Best Answer

If you really need to use Active mode, you need to allow incoming data connecting on a local machine firewall.

Go to FileZilla settings and check what local ports it uses for the Active mode. Ideally restrict the range to a small set. And than open that range in local firewall.

Though, if you are using Passive mode capable client, you would use Passive mode and not Active one.