FTP Server PROFTPD

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
caredox
Posts: 110
Joined: 21 Jun 2010, 09:18

FTP Server PROFTPD

Postby caredox » 19 Jul 2010, 15:13

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

# Includes DSO modules
Include /etc/proftpd/modules.conf

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6 on
# If set on you can experience a longer connection delay in many cases.
IdentLookups off

ServerName "ubuntu caredox"
ServerType inetd
DeferWelcome off

MultilineRFC2228 on
DefaultServer on
ShowSymlinks on

TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200

DisplayLogin welcome.msg
DisplayChdir .message true
ListOptions "-l"

DenyFilter \*.*/

# Use this to jail all users in their homes
#DefaultRoot

# Users require a valid shell listed in /etc/shells to login.
# Use this directive to release that constrain.
# RequireValidShell off

# Port 21 is the standard FTP port.
Port 2010

# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
# PassivePorts 49152 65534

# If your host was NATted, this option is useful in order to
# allow passive tranfers to work. You have to use your public
# address and opening the passive ports used on your firewall as well.
# MasqueradeAddress 1.2.3.4

# This is useful for masquerading address with dynamic IPs:
# refresh any configured MasqueradeAddress directives every 8 hours

# DynMasqRefresh 28800


# 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 caredox
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

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

# This is required to use both PAM-based authentication and local passwords
# AuthOrder mod_auth_pam.c* mod_auth_unix.c

# Be warned: use of this directive impacts CPU average load!
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
#
# UseSendFile off

TransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log


QuotaEngine off



Ratios off



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

DelayEngine on



ControlsEngine off
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock



AdminControlsEngine off


#
# Alternative authentication frameworks
#
#Include /etc/proftpd/ldap.conf
#Include /etc/proftpd/sql.conf

#
# This is used for FTPS connections
#
#Include /etc/proftpd/tls.conf

######YANG DITAMBAHIN##############
#konfigurasi Ftp Server dengan user Anonymous dan opsinya Read Only/baca saja

User ftp
Group nogroup
UserAlias anonymous ftp
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off
MaxClients 10
DisplayLogin welcome.msg
DisplayFirstChdir .message



DenyAll






konfigurasi Ftp Server dengan user Anonymous dan opsinya Read and Write/baca dan tulis.

User ftp
Group nogroup
UserAlias anonymous ftp
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off
MaxClients 10
DisplayLogin welcome.msg
DisplayFirstChdir .message



DenyAll






Display a message after login
AccessGrantMsg �Welcome to Ubuntu ftp Server!!!�
ServerIdent on �you�re at home�

DefaultRoot /home/ftp

MaxLoginAttempts 5


Create your log file

ExtendedLog /var/log/ftp.log

TransferLog /var/log/proftpd/xferlog

SystemLog /var/log/proftpd/proftpd.log



AllowUser caredox

Deny All





Umask 022 022

AllowOverwrite off



DenyAll









Umask 022 022

AllowOverwrite off



DenyAll









Umask 022 022

AllowOverwrite on


DenyAll







#konfigurasi membatasi tipe file upload
Reject files with this extension
PathDenyFilter "\\.(3gp|avi|mp3|mpg|wmv)$"


#konfigurasi membatasi besar file upload
Restrict upload to only 10 megabytes
#MaxStoreFileSize 10 Mb

#Tuning untuk server yang super sibuk (satuan detik)
TimeoutNoTransfer 60
TimeoutStalled 60
TimeoutIdle 120


#konfigurasi tambahan
Disable Ident Lookups
IdentLookups off

# Disable Reverse DNS Lookups
UseReverseDNS off

# Disable ls -R
ListOptions +R strict

# Disable checking for .ftpaccess
AllowOverride off

# Disable logging to wtmp file
WtmpLog off

#=======end=====

script yang ditambhin kgak bisa running..plizz dumz bantuin check...
User avatar
Tweaky
Posts: 3
Joined: 26 Jan 2010, 11:38

Re: FTP Server PROFTPD

Postby Tweaky » 19 Jul 2010, 15:16

Assalamualikum , bro punya script java buat upload download *.java gak?kalo bisa nantinya bisa di tag ke halaman web *.jsp
User avatar
c0jack
Posts: 743
Joined: 12 Jan 2010, 10:33
Location: Jogjakarta, Indonesia
Contact:

Re: FTP Server PROFTPD

Postby c0jack » 20 Jul 2010, 11:18

@caredox, ada pesan error kah? di konfigurasinya kok ada beberapa opsi yang dobel


ragards,
c0jack

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 1 guest