Linux ProFTPd installation and uninstallation details

  • 2020-05-10 23:24:13
  • OfStack

Detailed procedures for installing and uninstalling ProFTPd on the Linux system

yum install proftpd

vi /etc/ proftpd.conf ← modify the ProFTPD configuration file
ServerType standalone ← find this 1 line and add "#" at the beginning of the line
left
#ServerType standalone ← change to this state without permanent mode
#ServerType inetd ← find this 1 row and get rid of the # at the beginning of the row
left
ServerType inetd ← switch to this state and start ProFTPD via the super server
DefaultRoot ~! adm ← find this 1 row, will "! adm "to" /public_html! wheel"
left
DefaultRoot ~ / public_html! wheel ← to this state, make the root directory of users divided by wheel group public_html

Find the statement group set by TLS, as follows:
# TLS
# Explained at http://www.castaglia.org/proftpd/modules/mod_tls.html

----------------------------------------------------------------

# TLSEngine on
# TLSRequired on
# TLSRSACertificateFile/usr/share/ssl/certs/proftpd pem
# TLSRSACertificateKeyFile/usr/share/ssl/certs/proftpd pem
# TLSCipherSuiteALL:! ADH:! DES
# TLSOptionsNoCertRequest
# TLSVerifyClient off
required off timeout 300 ##TLSRenegotiatectrl 3600 data 512000 required off timeout 300
# TLSLog/var log/proftpd/tls log

----------------------------------------------------------------
↓ remove the "#" at the beginning of each line and change it into the state between the following horizontal lines:
----------------------------------------------------------------

TLSEngine on
TLSRequired on ← only TLS connection is allowed (if on is changed to off, normal connection is also allowed)
TLSRSACertificateFile usr/share ssl/certs/proftpd pem
TLSRSACertificateKeyFile usr/share ssl/certs/proftpd pem
TLSCipherSuiteALL:! ADH:! DES
TLSOptionsNoCertRequest
TLSVerifyClientoff
TLSRenegotiatectrl 3600 data 512000 required off timeout 300
TLSLog/var/log/proftpd/tls log

----------------------------------------------------------------

Then fill in the following lines at the end of the configuration file:

ExtendedLog/var/log/proftpd/access log WRITE, READ default please record connection logs to the log file accordingly
ExtendedLog/var/log/proftpd/auth log AUTH auth please log record certification to the corresponding log file
MasqueradeAddress digeast.no-ip.info ← server domain name definition
PassivePorts 50000 50030 ← specify port number when connected in PASV mode (any port number existing after 1024)

uninstall

yum remove proftpd  

Thank you for reading, I hope to help you, thank you for your support of this site!


Related articles: