To solve this, use either sftp or ftps. Both use SSL to help secure the connection. There are arguments for either sftp or ftps, but I will describe setting up ftps because it is rather simple and easy to install/configure.
This setup uses both the filezilla server and the filezilla client. Part 1 describe configuring the ftpd (the server or daemon). Part 2 describes how to set up the client.
Part 1: the server
Configure the server for SSL support:
- Download and install the filezilla server. Use google to find the download site.
- You will probably want to set this up to "Install as a service, start with Windows"
- Bring up the Filezilla Server, and open Edit > Setting
- Under General settings, choose a non-default port (adds security): 2121
- Under General settings > Welcome message, alter the welcome message as you desire. This is the message that is displayed to the incoming client requests.
- Under Passive mode settings:
- Select "Use custom port range" and enter a range (for example 54054 - 54084)
- Select "Use the following IP" and enter your hostname
- This should be your external hostname assuming you are using DDNS
- You then need to configure port forwarding for the port you previously specified [2121] and the port range to this host's local IP address
- Under SSL/TLS settings, select "Enable FTP over SSL/TLS support (FTPS) and click "Generate new certificate..."
- In the dialog box, enter "US" for the country code
- Click Browse next to Save key and certificate to this file". Browse to "C:\Program Files (x86)\FileZilla Server" and click Save. Click "Gernerate certificate".
- Fill in whatever other fields you wish
- and click "Generate certificate"
- Back on the SSL/TLS settings screen, select both "Allow explicit FTP over TLS" and "Disallow plain unencrypted FTP"
- Click OK
- Restart the server
Assuming the Windows firewall on Windows 7, here are the steps I followed:
- Start -> Windows Firewall with Advanced Security
- Inbound Rules
- New Rule...
- Select Port, click Next
- Select Specific local ports" and enter "2121, 54054-54084" (matching the ports for the server above). Click Next
- Select "Allow the connection", click Next
- Select all options for "When does this rule apply" and click Next
- Provide a name (for example ftpes), click Finish
Create your user account (at least one account):
- Edit > Settings > Users
- Click Add to create the user
- Enter a username and click OK
- Select the Password checkbox and enter a password
- Check "Force SSL for user login"
- Click Shared folders on the left
- Click Add to create the home directory and browse to the location you want to assign as the users home directory. Click OK
- Add any aliases to point at other disks or directories as needed
- Select the user permission (leave the default settings for read-only access or select all for read/write access)
- Click OK
Part 2: the client
Install the filezilla client
- Download and install the filezilla client. Use google to find the download site.
- Run the install and accept all the defaults
- Start the filezilla client
- Enter ftpes::/<hostname or ipaddress> into the Host field
- Enter the username and passwords
- Enter the port you defined in the server in the port field
- Press enter
No comments:
Post a Comment