Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".(Japanese Version)

MiracleLinux8.4 ; Vsftpd (FTP server installation)

FTP Server Installation

1. Install vsftpd

Download vsftpd-3.0.3-33.el8.x86_64.rpm from the download site to /usr/local/src/.

2.Configuring vsftpd

Save the unedited vsftpd.conf with .bak

①Edit the configuration file

②Add a user to allow access to the directory to the upper level.

In my case, I wrote lan.

③Specify the IP address to allow connections in /etc/hosts.allow
192.168.11.0/24 is the setting that allows all local IP addresses in my environment.

Write vsftpd:ALL (deny all connections) in /etc/hosts.deny
This setting takes precedence over hosts.allow.
This means that everything will be rejected and the IP address specified in hosts.allow will be allowed
④Enable and start vsftpd with auto-start enabled
If you see #, you're good to go.

⑤From the windows side, check if you can connect with FileZilla.
Open the ftp port with firewall before connecting
Launch FileZilla and select "Site Manager" from the "File" menu.        ↓
Click "New Site", fill in the fields as follows, and click "Connect".
Protocol : FTP-File Transfer Protocol
Host : IP address of the server
Poer :  <blank space>
logon Type : Ask for  password
User : General user name (server login user) ↓

Set the login user's password in the "Password" field and click "OK".

If the connection is successful, the server directory will be displayed on the right side and the Windows directory on the left side.  ↓

vsftpd SSL/TLS

Configure Vsftpd to work with SSL/TLS

1. Create a self-signed certificate.

This step is not necessary if you use a trusted, legitimate certificate such as Let's Encrypt.

2. Configure Vsftpd

Allow passive ports in Firewalld
When you connect to FileZilla, the following screen will appear, check the box and click "OK" to connect as before.
Copied title and URL