FTP connection settings file. How to use FileZilla - step by step instructions


Various protocols are used to transfer data between computers. To connect to the server where your website data is stored and work with it, the FTP data transfer protocol is usually used. To implement this feature, they use special clients, one of which is FileZilla.

You can download the FileZilla FTP client from our website. It is one of the popular programs that supports all operating systems and secure connection. In FileZilla it is called FTPS - protection using SSL or TLS, or SFTP - an extension of the SSH protocol.

To connect to a remote computer using SFTP, you must enter the same information as in normal mode (username, server address and password), but the port must be different, depending on the hosting provider. On some it may be 2222.

To log in via FTPS, an SSH connection is used, where instead of the server name, the domain is specified, as well as the username and password.

Sometimes the connection can be prohibited. To do this, log into the server or hosting control panel and close access in the FTP section.

How to connect to a website using FileZilla

Open FileZilla. The entire interface is in Russian, so there should be no problems. To gain access to directories and files of the hosting or site server, you must enter data that is usually sent by email from the hoster. Here's what to do in this case:

  • In the program, click the “File” button and go to the “Site Manager” section;
  • Click on the “New site” button;
  • On the right, enter the connection information:
    • Host – server address or name;
    • Port – usually 21;
    • Protocol – FTP or SFTP;
    • Encryption – choose according to the situation;
    • Input type – Normal;
    • User – the username was sent to you by email from the hosting provider;
    • Password – the password is also in the letter received from the hoster.
  • To connect to the web server you need to click the “Connect” button.

In the window at the top you can see the connection status. First comes authorization, then obtaining a list of directories and extracting them. If you enter data incorrectly, red lines with errors will appear.

After connecting, in the first section, called “Remote site”, directories will be available in a tree form. When you expand each folder, the contents of that folder appear in the lower section.

Now you can fully work with the files.

What actions can you perform with data in FileZilla?

  • Any file from the host can be downloaded to your computer, and if you download several files, they can be added to the task.
  • You can create directories and files on the server;
  • You can delete, rename and move files to different directories.
  • It is possible to set access rights.
  • In directories, you can set file attributes, this is the same as access rights.
  • Downloaded files can be re-uploaded to the host by dragging the file into the program window.

Why do I get the “Invalid login” error when logging in?

Most often, this problem is associated with an incorrectly entered password. If you go to your email, the document sent from the hoster contains the following information:

  • Login details for the control panel - usually they are the same as logging in via FTP;
  • Specific FTP login details – login, password and host address;
  • MySQL database login details.

You may have been unable to contact the host via FTP by any means. Try contacting your hosting provider's technical support.

It's worth trying to connect via a browser. If it works, then the problem is on the software side and it needs to either be restarted or reinstalled. To log in via FTP through a browser, you need to enter the following command in the address bar:

ftp://ftp_username:ftp_password@domain

Some browsers may not support this protocol; it is worth using modern browsers such as Google Chrome, Mozilla Firefox or Opera.

What to do if the file is not uploaded to the hosting or is uploaded empty

This is usually due to exceeding the disk space quota - a certain amount of storage allocated for each user. You can find out whether the quota has been exceeded in the control panel of the hoster or server. If this theory is confirmed, the tariff characteristics will have to be increased, namely the free space on the hard drive or SSD.

If it is impossible to create a directory, then make sure that the name is not Cyrillic.

When downloading files, there are times when they weigh too much, so the download does not proceed normally. Uploading files is small in size.

In contact with

Good day, dear readers! As you understand from the title, today we’ll talk about FileZilla Server and creating your own FTP server as such.

Lately, I have been receiving a lot of messages asking me to tell them how to set up my own FTP server at home (or not at home).

If someone suddenly doesn’t know what FTP is, you can find out in this article of mine “” or start reading right away (within this article there are a few words about the protocol itself).

Preparing to install your own FTP server

As promised, first, let’s briefly talk about what FTP is for those who don’t know:

I would like to immediately note that the article will consider the option of home use, without the tricky and subtle settings that are used in the case of full-fledged corporate servers.

To install, you need to download one of the multiple distributions that will help you deploy an FTP server. Personally, I recommend that you use FileZilla Server, because it, like the client I once mentioned (see the article at the link above), is extremely easy to install and configure, and is also free.

Installing FTP FileZilla Server

After downloading the distribution, actually run its installation (this means that you need to click on the downloaded exe file) and follow the recommendations below.

On the first window you need to agree to the license agreement, click “I Agree”.

  • Standard - option for installation from scratch for full server functionality.
  • Full - almost the same, but the source code of the program will also be copied to the installation folder, in case you want to change something in it.
  • Only FTP service (Service only) - the FTP service is installed directly, without accessing it through the interface. Useful if you plan to manage your file storage from another computer.
  • Control Interface(Interface only) - unlike the previous point, only the graphical server management shell is installed, but not the server itself. Use if you want to remotely access your FTP server.
  • Custom installation(Custom) - You are free to choose what you want to put on your computer.

