Apa itu ProFTPd ?
ProFTPd adalah sebuah aplikasi yang di gunakan untuk melakukan transfer data atau yang lebih dikenal dengan FTP(file transfer protokol).
Dengan menggunakan proftpd kita dapat membuat sebuah server FTP dimana nantinya kita bisa membuat sebuah server yang bisa memberikan fasilitas upload dan download dari server tersebut. ProFTPd juga mudah untuk di konfigurasikan.
Baik kalau gitu kita mulai saja percobaan kita kali ini. Disto yang saya gunakan adalah Centos 5.2.
Paket-paket yang di butuhkan:
1. Gcc Compiler ( gcc, gcc-c++ )
2. Paket ProFTPd yang dapat di download langsung dari website resminya (http://www.proftpd.org)
Ingat, sebelum anda memulai instalasi paket proftpd ini, silahkan pastikan terlebih dahulu apakah di server anda sudah terinstall GCC compiler, anda bisa mengeceknya dengan perintah di bawah ini:
[root@heri ~]# rpm -qa | grep gcc
gcc-c++-4.1.2-42.el5
libgcc-4.1.2-42.el5
gcc-4.1.2-42.el5
Jika anda sudah memenuhi syarat di atas mari kita mulai instalasinya.
Tahap-tahap Instalasi dan Konfigurasi:
1. Buat direktori untuk menyimpan hasil download ProFTPd:
[root@heri ~]# mkdir /downloads
2. Pindah direktori ke direktori downloads
[root@heri ~]# cd /downloads
3. Download paket ProFTPd:
[root@heri downloads]# wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.2rc1.tar.gz
4. Ekstrak paket tersebut:
[root@heri downloads]# tar xzvf proftpd-1.3.2rc1.tar.gz
5. Pindah ke direktori hasil ekstrakan proftpd tadi:
[root@heri downloads]# cd proftpd-1.3.2rc1
6. Kemudian tibalah saatnya kita mengkompile dan menginstall paket ProFTPd:
[root@heri proftpd-1.3.2rc1]# ./configure
[root@heri proftpd-1.3.2rc1]# make
[root@heri proftpd-1.3.2rc1]# make install
7. Buat user untuk menjalankan ProFTPd:
[root@heri ~]# useradd proftpd -s /dev/null
8. Membuat home direktori untuk user anonymous:
[root@heri ~]# mkdir /home/ftp
9. Kemudian edit file konfigurasi ProFTPd:
[root@heri ~]# vi /usr/local/etc/proftpd.conf
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "ProFTPD Heri Bambang Santoso"
ServerType standalone
DefaultServer on
# Port 21 is the standard FTP port.
Port 21
# Don't use IPv6 support by default.
# UseIPv6 off
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# 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
# Set the user and group under which the server will run.
User proftpd
Group proftpd
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>
# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous /home/ftp> <== Disini untuk mendefinisikan home direktori anonymous
User ftp
Group ftp
# 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
DisplayChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
10. Jalankan service proftpd;
[root@heri ~]# /usr/local/sbin/proftpd
11. Untuk membuktikan apakah service proftpd sudah berjalan dengan baik silahkan lihat dengan perintah berikut ini:
[root@heri ~]# ps aux | grep proftpd
proftpd 14418 0.0 0.4 2716 1076 ? Ss 12:35 0:00 proftpd: (accepting connections)
Jika outpout anda seperti di atas berarti service proftpd anda sudah berjalan dengan baik.
12. Jika menemukan error silahkan anda cek dengan perintah berikut ini:
[root@heri ~]# tail /var/log/messages
13. Sampai disini anda telah berhasil menginstall dan menjalankan ProFTPd dengan baik dan lancar.
Sekarang saatnya kita mencoba untuk mengakses ftp server yang telah kita buat tadi.
Kita akan mencoba dengan menggunakan user unix, disini saya contohkan user=heri dan password=1234
[root@heri ~]# ftp localhost
Connected to localhost.localdomain.
220 ProFTPD 1.3.2rc1 Server (ProFTPD Default Installation) [127.0.0.1]
500 AUTH not understood
500 AUTH not understood
KERBEROS_V4 rejected as an authentication type
Name (localhost:root): heri
331 Password required for heri
Password: 1234
230 User heri logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/home/heri" is the current directory
ftp>
14. Jika perintah di atas berhasil, maka kita akan mencoba untuk user anonymous:
[root@heri ~]# ftp localhost
Connected to localhost.localdomain.
220 ProFTPD 1.3.2rc1 Server (ProFTPD Default Installation) [127.0.0.1]
500 AUTH not understood
500 AUTH not understood
KERBEROS_V4 rejected as an authentication type
Name (localhost:root): anonymous
331 Anonymous login ok, send your complete email address as your password
Password:
230 Anonymous access granted, restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/" is the current directory
ftp>
15. Untuk lebih jelas mengenai perintah-perintah yang bisa di gunakan di proftpd anda dapat
membacanya di manual proftpd, dengan mengetikkan perintah “man proftpd”
[root@heri ~] man proftpd





sipa pak BOS, saya tak nyoba dulu, oh agar bisa diakses melalui internet ftpnya gimana cara setingannya BOS? jadi global gitu BOS?
Thanks banget om, aku lagi cari-cari cara install FTPD eh ketemu di sini.
Waw…mantap juragan..
lagi butuh banget penyelesaian masalah soal FTP, eh ktemu di artikel ini…
Terima kasih dan semoga makin kren aja blog nya…
Mantap