Diese Seite (Version-24) wurde zuletzt am 21-März-2023 18:36 von Administrator geändert.

Diese Seite wurde am 28-März-2017 14:37 von Administrator erstellt.

Du bist nicht autorisiert, diese Seite umzubenennen.

Du bist nicht autorisiert, diese Seite zu löschen.

Versionsgeschichte der Seite

Version Zuletzt geändert Größe Autor Änderungen Kommentar
24 21-März-2023 18:36 4 KB Administrator zur vorherigen
23 21-März-2023 18:35 4 KB Administrator zur vorherigen | zur neuesten
22 21-März-2023 18:34 4 KB Administrator zur vorherigen | zur neuesten
21 21-März-2023 18:32 4 KB Administrator zur vorherigen | zur neuesten

Links

Eingehende Links Ausgehende Links

Versionsunterschiede

Unterschiede zwischen Version und .

Zeile 3: Eine Zeile gelöscht.
!ProFTPd (with Ubuntu 12.04 LTS)
Zeile 5: 4 Zeilen geändert.
{{{
apt-get install proftpd
}}}
(I used the standalone setup.)
Reinstalled 19.03.2023
Zeile 10: Eine Zeile geändert.
20.03.2017, used [https://www.howtoforge.com/tutorial/proftpd-installation-on-debian-and-ubuntu/]
[{TableOfContents }]
Zeile 8: 11 Zeilen hinzugefügt.
!Info
{{{
proftpd -v # get version
ps -ef|grep proftpd # check running / pid
dpkg -l '*proftp*' # check package installed
apt list --installed | less # check packages installed
proftpd-basic/stable,now 1.3.7a+dfsg-12+deb11u2 all [installiert]
proftpd-core/stable,now 1.3.7a+dfsg-12+deb11u2 amd64 [Installiert,automatisch]
proftpd-doc/stable,now 1.3.7a+dfsg-12+deb11u2 all [Installiert,automatisch]
proftpd-mod-crypto/stable,now 1.3.7a+dfsg-12+deb11u2 amd64 [Installiert,automatisch]
proftpd-mod-wrap/stable,now 1.3.7a+dfsg-12+deb11u2 amd64 [Installiert,automatisch]
Zeile 20: 5 Zeilen hinzugefügt.
service proftpd status # check ProFTPD running
netstat -tlp|grep proftp # ProFTPD lauscht auf Port 21
telnet 192.0.2.10 21 # Verbindungstest auf Port 21 mit telnet
openssl s_client -connect 192.0.2.10:21 -starttls ftp # Verbindungstest auf Port 21 mit TLS
proftpd -d 5 # ? increase debug, 0-10, 10 = most debugging
Zeile 26: 5 Zeilen hinzugefügt.
vi /var/log/proftpd/proftpd.log
vi /var/log/proftpd/tls.log
vi /var/log/proftpd/sftp.log
vi /var/log/proftpd/xferlog
}}}
Zeile 32: 6 Zeilen hinzugefügt.
! Deinstall / Clean
{{{
/etc/init.d/proftpd stop
apt-get remove proftpd-basic (removes all packages listed above)
apt install proftpd-basic
}}}
Zeile 16: 6 Zeilen geändert.
----
Configuration, see [here|http://wiki.ubuntuusers.de/ProFTPD]
!Configuration
Standard configuration is
Zeile 23: Eine Zeile geändert.
vi /etc/proftpd/proftpd.conf
vi /etc/proftpd/proftpd.conf # main one
vi /etc/proftpd/conf.d/tls.conf # tls
vi /etc/proftpd/conf.d/sftp.conf # sftp (not used, but see below)
Zeile 46: 16 Zeilen hinzugefügt.
The main one includes ALL files from folder conf.d. We create our own one
{{{
vi /etc/proftpd/conf.d/custom.conf
# Ftp user doesn't need a valid shell
<Global>
RequireValidShell off
</Global>
# If desired turn off IPv6
UseIPv6 off
# Default directory is ftpusers home
DefaultRoot ~ ftpuser
# Limit login to the ftpuser group
<Limit LOGIN>
DenyGroup !ftpuser
</Limit>
}}}
Zeile 26: 2 Zeilen geändert.
Edit /etc/proftpd.conf\\
Remove anonoymous access (comment out the following):
!Restart
Zeile 29: 5 Zeilen geändert.
# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
User ftp
Group ftp
systemctl restart proftpd.service
}}}
Zeile 35: 2 Zeilen geändert.
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
! Activate TLS
Zeile 38: 2 Zeilen geändert.
# Limit the maximum number of anonymous logins
MaxClients 10
We use TLS, NOT SFTP, nevertheless check sftp.conf:
{{{
$ vi /etc/proftpd/conf.d/tls.conf
SFTPEngine off " is it off? (ok)
Port 2222 " port overridden ?
}}}
Zeile 41: 10 Zeilen geändert.
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
{{{
$ vi /etc/proftpd/conf.d/tls.conf
<IfModule mod_tls.c>
TLSEngine on
TLSLog /var/log/proftpd/tls.log
TLSProtocol TLSv1.2
#TLSOptions NoSessionReuseRequired NoCertRequest
#TLSRSACertificateFile /etc/proftpd/ssl/proftpd.cert.pem
TLSRSACertificateFile /etc/letsencrypt/live/www.inetone.de/cert.pem
#TLSRSACertificateKeyFile /etc/proftpd/ssl/proftpd.key.pem
TLSRSACertificateKeyFile /etc/letsencrypt/live/www.inetone.de/privkey.pem
TLSVerifyClient off
TLSRequired on
</IfModule>
Zeile 110: 4 Zeilen hinzugefügt.
!SFTP Client
I use [filezilla 64bit without setup|https://filezilla-project.org/download.php?show_all=1]
Use "Explizites FTP über TLS erfordern"
Zeile 73: Eine Zeile geändert.
Add to /etc/proftpd/proftpd.conf
! Log Settings
You may adopt in proftpd.conf:
Zeile 75: 44 Zeilen gelöscht.
DefaultRoot ~
AuthOrder mod_auth_file.c mod_auth_unix.c
AuthUserFile /etc/proftpd/ftpd.passwd
AuthPAM off
RequireValidShell off
}}}
Restart
{{{
sudo /etc/init.d/proftpd restart
}}}
/var/run/proftpd/proftpd.delay
If you get
{{{
2016-10-20 23:00:25,427 v22013121954216166.yourvserver.net proftpd[2368]: mod_auth_file/1.0: unable to use world-readable AuthUserFile '/etc/proftpd/ftpd.passwd': Operation not permitted
2016-10-20 23:00:25,427 v22013121954216166.yourvserver.net proftpd[2368]: Fatal: AuthUserFile: unable to use /etc/proftpd/ftpd.passwd: Operation not permitted on line 91 of '/etc/proftpd/proftpd.conf'
}}}
then read [https://ubuntuforums.org/showthread.php?t=2238794]
{{{
sudo chmod o-rwx /etc/proftpd/ftpd.passwd
}}}
Old (not necessary): Edit /etc/hosts.deny and /etc/hosts.allow
{{{
ftpd: ALL
}}}
Old: Start
{{{/markus/proftpd/proftpd-1.3.3f/proftpd -c /usr/local/etc/proftpd.conf
}}}
Old: Stop
{{{
netstat -pant
kill -9 <pid>
}}}
! Logging
Add in proftpd.conf:
{{{
Zeile 130: 6 Zeilen gelöscht.
Increase debug level by starting with -d:
{{{
proftpd -d 5
}}}
-d level\\
Set debugging level (0-10, 10 = most debugging)
Zeile 137: Eine Zeile gelöscht.