User Tools

Site Tools


informatica:linux:pure-fptd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
informatica:linux:pure-fptd [2013/08/29 13:51] javiinformatica:linux:pure-fptd [2015/04/13 20:19] (current) – external edit 127.0.0.1
Line 76: Line 76:
   echo "30000 30001" > /etc/pure-ftpd/conf/PassivePortRange   echo "30000 30001" > /etc/pure-ftpd/conf/PassivePortRange
   sudo /etc/init.d/pure-ftpd restart   sudo /etc/init.d/pure-ftpd restart
 +
 +**OJO**: esta opción limita el número máximo de usuarios que se pueden conectar al mismo tiempo. Básicamente la fórmula es:
 +
 +Número máximo de usuarios concurrentes = Total puertos abiertos (2 en el ejemplo) / 2
 +
 +===== Otras configuraciones =====
 +
 +En general podemos ver las opciones de configuración haciendo:
 +
 +<code>
 +man pure-ftpd
 +
 +...
 +       Alternative style :
 +       -0 --notruncate
 +       -1 --logpid
 +       -4 --ipv4only
 +       -6 --ipv6only
 +       -a --trustedgid
 +       -A --chrooteveryone
 +       -b --brokenclientscompatibility
 +       -B --daemonize
 +       -c --maxclientsnumber
 +       -C --maxclientsperip
 +       -d --verboselog
 +       -D --displaydotfiles
 +       -e --anonymousonly
 +       -E --noanonymous
 +       -f --syslogfacility
 +       -F --fortunesfile
 +       -g --pidfile
 +       -G --norename
 +       -h --help
 +       -H --dontresolve
 +       -i --anonymouscantupload
 +       -I --maxidletime
 +       -j --createhomedir
 +       -J --tlsciphersuite
 +       -k --maxdiskusagepct
 +       -K --keepallfiles
 +       -l --login
 +       -L --limitrecursion
 +       -m --maxload
 +       -M --anonymouscancreatedirs
 +       -n --quota
 +       -N --natmode
 +       -o --uploadscript
 +       -O --altlog
 +       -p --passiveportrange
 +       -P --forcepassiveip
 +       -q --anonymousratio
 +       -Q --userratio
 +       -r --autorename
 +...
 +</code>
 +
 +Y estas opciones tienen su correspondencia en:
 +
 +<code>
 +man pure-ftpd-wrapper
 +
 +...
 +   Numerical values
 +       There are several types of numerical values (one number, two numbers, one or two numbers, two octal numbers).
 +
 +       One number
 +           "MaxClientsNumber", "MaxClientsPerIP", "MaxDiskUsage", "MaxIdleTime", "MaxLoad", "MinUID", "TLS", "TrustedGID".
 +
 +       Two numbers
 +           "AnonymousRatio", "LimitRecursion", "PassivePortRange", "PerUserLimits", "Quota", "UserRatio".
 +
 +       Two numbers (with unlimited value)
 +           This allows -1 in addition to positive numbers indicating an unlimited values.
 +
 +           "LimitRecursion".
 +
 +       One or two numbers
 +           "AnonymousBandwidth", "UserBandwidth".
 +
 +       Two octal numbers
 +           "Umask".
 +...
 +</code>
 +
 +Veamos algunos ejemplos:
 +
 +^ pure-ftpd ^ pure-ftpd-wrapper ^ Archivo ^ Ejemplo de contenido ^ 
 +| -c --maxclientsnumber | MaxClientsNumber | /etc/pure-ftpd/conf/MaxClientsNumber | 5 |
 +| -y --peruserlimits | PerUserLimits | /etc/pure-ftpd/conf/PerUserLimits | 1 10 |
 +
  
informatica/linux/pure-fptd.txt · Last modified: 2015/04/13 20:19 by 127.0.0.1