pantz.org banner
Proftpd config file
Posted on 12-13-2005 01:13:00 UTC | Updated on 12-13-2005 01:13:00 UTC
Section: /software/proftpd/ | Permanent Link

This is the config file from an install of ProFTPD 2.9.1. /disk01 is a read only section of the ftp server. Anonymous access is granted for everyone. In the directory /disk01/incoming you can write, but you can not overwrite or delete files or directories. This server is locked down pretty good for an anon server. Change setting to suit your needs.

The config file is named proftpd.conf. It can usually be found in the /etc dir.

# ProFTPd configuration file

# Daemon configuration 
ServerName              "FTP Server"
ServerType              standalone
DisplayConnect          /etc/issue.net
AllowOverride           off
AllowOverwrite          off
AllowForeignAddress     off
DeleteAbortedStores     on
DefaultServer           on
DeferWelcome            on
ServerIdent             off
UseReverseDNS           on
IdentLookups            off
TimesGMT                off
UseGlobbing             on
MultilineRFC2228        on
ShowSymlinks            off
RootLogin               off
RequireValidShell       no
DenyFilter              \*.*/
ListOptions             +R strict

# Lockdown connections and connection attemps
MaxClients              3 "The maximum number of allowed users (%m) are already connected."
MaxInstances            3
MaxClientsPerUser       3 "The maximum number of clients (%m) for this user already connected."
MaxHostsPerUser         3 "The maximum number of hosts (%m) for this user already connected."
MaxClientsPerHost       1 "The maximum number of clients (%m) from your host are already connected."
MaxLoginAttempts        1

# Lockdown TCP stack 
Port                    21
PassivePorts            63570 63750
SocketOptions rcvbuf    8192 
SocketOptions sndbuf    8192 
CommandBufferSize       512
tcpBackLog              5
tcpNoDelay              on
TransferRate            APPE,STOR 12000
TransferRate            RETR 12000

# Log format and location
LogFormat               default "%t %h %a %s %m %f %b %T \"%r"\"
ExtendedLog             /var/log/proftpd ALL default
SystemLog               /var/log/proftpd ALL default
TransferLog             /var/log/proftpd ALL default

# Limit login times and timeouts to drop dead clients.
TimeoutLogin            60
TimeoutIdle             60
TimeoutNoTransfer       60
TimeoutStalled          60
TimeoutSession          28800

# Setup fake properties
DirFakeGroup            on      ftp
DirFakeUser             on      ftp
DirFakeMode             0400

# User Access Control
<Limit LOGIN>
    Deny        All
</Limit>

# Anonymous configuration
<Anonymous /disk01>

   User         ftp
   Group        nogroup
   UserAlias    anonymous ftp
   HideNoAccess on
   <Limit LOGIN>
        Allow   All
   </Limit>
   <Limit ALL>
        Deny    All
   </Limit>
   <Limit PWD CWD LIST RETR>

        Allow   ALL
   </Limit>
   <Directory /disk01/incoming>
       Umask   022  022
      <Limit MKD STOR>
        Allow   All
      </Limit>
   </Directory>

</Anonymous>

Reddit!

Related stories


RSS Feed RSS feed logo

About


3com

3ware

alsa

alsactl

alsamixer

amd

android

apache

areca

arm

ati

auditd

awk

badblocks

bash

bind

bios

bonnie

cable

carp

cat5

cdrom

cellphone

centos

chart

chrome

chromebook

cifs

cisco

cloudera

comcast

commands

comodo

compiz-fusion

corsair

cpufreq

cpufrequtils

cpuspeed

cron

crontab

crossover

cu

cups

cvs

database

dbus

dd

dd_rescue

ddclient

debian

decimal

dhclient

dhcp

diagnostic

diskexplorer

disks

dkim

dns

dos

dovecot

drac

dsniff

dvdauthor

e-mail

echo

editor

emerald

encryption

ethernet

expect

ext3

ext4

fat32

fedora

fetchmail

fiber

filesystems

firefox

firewall

flac

flexlm

floppy

flowtools

fonts

format

freebsd

ftp

gdm

gmail

gnome

google

gpg

greasemonkey

greylisting

growisofs

grub

hacking

hadoop

harddrive

hba

hex

hfsc

html

html5

http

https

hulu

idl

ie

ilo

intel

ios

iperf

ipmi

iptables

ipv6

irix

javascript

kde

kernel

kickstart

kmail

kprinter

krecord

kubuntu

kvm

lame

ldap

linux

logfile

lp

lpq

lpr

maradns

matlab

memory

mencoder

mhdd

mkinitrd

mkisofs

moinmoin

motherboard

mouse

movemail

mplayer

multitail

mutt

myodbc

mysql

mythtv

nagios

nameserver

netflix

netflow

nginx

nic

ntfs

ntp

nvidia

odbc

openbsd

openntpd

openoffice

openssh

openssl

openvpn

opteron

parted

partimage

patch

perl

pf

pfflowd

pfsync

photorec

php

pop3

pop3s

ports

postfix

power

procmail

proftpd

proxy

pulseaudio

putty

pxe

python

qemu

r-studio

raid

recovery

redhat

router

rpc

rsync

ruby

saltstack

samba

schedule

screen

scsi

seagate

seatools

sed

sendmail

sgi

shell

siw

smtp

snort

solaris

soundcard

sox

spam

spamd

spf

spotify

sql

sqlite

squid

srs

ssh

ssh.com

ssl

su

subnet

subversion

sudo

sun

supermicro

switches

symbols

syslinux

syslog

systemd

systemrescuecd

t1

tcpip

tcpwrappers

telnet

terminal

testdisk

tftp

thttpd

thunderbird

timezone

ting

tls

tools

tr

trac

tuning

tunnel

ubuntu

unbound

vi

vpn

wget

wiki

windows

windowsxp

wireless

wpa_supplicant

x

xauth

xfree86

xfs

xinearama

xmms

youtube

zdump

zeromq

zic

zlib