I have FTP server configured on my Windows 10.
When I turn off my Windows Firewall I can access the FTP server from other machines on the same LAN. But when I turn on the firewall, I cannot access the FTP.
These are my firewall inbound rules that I feel are specific to my issue (I was thinking to snip and share full windows firewall rule list. But its huge. Please point me to any other rule that I need to tweak. I will snip it and share here.)
Please tell me what is ill configured.
(Am on Windows 10)
Best Answer
For FTP you will want to ensure you open both TCP ports
20
and21
. Additionally, if the server service running on the machine uses passive mode, then you will also need to open up the TCP port range the FTP server is configured to use.Command Line Firewall (this section should fix the problem)
Run the below in command line elevated as administrator to create a Windows Firewall rule allowing inbound traffic to your FTP server service to communicate on the applicable command and data ports for any IP address and any profile scope of Windows OS classified networks.
You need to specify the
program="<C:\FTPServer\FTPServer.exe>"
value appropriate to your server or else use theservice=<ftpsvc>
in its place instead pointing to the service name instead.Run the below to disable stateful FTP filtering so that the firewall does not block any FTP traffic so you don't need to open up the entire passive port range to allow that traffic.
Windows Firewall GUI
Be sure that you have the scope defined in the rules so the IP address range of the LAN are allowed through or else allow any IP address through. Lastly, you will want to ensure the network adapters on the server are configured in a profile the firewall rule allows.
Further Resources