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/07/03 13:57] – [Creación de usuarios] javi | informatica:linux:pure-fptd [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 27: | Line 27: | ||
2. Creamos el usuario de sistema ' | 2. Creamos el usuario de sistema ' | ||
- | sudo useradd -g ftp -d / | + | sudo useradd -g ftp -d /dev/null ftp |
3. (OPCIONAL) Asignamos grupos suplementarios al usuario ftp, en mi caso mldonkey: | 3. (OPCIONAL) Asignamos grupos suplementarios al usuario ftp, en mi caso mldonkey: | ||
Line 60: | Line 60: | ||
2. Crear un enlace simbólico al fichero que indica el uso de usuarios virtuales: | 2. Crear un enlace simbólico al fichero que indica el uso de usuarios virtuales: | ||
- | ln -s ../ | + | |
Lógicamente ' | Lógicamente ' | ||
Line 66: | Line 66: | ||
3. Reiniciamos el servicio: | 3. Reiniciamos el servicio: | ||
- | / | + | |
===== Fijar puertos ===== | ===== Fijar puertos ===== | ||
- | Cada usuario concurrente consume 2 puertos. Es mejor por si las moscas abrir ambos TCP/UDP en el cortafuegos. | + | * Cada usuario concurrente consume 2 puertos |
+ | * Es mejor por si las moscas abrir ambos TCP/UDP en el cortafuegos | ||
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.1372859841.txt.gz · Last modified: 2015/04/13 20:19 (external edit)