blob: 0dc72bb1cdca3f0a532c2fa2157072674f9b8003 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
#
# This is a default ProFTPD configuration file.
#
# Run proftpd has a standalone server (not via inetd or xinetd)
ServerType standalone
DefaultServer on
# chroot Home user directory
DefaultRoot ~
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# Name of the server
ServerName "HOSTNAME FTP Server"
# Don't Show proftpd version
ServerIdent off
DeferWelcome on
DisplayConnect /etc/banner-proftpd
# Administrator email address
ServerAdmin ADMIN
# Deny root Login
RootLogin off
# Deny MSG
AccessDenyMsg " !-!! ACCESS DENY !!-! SEEMS YOU HAVE NO RIGHT THERE !!"
# Accept Message
AccessGrantMsg " -- Guest access granted for %u --"
# Perform identity lookup
IdentLookups off
# preform reverse lookup
UseReverseDNS off
# Port 21 is the standard FTP port.
Port 21
# use GMT (off=localtime)
TimesGMT off
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30
# Max login attempt before disconnected
MaxLoginAttempts 3
# max client simultaneous
MaxClients 10 "Sorry, the maximum number of allowed users are already connected (%m)"
# Login time out (seconds)
TimeoutLogin 300
# idle timeout (seconds)
TimeoutNoTransfer 400
# Set the user and group that the server normally runs at.
User nobody
Group nogroup
DirFakeUser off nobody
DirFakeGroup off nobody
# Default transfer mode (bin|ascii)
DefaultTransferMode binary
# FXP transfert
AllowForeignAddress on
# Allow FTP resuming.
# Remember to set to off if you have an incoming ftp for upload.
AllowStoreRestart on
AllowRetrieveRestart on
# Automatically delete aborted uploads
DeleteAbortedStores off
# Download Bandwitdh KB/sec
#TransferRate RETR 100
# Upload Bandwitdh KB/sec
#TransferRate STOR,APPE 100
# Some logging formats
SystemLog /var/log/proftpd.log
TransferLog /var/log/xferlog
Extendedlog /var/log/ftp.log
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"
LogFormat write "%h %l %u %t \"%r\" %s %b"
<Directory /*>
AllowOverwrite on
</Directory>
# Needed for NIS.
PersistentPasswd off
|