0% found this document useful (0 votes)
113 views5 pages

FTP Server: Phd. Alcides Montoya Canola, Est. Carlos Andres Ballesteros Universidad Nacional de Colombia - Sede Medellin

This document provides instructions for setting up an FTP server using the vsftpd FTP server on Open Suse Leap 15. It describes installing and configuring vsftpd, modifying firewall settings to allow FTP traffic, configuring directories and permissions for shared files, and optional vsftpd configuration parameters. The document also provides commands for accessing the FTP server from the client side either as a local user or anonymously using an FTP client software. Users are instructed to configure the FTP server as demonstrated and test it on a local network.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
113 views5 pages

FTP Server: Phd. Alcides Montoya Canola, Est. Carlos Andres Ballesteros Universidad Nacional de Colombia - Sede Medellin

This document provides instructions for setting up an FTP server using the vsftpd FTP server on Open Suse Leap 15. It describes installing and configuring vsftpd, modifying firewall settings to allow FTP traffic, configuring directories and permissions for shared files, and optional vsftpd configuration parameters. The document also provides commands for accessing the FTP server from the client side either as a local user or anonymously using an FTP client software. Users are instructed to configure the FTP server as demonstrated and test it on a local network.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

FTP SERVER

PhD. Alcides Montoya Canola, Est. Carlos Andres Ballesteros


Universidad Nacional de Colombia - sede Medellin

Abstract
This guide will develop the procedure that will allow you to practice
the knowledge acquired in the theoretical class of server management.
The topic to be developed is FTP.

1 Introduction
File Transfer Protocol (FTP) is a standard Internet protocol for transmitting
files between computers on the Internet over TCP/IP connections. FTP is a
client-server protocol that relies on two communications channels between client
and server: a command channel for controlling the conversation and a data
channel for transmitting file content. Clients initiate conversations with servers
by requesting to download a file. Using FTP, a client can upload, download,
delete, rename, move and copy files on a server. A user typically needs to log
on to the FTP server, although some servers make some or all of their content
available without login, also known as anonymous FTP.

Figure 1: FTP service

FTP sessions work in passive or active modes. In active mode, after a client
initiates a session via a command channel request, the server initiates a data
connection back to the client and begins transferring data. In passive mode,

1
the server instead uses the command channel to send the client the information
it needs to open a data channel. Because passive mode has the client initiating
all connections, it works well across firewalls and Network Address Translation
(NAT) gateways.[1]

2 Development of Practice
The development of the practice will take place in the distribution of Open Suse
Leap 15, it is clear that this practice can be extended to other distributions
taking into account their respective changes.

2.1 The server side


2.1.1 Necessary logical equipment.
We must install the FTP server in this case VSFTPD, if it is already installed,
we must update it, for this, we write the following commands in the console.

Execute the following to install the service vsftpd:

2.1.2 Start service and add the service to the system boot.
The FTP server must be enabled once it has been configured. And it must
be restarted when a new configuration has been made so that it executes the
following commands.

Execute the following to enable the service at startup:

Execute the following to start the service:

2.1.3 Necessary modifications in the firewall.


Clients on all subnets must be able to communicate with the server. To define
the interfaces that the FTP server should listen to, adjust the firewall accord-
ingly, for this we execute the following commands.

2
Execute the following to configure the firewall:

Run the following to reload the firewall:

2.1.4 Some files and configuration directories.


• /etc/vsftpd.conf: This file configures the FTP server.
• /srv/ftp: In this directory the directories and files that you want to share
by the ftp protocol with anonymous users are uploaded.

Modify the configuration document as shown below: Enable load by local user,
Enable reading by anonymous user, Disable loading by anonymous user

2.2 Configuration options vsftpd


Local user options

• guest enable-When activated, all anonymous users connect as a guest,


which is the local user specified in the guest username directive. The
default value is no
• local root- Specifies the directory to which vsftpd is changed after the
user connects.This directive does not have a default value.
• ...

Demon options

3
• listen- When enabled, vsftpd runs in standalone mode. Linux configures
this value to YES. This directive can not be used in conjunction with the
listen ipv6 directive

• session support- If enabled, vsftpd will attempt to maintain connection


sessions for each user through Pluggable Authentication Modules (PAM).
If it is not necessary to do connection sessions, disabling this option makes
vsftpd run with fewer processes and lower privileges.

• ...

Connection options and access control

• anonymous enable- When activated, anonymous users are allowed to


connect. The anonymous and ftp usernames are accepted. The default
value is YES.

• local enable- When activated, local users can connect to the system.
The default value is YES.
• ...

Anonymous user options

• anon mkdir write enable- When activated in combination with the


write enable directive, anonymous users can create new directories within
a directory that has write permissions. The default value is no.
• no anon password-When enabled, a password is not requested from the
anonymous user. The default value is NO.
• ...

For more information visit web.mit.edu

2.3 The client side


to access the server and access the service, we enter a browser and write:
ftp://192.168.1.5, in this case 192.168.1.5 is the IP of the computer that
provides the service.

Another way is to use a ftp client software such as LFTP, for this we must
install it using the following command:

Once the software is installed, we can access it in two ways, either as An


anonymous or as a user.

Execute the following thing for aceder to the service like user

4
Execute the following thing for aceder to the service like anonymous

3 Exercise
Configure the FTP server as shown in the development of the practice, make a
local network and test it.

References
[1] File-Transfer-Protocol-FTP searchnetworking.techtarget.com 2019
[2] ftp-vsftpd-conf.html web.mit.edu 2019

You might also like