On the next window you need to select the installation folder, for example, “ C:\Program Files\FileZilla Server" After selection, proceed to the next window (Next).

Now the installer will ask us to choose how to install and run the server.

There are three options:

  • How to start a service at login
  • How to start a service manually
  • Easy installation, run manually

It is recommended to choose the first or second option. The only difference is that in the second case, for the server to work, you will need to go to " Control Panel - Administration - Service Management", find the service there in the list and start it yourself by clicking on the start button.

Port and initial launch of FileZilla Server

In addition, at this stage you should specify the port through which the server management interface will be connected, that is, your administration console, so to speak, which will allow you to set settings, see who has connected where, etc. To increase security, change it from the standard one (14147) to something else.

Also, by default, the option to start the server after setup completes is checked. You can leave this checkbox or you can remove it. That's your business. Having done this, go to the last window using the Next button.

Here we select options for launching the interface.

There are again three of them:

  • When logging in, for all users
  • On login, for the current user
  • Manually

The first option will work if you are the only user of the computer where the server is installed, and you, in principle, will still launch the interface automatically under all operating system accounts or only under one.

The second is suitable for those who work on a computer more than once (that is, there are several accounts on the computer used by different people) and want no one else to manage their FTP server, that is, the interface can be launched only from the account in which they are currently and installation is carried out.

And the third option sets the launch parameter only manually, i.e. it will not start with the system at all.

Let me remind you that the interface is something like an administrative program that allows you to monitor the state of the server, start, stop and configure it.

Check mark ( Start Interface after setup completes) in this window, again, sets the interface to start immediately at the end of the installation.

Well, having dealt with all this, you can finally start installing the server (using, of course, the “Install” button) :)

Initial setup of FTP FileZilla Server

So, after installation, when you first launch the interface, a small window will appear where you need to specify the address and port for connection, as well as the administrator password (it is not there during the first installation). You can check the “Always connect to this server” option. Click "Ok".

I would like to emphasize that this is a connection to the server locally, namely, a connection to the administration interface, i.e. issuing the address 127.0.0.1 and port 14147 for a friend who wants to connect is useless. External addresses, passwords and logins required to connect to the server will be written about during the course of the article.

Now let's move on to the settings. This is done by going to "Edit -> Settings" or clicking on the button on the interface panel:

A settings window will open in front of you. On the first tab (General Settings) you can set the following parameters:

From top to bottom screenshot:

  • The port on which clients will connect to the server
  • Maximum number of clients
  • Number of threads
  • Various timeouts (three pieces)

For the purposes of this article, we are interested in the first two points. The port can be left as is, or you can change it to improve security, but then you will have to inform everyone about it who wants to connect.

The second setting is responsible for the maximum number of connections. By default, the parameter value is “0”, which means that their number is unlimited. It is worth changing this parameter if, for example, your Internet channel cannot cope with the load, because too many people are connecting to you.

The rest can be left unchanged, since the settings are optimal for home use.

You can find out the external IP address by contacting your provider, looking in the router settings, or simply using one of the many services, such as (as you probably guessed, you need what is written under the text “Your IP address:”; )).

Afterword

That's how things are.

Despite the fact that the article is maximally oriented for small home use, I tried to explain in as much detail as possible all the necessary settings and nuances of FileZilla Server.

As always, if you have any questions, additions, etc., write in the comments - I will be happy to help.

PS: For the existence of this article, special thanks to a friend of the project and a member of our team under the nickname “Kellis”

    Abbreviation FTP comes from English F ile T transfer P rotocol (file transfer protocol) is an application layer protocol for exchanging files over the TCP/IP transport protocol between two computers, an FTP client and an FTP server. This is one of the oldest, and yet still actively used protocol.

