LAN Machines: FTP Connection Blocked by Firewall on Server 2019 - RRAS File Server Role
In this article, we will discuss a common issue faced by system administrators when trying to establish an FTP connection with LAN machines, where the connection is blocked by the firewall on a Server 2019 machine with the RRAS (Routing and Remote Access Service) File Server role installed. We will cover the key concepts related to this issue, provide detailed solutions, and include subtitles, paragraphs, and code blocks as needed.
Background
FTP (File Transfer Protocol) is a standard network protocol used for transferring files between a client and server over the internet. In a LAN (Local Area Network) environment, FTP can be used to transfer files between machines on the same network. However, when trying to establish an FTP connection between LAN machines, the connection may be blocked by the firewall on the server, especially if the server has the RRAS File Server role installed.
Issue
The issue arises when the firewall on the Server 2019 machine with the RRAS File Server role blocks the incoming FTP connection requests from LAN machines. This results in a failure to establish an FTP connection and transfer files between the machines.
Solution
The solution to this issue is to disable the firewall on the Server 2019 machine with the RRAS File Server role for incoming FTP connection requests. This can be done by following these steps:
- Open the Windows Defender Firewall with Advanced Security console.
- In the Inbound Rules section, look for the rule named "FTP Server (FTPSVC)".
- Right-click on the rule and select Properties.
- In the Properties window, go to the General tab and select the "Allow the connection" option.
- Click OK to save the changes.
Code Block
Here is an example of how to disable the firewall for incoming FTP connection requests using PowerShell:
Set-NetFirewallRule -DisplayName "FTP Server (FTPSVC)" -Action AllowIn this article, we discussed the issue of the firewall on a Server 2019 machine with the RRAS File Server role blocking incoming FTP connection requests from LAN machines. We provided a detailed solution to this issue, including subtitles, paragraphs, and code blocks as needed. We hope this article has been helpful in resolving this common issue faced by system administrators.