Sabtu, 16 Juni 2007

Konfigurasi FTP Server pada Debian woody

 1)Pengertian
FTP (File Transfer Protocol) server berfungsi untuk mentransfer file dari client ke server ataupun sebaliknya.
Software yang digunakan adalah proftpd.

2)Konfigurasi Server
2.1) Buka file /etc/proftpd.conf:

#vi /etc/proftpd.conf

Lalu rubah konfigurasi file ini menjadi seperti dibawah ini, gunakan tombol [insert] untuk mulai mengedit:

#
# /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#

ServerName "Debian"
ServerType standalone
DeferWelcome off

MultilineRFC2228 on
DefaultServer on
ShowSymlinks on

TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200

DisplayLogin welcome.msg
DisplayFirstChdir .message
ListOptions "-l"

DenyFilter \*.*/

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd off

# Uncomment this if you would use TLS module:
#TLSEngine on

# Uncomment this if you would use quota module:
#Quotas on

# Uncomment this if you would use ratio module:
#Ratios on

# Port 21 is the standard FTP port.
Port 21

# 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 that the server normally runs at.
User nobody
Group nogroup

# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite on

# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
# It is on by default.
#DelayEngine off

# A basic anonymous configuration, no upload directories.


User ftp
Group nogroup
# # We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# # Cosmetic changes, all files belongs to ftp user
DirFakeUser on ftp
DirFakeGroup on ftp
#
RequireValidShell off
#
# # 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


DenyAll


#
# # Uncomment this if you're brave.

# # # Umask 022 is a good standard umask to prevent new files and dirs
# # # (second parm) from being group and world writable.
Umask 022 022

DenyAll


AllowAll





Keluar dan save dari editor vi dengan [Esc] lalu :wq.

2.2) Restart ftp server anda:

#/etc/init.d/proftpd restart

2.2) Coba dari computer yang terhubung dengan klien dan jalankan:
Jika klien anda windows buka:
Start->run->ketikan “cmd”
Setelah terbuka command prompt ketikan ftp [alamat ip address komputer server anda]:
Contoh: ftp 192.168.1.1

2.3) Setelah itu jika computer menanyakan username coba masukkan”anonymous (enter)” lalu enter 2 kali tanpa memasukkan password.

2.5)Apabila ada tulisan “Anonymous login OK” berarti setting FTP untuk user anonymous telah berhasil.

2.5)Setelah anda masuk ke FTP server ketikan bye (enter).

2.6)Setelah tampil C:\ lagi, ketikan ftp [alamat ip server] seperti diatas, lalu saat menanyakan username masukkan nama user yang ada di server anda. Contohnya username admin(enter) dan password admin (enter), lalu jika ada tulisan “User admin logged in” maka FTP untuk user terauthentikasi telah berhasil
Setelah semua itu berjalan dan telah tertesting dengan baik berarti FTP server telah berjalan di system anda.

Tidak ada komentar: