How To Setup A Ftp Server On Windows Server 2008
- How to set up an FTP server
FTP functions on a customer-server model. The server hosts the files to be shared and the client provides the interface to admission, download, or upload files to the file server. The computers transferring the files can be within the same network where the FTP server is configured, also as outside the network (over the internet). FTP uses 2 ports, 1 for connection and ane for sending data.
FTP can run in two modes: active and passive. And, information technology uses ii channels between the customer and server: the control aqueduct and the data channel. The control channel is for sending the commands and responses, and the data aqueduct is for sending the actual data. As for active and passive modes, in active mode, the client launches the command channel, and the server establishes the information aqueduct. In passive fashion, both the command and data channels are established by the client.
Well-nigh organizations prefer passive manner. In this mode, the customer initiates both channels; therefore, the arrangement has little or no alterations to make on the client firewall. The connection is from the customer to the server, and the data volition exist return traffic to the client. Overall, organizations can let their users (clients) to connect to FTP servers without compromising network security.
- Setting up FTP in passive mode
Primarily, the command channel is opened by the client to the FTP server on port 21. The client also opens 2 random, unprivileged ports on the client (typically a port greater than 1023). We'll call the first port P and the 2nd port P+i. The FTP client initiates the connection to the server by sending a PASV control. The client connects to the server from port P to server port 21 with the PASV control. The server then opens some other unprivileged port Q (any port greater than 1023) and sends the port data dorsum equally a answer to the PASV command. Now the client initiates the connexion from port P+1 to port Q on the server to get-go the data transfer.
Steps:
- The customer contacts the server using the PASV command on port 21.
- The server replies using port 2000. Here, port 2000 is the port the server will be listening to for the data connection.
- The client initiates the connexion from port 1025 to 2000 (on the server).
- The server sends back the ACK (acknowledgement).
- Opening upward channels on FTP customer and server
Client side: Data and other communications from the client should reach the FTP server. Make sure you let outgoing data and other communications from the client to go to the FTP server.
Server side: Port 21 should be open up, as it receives the PASV command for initiating the connection. The port used by the server to respond to the client can exist annihilation between Port 22 to 1022. Because the FTP server specifies a random port (anything greater than 1023), those ports should be open for advice.
Prerequisites
- FTP depends on IIS (Internet Data Services). Both IIS and FTP services should be installed for the configuration of the FTP server.
- A root folder is required for FTP publishing. The binder can exist created under:
- Side by side, y'all need to set permissions to allow anonymous access to the folder. Use the following command on a CMD prompt to grant access:
%SystemDrive%\ftp\ftproot
"ICACLS "%SystemDrive%\ftp\ftproot" /Grant IUSR:R /T"
"%SystemDrive%\ ftp \ftproot"
Or the path to the root folder should be set as the path for your FTP site. Even the software firewall (like Windows firewall or Symantec) should permit connections to the FTP server.
- Enabling FTP in Windows if IIS is not installed
In this example, nosotros'll use Windows Server 2008 R2 to configure FTP.
If IIS is not installed:
- Navigate to Commencement > Control Console > Authoritative Tools > Server Manager in Windows Server Manager.
- Get to Roles node. Right-click on Roles and click Add together Roles.
- In the Add Roles window, open up Server Roles and check Web Server (IIS).
- Proceed through the setup wizard and click Install. Wait for the installation to complete.
- Enabling FTP in Windows if IIS is already installed as a web server
- Navigate to Start > Control Panel > Authoritative Tools > Server Manager.
- In the Windows Server Managing director, go to Roles node, and expand Web Server (IIS).
- Right-click on Web Server (IIS), and click on Add Role Services.
- In the Add Role Services window, get to Roles Services, and check FTP Server.
- Ostend IIS Management Console is checked under Management Tools.
- Click Next, and then Install, and look for the installation to consummate.
- Transferring files
To transfer files, you should add an FTP site. Once the FTP site is enabled, clients tin transfer to and from the site using the FTP protocol.
- Setting upwards an FTP site
- Navigate to Beginning > Command Panel > Authoritative Tools > Internet Information Services (IIS) Director.
- In one case the IIS console is open up, aggrandize the local server.
- Correct-click on Sites, and click on Add together FTP Site.
- In the Add FTP Site window, type the FTP server name and the content directory path, and click Next. The directory path should be the same as the ane we set permissions to let bearding access. In a higher place, we used:
- In the Binding and SSL Settings window, type the IP accost of the server. Bank check the Starting time FTP Site Automatically option. Choose SSL Based on Constraint. Click Adjacent.
- At present, select Basic for authentication.
- Click Finish. Now, the FTP site cosmos is complete.
%SystemDrive%\ ftp \ftproot
- How does FTP basic authentication work?
Bones authentication means in that location'south no encryption used. Thus, username/password are sent in clear text. Basic hallmark matches the username/password from the Active Directory database. You lot can also create accounts in IIS. This can be done from under Management Tools in Web Server (IIS) part.
Under Authority, you can select All Users to allow FTP access to all users from the domain. Also, check both Read and Write under Permissions Based on Requirement.
- Accessing files on the FTP server
To access files on the FTP server, open a file explorer and type ftp://serverIP. The FTP server asks for a username and password. Enter the username and password (Windows or Active Directory credentials) and click Logon. The files and folders display under the FTP server.
Source: https://www.serv-u.com/ftp-server-windows/server-setup
Posted by: chadwickablemplaid.blogspot.com
0 Response to "How To Setup A Ftp Server On Windows Server 2008"
Post a Comment