Configure FTP ( Firewall ) - Windows Server 2008 R2

In the first place i tried this option :

Windows Firewall and non-secure FTP traffic Windows firewall can be configured from command line using netsh command. 2 simple steps are required to setup Windows Firewall to allow non-secure FTP traffic 1) Open port 21 on the firewall netsh advfirewall firewall add rule name="FTP (no SSL)" action=allow protocol=TCP dir=in localport=21 2) Activate firewall application filter for FTP (aka Stateful FTP) that will dynamically open ports for data connections netsh advfirewall set global StatefulFtp enable
but this only let me to connect sucessfully (with credentials), but allways gives me D ECONNABORTED - Connection aborted Erro: Failed to obtain the folder list so i search over the internet and found this tip,
You need to allow the ftp server through the firewall. The default entry in the firewall is incorrect. Assuming you already have the correct ports open, you also need to do the following: Search for 'firewall' in the start menu search Click on 'Allow a program through Windows Firewall' There is a default entry for 'FTP Server', however this is NOT the one you need. In fact, if you have a look at the windows service for the FTP server, it is invoked via svchost.exe. Click on the 'Allow another program...' button, and enter C:\Windows\System32\svchost.exe. Once you have added this entry, tick the checkbox for both Home/Work and Public profiles. This will allow you to successfully use the FTP server with the firewall turned on.
and now i can connect and get the folder list

0 comentários:

Enviar um comentário