The FTP protocol is designed to solve the following problems:

  • access files and directories on remote hosts
  • ensuring client independence from the file system type of the remote computer
  • reliable data transmission
  • use of remote system resources.
  • The FTP protocol supports two connection channels at once - one for transfer teams and the results of their implementation, the other is for sharing data. With standard settings, the FTP server uses TCP port 21 to organize a channel for sending and receiving commands and TCP port 20 to organize a channel for receiving/transmitting data.

    The FTP server waits for connections from FTP clients on TCP port 21 and, after establishing a connection, accepts and processes FTP commands, which are regular text strings. The commands define connection parameters, the type of data transferred, and actions in relation to files and directories. After agreeing on the transmission parameters, one of the exchange participants enters passive mode, waiting for incoming connections for the data exchange channel, and the second establishes a connection to this port and begins transmission. Once the transfer is complete, the data connection is closed, but the control connection remains open, allowing you to continue the FTP session and create a new data transfer session.

    The FTP protocol can be used not only to transfer data between a client and a server, but also between two servers. In this case, the FTP client establishes a control connection with both FTP servers, switches one of them to passive mode, and the second to active, creating a data transfer channel between them.

    An FTP client is a program that connects to an FTP server and performs the necessary operations to view the contents of the server's directories and receive, transfer, and delete files or folders. Such a program can be a regular browser, operating system components, or specially developed software products, such as a popular download manager. Download Master or multifunctional free FileZilla FTP Client.

    The FTP protocol was developed back in the days when the client and server interacted directly, without any intermediate transformations of TCP packets, and in standard mode it assumes the ability to create a TCP connection not only at the initiative of the client, but also at the initiative of the server from TCP port 20 on TCP - client port, the number of which is transmitted during the creation of a data session.

    The realities of today are such that such a TCP connection from server to client is in the vast majority of cases impossible, or very difficult to implement due to the fact that in most cases, network address translation technology is used to connect to the Internet NAT(Network Address Translation) when the client does not have a network interface available to create a direct TCP connection from the Internet. A typical diagram of a standard Internet connection looks like this:

    Internet connection is made through a special device - Router(router with NAT function) that has at least two network ports - one connected to the provider’s network, having a network interface with a routed IP address (the so-called “white IP”), for example 212.248.22.144, and a port with a network interface for connecting local network devices with a private, non-routable IP address, for example 192.168.1.1 (“gray IP”). When creating connections from local network network devices to external network nodes, IP packets are sent to the router, which performs address and port translation so that the sender's address becomes his white IP address. The translation results are saved and when a response packet is received, a reverse address translation is performed. Thus, the router ensures the forwarding of TCP/IP packets from any local network devices to external networks and the return forwarding of received response packets. But in cases where a packet that is not related to TCP response packets is received at the input of a network interface connected to the provider’s network, the following reaction options are possible for the router software:

    The packet is ignored because there is no network service to process it.

    The packet is received and processed by the network service of the router itself, if such a service exists and is waiting for an incoming connection (“listening”) on the port whose number is indicated in the received packet.

    The packet is forwarded to a server on the local network that expects this type of incoming connections in accordance with the port mapping rules specified in the router settings.

    Therefore, at present, the main operating mode for the FTP protocol has become the so-called “passive mode”, in which TCP connections are made only from the client to the server’s TCP port. The active mode is used in cases where it is possible to connect TCP from the server to client ports, for example, when they are on the same local network. The FTP connection mode is selected using special commands:

    PASV- the client sends a command to perform data exchange in passive mode. The server will return the address and port to which you need to connect to receive or transmit data. Example of a fragment of an FTP session with passive mode set:

    PASSV- command to switch to passive mode transmitted by the FTP client to the FTP server

    227 Entering Passive Mode (212,248,22,144,195,89)- FTP server response, where 227 is the response code, a text message about switching to passive mode and in brackets the IP address and port number that will be used to create a data transmission channel. The address and port number are displayed as decimal numbers separated by a comma. The first 4 numbers are the IP address (212.248.22.144), the remaining 2 numbers specify the port number, which is calculated by the formula - the first number is multiplied by 256 and the second number is added to the result, in this example the port number is 195 * 256 +89 = 50017

    PORT Client IP address port number- the client sends a command to establish a session in active mode. The IP address and port number are specified in the same format as in the previous example, for example PORT 212.248.22.144,195,89 To organize data transfer, the server itself connects to the client on the specified port.

    Installing and configuring FileZilla FTP Server.

    You can download the FileZilla Server installation package for your version of the operating system at

    The server installation is performed in the standard way, with the exception of the item with the selection of server control panel settings:

    This is the main server management tool through which all necessary settings are made. By default, the control panel operates on a loopback interface without password access. If necessary, for example, if remote control of the FTP server is required, these settings can be changed.

    Once the installation is complete, an invitation window will open to connect to the server:

    After entering the IP address, port number and password (if you specified them during the installation process), the FileZilla Server control panel opens:

    At the top of the window there is the main menu and control panel buttons. Below there are two areas - server information messages and statistical information. Overall, FileZilla Servver's FTP control panel is quite simple and easy to use. Main menu items:

    File- operating modes of the FTP server control panel. Contains sub-items

    - Connect to Server- connect to the server
    - Disconnect- disconnect from the server
    - Quit- shutdown of the control panel.

    Server- FTP server management. Contains subparagraphs:

    - Active- start/stop FTP server. If the checkbox is checked, the FTP server is started, if unchecked, it is stopped.
    - Lock- prohibit/allow connections to the server. When the checkbox is checked, new connections to the server are prohibited.

    Edit- editing settings. Sub-items:

    - Settings- basic server settings.
    - Users- FTP server user settings
    - Groups- user group settings.

    As an example, let's configure the server for the following conditions:

  • the server is behind NAT, has a private IP address, but must be accessible from the Internet, supports passive mode and uses non-standard TCP ports. The use of non-standard ports reduces the likelihood of hacker attacks, and in addition, some providers use traffic filtering and block standard ports 20 and 21.
  • users have the ability to download from the server, upload to the server, delete and rename files and folders.
  • If you use a dynamic IP address, you must ensure that the server is accessible by DNS name.
  • the server will operate on a workstation in a Windows 7 / Windows 8 OS environment.
  • In other words, you need to create an FTP server accessible from the Internet for exchanging files between users, of course for free. It is quite clear that in addition to creating the necessary configuration of the FTP server itself, you will need to change some router settings, Windows firewall settings, and solve the problem of a dynamic IP address so that the server is accessible by name, regardless of the change in IP address.

    Solving the problem of dynamic IP address.

        This problem does not require a solution in cases where, when connecting to the Internet, a static IP address is used, or a dynamic one, but in accordance with the provider’s settings, it is almost always the same. Otherwise, you can use a technology called Dynamic DNS (DDNS) . This technology allows you to update the IP address information on the DNS server almost in real time, and access the router (and services behind it) by the registered name, without paying attention to changes in the dynamic IP.

    To implement this technology for free, you will need to register with some dynamic DNS service and install client software to update the DNS record if the corresponding IP address changes. Dynamic DNS support is usually provided by network equipment manufacturers (D-Link, Zyxel, etc.), some hosting and specialized companies, such as the well-known DynDNS. However, after in the second half of 2014, all services that were provided to registered users free of charge for non-commercial use became paid, the most popular solution, perhaps, was the use of dynamic DNS based on the service No-IP.org, which provides free support services for 2 nodes with dynamic IP. To use the service for free, you will need to register and periodically (approximately once a month) visit the site to update information about the dynamic IP nodes used. If you skip updating the node data, the service is suspended, and accordingly, it will become impossible to connect to the node by name. When using the service for a fee, no update is required.

        Almost all modern routers (modems) have built-in support for a dynamic DNS client. Its setup is usually very simple - you fill in the fields with the user name and password, as well as the host name received when registering with the DDNS service. Example for Zyxel P660RU2

        Using the DDNS client built into the router/modem is preferable to the DNS data update utility running in the OS environment, since it allows you to implement additional capabilities, such as managing the router via the Internet when the computer is turned off and remotely turning on the power supply to computers behind NAT using technology Wake On Lan.

    In those cases where it is not possible to use the built-in DDNS client, you will have to make do with application software - a client program for supporting dynamic DNS. Such a program periodically connects to a server that maintains a registered domain name associated with the router through which the Internet connection is made, and calls the IP update procedure when it changes. The server settings are made in such a way that the comparison of the DNS name and the IP address of the Internet connection is completed in a very short time, and the dynamic nature of the address has virtually no effect on the performance of services associated with the DNS name.

    The procedure is as follows:

  • We go to the website No-IP.org. To work with an existing or new account, use the button "Sign In"(top right side of the page).

  • Create, if it has not yet been created, your account - click "Create Account". The registration form changes periodically, but it is mandatory to enter the desired username, password and your E-mail. An email with a link to confirm registration is sent to the e-mail specified during registration. When registering, select free access - click the button Free Sign Up after filling out all the required form fields.
  • After successful registration, log into the site and add an entry for your node - click the button "Add Hosts"

    In fact, you only need to enter the selected host name, in this case - myhost8.ddns.net. There is no need to change any other parameters. Then you need to download and install special software - Dynamic Update Client(DUC), the link to which is located on the main page of the site. After the installation of DUC is completed, it will launch and an authorization window will open, where you need to enter the username or E-mail and password received when registering on the no-ip.org website. Then press the button Edit Hosta and check the box next to the previously created host name (myhost8.ddns.net). Now, the selected host name will always correspond to the “white IP address” of your Internet connection. If you are having trouble updating your IP address, check to see if your DUC client's network activity is being blocked by a firewall.

    Setting up an FTP server

        Using non-standard port numbers for an FTP server is not at all necessary if the provider does not use traffic filtering, or you do not care about scanning ports for vulnerabilities and trying to guess passwords. In this article, the use of an FTP server with non-standard TCP ports is presented as one of the possible options.

    FileZilla Server settings are made through the "Edit" - "Settings" menu

    Window General Settings intended for general FTP server settings.

    In the "Listen on this port" field you can specify the port number for incoming TCP connections. By default, this field is set to 21 , and to use a non-standard number you need to specify the selected value, for example - 12321 . Using a non-standard TCP port has some inconvenience, since it requires specifying its value when creating a session:

    If the server is planned to be used both with access from the Internet and on the local network, it makes sense to leave the standard value 21, and use a non-standard port number for connections from the Internet, setting up redirection of packets arriving on port 12321 of the router to port 21 of the FTP server in local network. With this setup, there is no need to specify a port number for FTP sessions within the local network.

    Other parameters are for tuning performance and session timeouts. They can be left unchanged. The remaining sections of general settings can also be left as default:

    Welcome Message- text that is sent to the client upon connection.

    IP Binding- on which network interface client connections will be expected. By default - on any, but you can specify a specific one, for example - 192.168.1.3.

    IP Filter- setting up filtering rules for client IP addresses. By default, connections are allowed for any IP.

    Chapter Passive mode settings serves to configure passive FTP mode and will require changing almost all default parameters.

    The port numbers that will be used to transmit data in passive mode must be set manually, since the router will need to be configured to redirect it to the network interface that the server is listening to. Therefore, you need to check the box to enable the "Use custom port range" mode and set the range - for example, from 50000 before 50020 . The number of ports the server listens to determines the limit on the number of simultaneous data transfer sessions.

    Subsection IPv4 specific defines the IP address that will be sent by the server in response to the PASV command. In this case, it should not be the server’s own IP 192.168.1.3, but the “white IP” of our Internet connection. Therefore, you need to set the “Use the following IP” mode and instead of the IP address, enter the name received when registering with the dynamic DNS service - myhost8.ddns.net. As an alternative, you can use the mode for determining the external IP address using the FileZilla project by turning on. "Retrieve external IP Address from:". This option can be selected in cases where it is not possible to use the dynamic DNS tool. If you intend to use an FTP server on your local network, you need to set the mode to "Don"t use external IP for local connections" (do not use an external IP address for connections within the local network)

    The rest of the server settings can be left unchanged or, if necessary, performed later: Security settings- Security Settings. By default, connections that can be used to implement DDoS attacks are prohibited

    Miscellaneous- settings for buffer sizes and other log parameters and some FTP commands.

    Admin Interface settings- server control panel settings. You can specify the network interface, listening port number, IP addresses from which connections to the control panel are allowed, and a password.

    Logging- server event log settings. By default, writing to the file is not performed.

    Speed ​​Limit- data transfer rate limit settings. By default - no restrictions.

    Filetransfer compression- settings for file compression during transfer. The default is no compression.

    SSL/TLS settings enabling encryption mode for transmitted data. The default is no encryption.

    Autoban- enable automatic blocking of users who guess the password to connect. By default, automatic blocking is disabled.

    Setting up port forwarding and firewall

    In order for the FTP server to be accessible from the Internet, it is necessary to configure the router so that incoming connections coming to certain TCP ports on the external interface are redirected to the TCP ports listened to by the FTP server on the internal network. For different router models, the settings may differ in terminology, but their meaning is the same - a TCP packet with a specific port number received on the external (WAN) interface is sent to the local network to the desired IP address and port. Example of settings for the D-Link DIR-320NRU router for port forwarding used for passive FTP mode:

    Packets received on an interface with a "white IP" and having port numbers in the range 50000-50020 will be redirected to the IP address specified in the "Internal IP" field (in our case - 192.168.1.3). Similarly, a redirection is created for port 50021 if you changed the standard port number, or to port 21 of the FTP server if you left it unchanged.

    After applying these settings, the FTP server will be accessible via URL ftp://myhost8.ddns.net:50021 or, for a connection within a local network:

    ftp://192.168.1.3- if you did not change the default port number (21) in the FTP server settings.

    ftp://192.168.1.3:50021- if a non-standard port number is used.

    You can use a computer name instead of an IP address if it can be resolved to an IP address

    ftp://comp1

    ftp://comp1.mydomain.ru

    Diagnosis of problems

    If the connection to the FTP server does not occur, then there may be problems with the firewall blocking the connections necessary for the operation of the created FTP server. If you use the built-in Windows firewall, you must add a rule that allows network activity for the "FileZilla FTP server" service. If you are using a third-party firewall or antivirus with traffic filtering, you must create a corresponding rule using the available settings tools to allow network connections. Options are possible when settings are made to allow any network activity of a specific program, or to allow selected addresses and ports that apply to all programs.

    The best place to start diagnostics is on the FTP server itself. As a diagnostic tool, you can use a standard telnet client(utility telnet.exe) . All firewalls do not block connections on the loopback interface, and to check that the server settings are correct, you can connect to it by entering the command:

    telnet localhost 21- if a standard port number is used.

    telnet localhost 50021- if the standard port number has been changed.

    When this command is executed, a connection to the FTP server is made via the loopback interface and a server invitation (Welcome Message) should be displayed in the telnet window. If this does not happen, the server may be stopped, there is a port conflict, or port 21 (50021) is not listening. For diagnostics you can use the command netstat:

    netstat –nab

    The command line options mean:

    n- use numeric port numbers and IP addresses

    a- display all connections and listening ports

    b- display the names of programs involved in creating connections.

    Example of displayed command results:

    Active connections

    Name     Local address     External address     Status
    TCP         0.0.0.0:21                 0.0.0.0:0                 LISTENING
    TCP         0.0.0.0:135               0.0.0.0:0                 LISTENING
    RpcSs

    In a collumn Local address there is a meaning 0.0.0.0:21 , which indicates that the program named FileZilla Server.exe listening (state LISTENING) TCP port number 21 on all network interfaces. If a specific interface and a different port number were specified in the FTP server settings, then this value will contain IP:port, For example - 192.168.1.3:50021

    To display results in page mode, you can use the command:

    netstat -nab | more

    Or use search results by port number: netstat -nab | find ":21"

    If the server is unavailable on a non-loopback interface, but accessible on a loopback interface, you need to understand the firewall settings.

    Setting up users and groups.

    Setting up users and groups is done through the menu "Edit" - "Users" ("Groups"). It is not necessary to create groups, but sometimes it is convenient in cases where there are a large number of users and their rights in relation to the FTP server differ. The settings for both groups and users are almost identical:

    This example shows the result of adding an FTP server user named user1 having full rights to write, read, delete and merge files, as well as to view the contents, delete and create subdirectories in the directory C:\ftp\public

    On the page General user properties are added, deleted, and changed.
    On the page Shared Folders settings are made that determine the list of file system directories that will be used by the FTP server to provide access to them via the FTP protocol. Each user or group of users can be given their own directory with certain rights in relation to its contents.
    On the page Speed ​​limits You can set restrictions on data exchange speed.
    On the page IP Filter You can set filtering rules for the user's IP address, indicating the addresses from which connection to the server is prohibited or allowed.

    List of basic FTP commands

    ABOR - Abort file transfer
    CDUP - Change directory to a higher one.
    CWD - Change current directory.
    DELE - Delete a file (DELE filename).
    HELP - Displays a list of commands accepted by the server.
    LIST - Returns a list of files in a directory. The list is transmitted via the data connection (port 20).
    MDTM - Returns the file modification time.
    MKD - Create a directory.
    NLST - Returns a list of files in a directory in a shorter format than LIST. The list is transmitted via the data connection (port 20).
    NOOP - Empty operation
    PASV - Enter passive mode. The server will return the address and port to which you need to connect to collect the data. The transfer will begin when the RETR, LIST, etc. commands are entered.
    PORT - Enter active mode. For example PORT 12,34,45,56,78,89. Unlike the passive mode, the server itself connects to the client to transfer data.
    PWD - Returns the current server directory.
    QUIT - Disconnect
    REIN - Reinitialize connection
    RETR - Download file. RETR must be preceded by a PASV or PORT command.
    RMD - Delete directory
    RNFR and RNTO - Rename the file. RNFR - what to rename, RNTO - what to rename.
    SIZE - Returns the file size
    STOR - Upload a file to the server. STOR must be preceded by a PASV or PORT command.
    SYST - Returns the system type (UNIX, WIN,)
    TYPE - Set the file transfer type (A - ASCII text, I - binary)
    USER - Username to log into the server

    Example FTP session

    FTP client connects to server with username user1, an empty password and downloads a file named cpu-v. Messages from the FTP server are highlighted in red, messages from the FTP client are highlighted in blue. The exchange of directives and parameters may vary slightly between different versions of the FTP client and FTP server software.

    After connecting, the server transmits information about itself to the client:
    220-FileZilla Server version 0.9.45 beta
    220-written by Tim Kosse ( [email protected])
    220 Please visit http://sourceforge.net/projects/filezilla/
    The client passes the username:
    USER user1
    The server asks for a password:
    331 Password required for user1
    The client passes an empty password:
    PASS
    The server verifies the user account and reports the start of the session:
    230 Logged on
    The client requests the type of operating system on the server:
    SYST
    The server reports that the type Unix, emulated by Filezilla server:
    215 UNIX emulated by FileZilla
    The client requests a list of parameters supported by the server:
    FEAT
    The server responds with a list of supported parameters:
    211-Features:
    MDTM
    REST STREAM
    SIZE
    MLST type*;size*;modify*;
    MLSD
    UTF8
    CLNT
    MFMT
    211 End

    The client requests the current directory of the server:
    P.W.D.
    The server reports that the current directory is the root directory ("/"):
    257 "/" is current directory.
    The client reports that it will transfer binary data:
    TYPE I

    The server confirms the type of data being transferred:
    200 Type set to I
    The client reports that it will use passive FTP mode:
    PASV
    The server reports the transition to passive mode and transmits the IP and port for passive FTP mode.
    227 Entering Passive Mode (212,248,22,114,195,97)
    The client requests to receive a file named cpu-v from the current server directory
    RETR cpu-v
    The server reports the start of data transfer:
    150 Opening data channel for file download from server of "/cpu-v"
    Upon completion, the server reports a successful transfer:
    226 Successfully transferred "/cpu-v"

    In conclusion, I would like to add that the Filezilla project includes not only the development and support of a high-quality free FTP server, but also a popular free FTP client

    An article with a brief description of a free FTP client for Linux, Mac OS and Windows. This FTP client supports many application data transfer protocols - FTP, FTP over SSL/TLS (FTPS), SSH File Transfer Protocol (SFTP), HTTP, SOCKS and FTP-Proxy. In other words, Filezilla FTP Client is a universal software for receiving and transferring files over all modern application protocols between nodes on various platforms.

    In this article we will talk about the following things:

    1. how to set up an FTP server on a computer connected to the router;
    2. how to provide access to it from the World Wide Web.

    Setting up the FTP server program

    Installing FileZilla Server

    Download and install any FTP server that you like or are used to working with. For example, we will download a free program Filezilla Server from the official website: https://filezilla-project.org/download.php?type=server

    Run the downloaded installation file:

    Click I reject:

    Click I reject again:

    Click Install:

    Click I agree:

    Next:

    Install:

    Setting up a FileZilla FTP server

    Launch the program interface.

    Enter settings: menu Edit -> Settings:

    Now you need to configure passive FTP mode.

    1) Select a section Passive mode settings;

    2) Check the box Use custom port range;

    3) Set a convenient range of ports for use in passive mode;

    4) In the field Use the following IP enter your external IP;

    5) Click the button OK to save settings.

    Now you need to set up user accounts and specify home directories.

    Enter the menu Edit and select Users:

    In chapter General click Add:

    Enter your username and click OK:

    1) Check the box next to Password. This will indicate that this account will require a password.

    2) Set a password for this account;

    3) Go to section Shared folders:

    In chapter Shared folders click Add:

    and select the folder that will be open to this user for access via FTP. After selecting the shared folder, click OK:

    Set permissions for this user on the folder.

    In area Files You can allow or disable the following file operations:

    • Reading;
    • Record;
    • Delete;
    • Change.

    In area Folders You can allow or deny the following folder operations:

    • Creation;
    • Delete;
    • View list;
    • View subfolders.

    Once you have set permissions for this user in the current folder, click OK to save settings:

    Computer settings

    After setting up the FTP server program itself, you need to allow incoming connections in the firewall.

    Let's go to Control Panel and choose Windows Firewall.

    Right-click on Rules for incoming connections and choose Create a rule:

    Choose an option For the program and press Further:

    Set the switch to position Program path and using the button Review specify the path to the file FileZilla Server.exe.
    Then, click Further:

    Select an option Allow connection and press Further:

    Give the rule a custom name and click Ready:

    Setting up a router: creating port forwarding rules

    Now we need to create port forwarding on the gateway. The gateway can be a router, modem, or other device. Log in to the router’s web interface (read the article about what a web interface is and how to access it:) and open the port forwarding section. Read more about port forwarding in our article: What is port forwarding.

    Create two rules.

    Rule No. 1: forward external port 21 to port 21 of the computer where the FTP server program is installed.

    Rule No. 2: forward a range of ports to the same range of ports on a computer with the FTP server program installed.

    Saving the setting.

    How to remotely connect to an FTP server

    To access the FTP server, you can use either an FTP client, a browser, or even Explorer. Of course, it is preferable to use an FTP client. We recommend the free program FileZilla client. You can download it on the official website: https://filezilla-project.org/download.php?type=client

    In field Host enter either ) or the external IP address of the router. Then, enter the username you created in the FileZilla Server program on your computer, the corresponding password and click the button Fast connection:

    If in port forwarding in the router settings you did not change port No. 21 to non-standard, then the field Port You can leave it empty - the program will connect to port 21 by default.

    Most often, users use email or Skype to exchange small files online. However, when you need to send an archive of photographs or a film several gigabytes in size, these services cannot be used. Public file sharing also creates some difficulties, for example, waiting for a timer and limiting the speed. The best solution in this case is to create your own FTP server.

    FTP (File Transfer Protocol) is a protocol for transferring information on the Internet and local computer networks. This is a program that makes a remote connection to a dedicated folder for viewing and sharing files, including large ones. Data exchange is possible from a computer to a remote server and between other FTP servers.

    Data is transmitted without traffic encryption, so attackers can easily gain access to logins and passwords. For secure file transfer, it is recommended to use a TLS-protected protocol - FTPS, which encrypts data.

    Your own FTP server has certain advantages:

    • allows you to manage the server and its resources;
    • provide users with different access rights;
    • it does not require a static IP address.
    • no speed limits;
    • lack of payment to the hoster for hosting it;

    The software is selected according to the complexity of the access. To create an FTP server for private use with minimal settings, free software packages are quite suitable.

    Microsoft has added Internet Information Services (IIS) to Windows 7, which allows users to share access to a folder from the network. Therefore, to create an FTP server for Windows 7, you do not need to install any additional software.

    Installing an FTP server

    Some standard features that are not used very often are disabled by default in Windows 7. Therefore, in order to activate them, you need to follow a number of steps.

    To create an FTP server on Windows 7 you need to:

    • Click “Start” and open the “Control Panel” section. For ease of viewing, you can select the “Small icons” mode.

    • Go to the "Programs and Features" section, where you select "Turn Windows features on or off."

    • In the list of the menu that opens, you need to select the components that should be activated by checking the box next to them. This is the “FTP Server” folder, there are two items in it: “FTP Extensibility” and “FTP Service”, as well as the “Website Management Tools” folder, and in it is the “IIS Management Console”. To start, click OK.

    Setting up an FTP server

    1. Now you need to go through “Start” to “Control Panel” again.
    2. Find the “Administration” section and open “IIS Services Manager” in this section.
    3. Go to the “Sites” tab, right-click on the name, select “Add FTP sites” from the list.
    4. In the new window you need to specify the name of the future FTP server and the path to the directory with its data. You can proceed to the next configuration step by clicking the “Next” button.
    5. Now the server parameters are set. In the IP address field, select the one you need from the list. You can bind it to a specific address or make extended access by selecting “All free”. In this case, the standard port 21 should be checked. If you plan to constantly use the FTP server, then you should check the “Launch FTP site automatically” checkbox. Select the “No SSL” option; you can enable it later if necessary. Click “Next” again.
    6. In a new window, the authorization type is specified. In the “Authentication” item, you can allow login for regular or anonymous users. Here you can configure rights for them. Click "Done".

    After the installation is complete, a new FTP server will appear in the “Sites” section.

    Setting up Windows Firewall

    Now it is imperative to configure the Windows Firewall to open ports and allow services to function.

    Go back to Control Panel, then Windows Firewall. Find the "Advanced Settings" section.

    In it, select “Rules for incoming connections”. It is recommended to set them to passive mode. To do this, right-click and enable the “FTP Server Passive” and “FTP Server (incoming traffic)” rules. In the same way, for outgoing connections, enable the “FTP-Server” rule in the appropriate section.

    Connecting users

    In order for users to access the server, they must be connected.

    • In the “Control Panel” tab, open the “Administration” folder.

    Administration section

    • Find the Computer Management section, then go to the Local Users folder. Right-click on the “Groups” line and select the “Create Group” function. In the new window, specify the name and short description of the group and click “Create”.
    • Now you can connect users to the created group. In the “Local Users” folder, right-click on the “Users” line and select “New” from the menu list. Fill in the fields by entering your name and password, and here you should check the box to prohibit changing the password.
    • To connect a user, right-click on his account and select “Properties” from the menu list, then the “Group Membership” tab and the “Add” button. Find the created group, add and click OK. This procedure must be performed for all server users.
    • The next step is to determine the access rights of group users to the working directory. To do this, go to the “Site” directory, right-click on the name and open “Properties”. Next - the “Security” tab, in the “Change” item, specify the name of the group and click OK. Then you need to configure user rights.
    • Enter the “IIS Services Manager”, right-click on the line “FTP Authorization Rules”, add an allowing rule. You can allow users to write and delete data, or you can only read.

    Server installation and configuration is complete. However, now you need to know how to log into the FTP server.

    Standard Windows features make this easy. Just open the “My Computer” folder, then specify the path to the server in the address bar.

    Another way is to create a shortcut for connecting to FTP on your computer desktop.

    To do this, open the “Control Panel”, right-click the “Network Neighborhood” section. In tasks, select “Add a new element to the network environment”, then click on “Select another network location” and “Next”. Now a shortcut will appear in the “Network Location” section, which you just need to drag and drop onto your desktop.

    As you can see, it is useful to know how to set up an FTP server to make data exchange between users convenient and without restrictions.





  • 

    2024 gtavrl.ru.