Using Windows Firewall with non-secure FTP traffic:
To configure Windows Firewall to allow non-secure FTP traffic, use the following steps:
Open a command prompt: click Start, then All Programs, then Accessories, then Command Prompt.
To open port 21 on the firewall, type the following syntax then hit enter:
Console
netsh advfirewall firewall add rule name="FTP (non-SSL)" action=allow protocol=TCP dir=in localport=21
To enable stateful FTP filtering that will dynamically open ports for data connections, type the following syntax then hit enter:
Console
netsh advfirewall set global StatefulFtp enable
Using Windows Firewall with secure FTP over SSL (FTPS) traffic:
Open a command prompt: click Start, then All Programs, then Accessories, then Command Prompt.
To configure the firewall to allow the FTP service to listen on all ports that it opens, type the following syntax then hit enter:
Console
netsh advfirewall firewall add rule name="FTP for IIS7" service=ftpsvc action=allow protocol=TCP dir=in
To disable stateful FTP filtering so that Windows Firewall will not block FTP traffic, type the following syntax then hit enter:
Console
netsh advfirewall set global StatefulFtp disable
join our telegram channel: https://t.me/techiezero
Watch video how to fix FTP Folder Error | Windows Firewall inbound rule | online without registration, duration hours minute second in high quality. This video was added by user techie zero 26 October 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,776 once and liked it 25 people.