informatica:linux:pure-fptd
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
informatica:linux:pure-fptd [2013/08/29 13:50] – [Fijar puertos] javi | informatica:linux:pure-fptd [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 71: | Line 71: | ||
* Cada usuario concurrente consume 2 puertos | * Cada usuario concurrente consume 2 puertos | ||
- | * Es mejor por si las moscas abrir ambos TCP/UDP en el cortafuegos si el servidor FTP esta detras de uno o mas dispositivos a traves de NAT (router, hipervisor KVM, etc...). **IMPORTANTE** Solo funciona si el cliente DESACTIVA el uso de FTP pasivo | + | * Es mejor por si las moscas abrir ambos TCP/UDP en el cortafuegos si el servidor FTP esta detras de uno o mas dispositivos a traves de NAT (router, hipervisor KVM, etc...). **IMPORTANTE** Solo funciona si el cliente DESACTIVA el uso de [[http:// |
sudo su | sudo su | ||
echo "30000 30001" > / | echo "30000 30001" > / | ||
sudo / | sudo / | ||
+ | |||
+ | **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: | ||
+ | |||
+ | < | ||
+ | man pure-ftpd | ||
+ | |||
+ | ... | ||
+ | | ||
+ | -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 | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | Y estas opciones tienen su correspondencia en: | ||
+ | |||
+ | < | ||
+ | man pure-ftpd-wrapper | ||
+ | |||
+ | ... | ||
+ | | ||
+ | There are several types of numerical values (one number, two numbers, one or two numbers, two octal numbers). | ||
+ | |||
+ | One number | ||
+ | " | ||
+ | |||
+ | Two numbers | ||
+ | " | ||
+ | |||
+ | Two numbers (with unlimited value) | ||
+ | This allows -1 in addition to positive numbers indicating an unlimited values. | ||
+ | |||
+ | " | ||
+ | |||
+ | One or two numbers | ||
+ | " | ||
+ | |||
+ | Two octal numbers | ||
+ | " | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | Veamos algunos ejemplos: | ||
+ | |||
+ | ^ pure-ftpd ^ pure-ftpd-wrapper ^ Archivo ^ Ejemplo de contenido ^ | ||
+ | | -c --maxclientsnumber | MaxClientsNumber | / | ||
+ | | -y --peruserlimits | PerUserLimits | / | ||
+ | |||
informatica/linux/pure-fptd.txt · Last modified: 2015/04/13 20:19 by 127.0.0.1