FTP Server with ProFTPD

Posted on

Berikut sedikit catatan saya untuk konfigurasi Proftpd di mesin GNU/Linux (tidak ada perbedaan berarti dengan mesin-masin lainnya). Dari pada ntar-ntar lupa makanya saya paste disini konfugurasi yang sudah diberjalan, siapa tahu satu saat nanti saya perlukan lagi jadi tinggal liat konfigurasinya saja. 😀

# cat /etc/proftpd/proftpd.conf

ServerName “Selamat Datang di FTP Server”
ServerType standalone
DefaultServer on
RequireValidShell off
AuthPAM off
AuthPAMConfig ftp
Port 21
Umask 022

# Timeout by utuh^kulaliL
MaxInstances 30
MaxClients 10 “Hanya boleh 10 koneksi!”
MaxClientsPerHost 1 “Anda Sudah login ke server”
MaxClientsPerUser 1 “Anda Sudah login ke server”
TimeoutStalled 120
TimeoutNoTransfer 180
TimeoutLogin 60

DefaultRoot ~

User nobody
Group nogroup

# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>

# A basic anonymous configuration, with no upload directories.
<Anonymous ~ftp>
User nobody
Group nogroup

# We want clients to be able to login with “anonymous” as well as “ftp”.
UserAlias anonymous ftp

# Limit the maximum number of anonymous logins.
MaxClients 10

# We want ‘welcome.msg’ displayed at login, and ‘.message’ displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message

# Limit WRITE everywhere in the anonymous chroot.
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>

<Anonymous /home/utuhkulalil/www/ftp/>

User utuhkulalil
Group nogroup
UserAlias anonymous ftp

DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off

MaxClients 10
DisplayLogin welcome.msg
DisplayFirstChdir .message
<Directory *>
<Limit WRITE>
AllowAll
</Limit>
</Directory>
</Anonymous>

TransferLog /var/log/tranferlog

DenyFilter \*.*/

Leave a Reply

Your email address will not be published.