informatica:linux:mldonkey
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatica:linux:mldonkey [2011/01/11 09:46] – 127.0.0.1 | informatica:linux:mldonkey [2016/04/04 07:42] (current) – jose | ||
|---|---|---|---|
| Line 491: | Line 491: | ||
| ===== Usuarios ===== | ===== Usuarios ===== | ||
| - | ===== Para crear un usuario desde la interfaz web ===== | + | |
| + | ==== Para crear un usuario desde la interfaz web ==== | ||
| 1. Entrar en la interfaz web | 1. Entrar en la interfaz web | ||
| Line 517: | Line 518: | ||
| 7. Para probar que funciona, borrar datos personales del navegador, cerrarlo, abrirlo, paso 1 y en el paso 2 teclear los datos suministrados en el paso 6 | 7. Para probar que funciona, borrar datos personales del navegador, cerrarlo, abrirlo, paso 1 y en el paso 2 teclear los datos suministrados en el paso 6 | ||
| - | ===== Crear usuario desde linea de comandos | + | |
| + | ==== Crear usuario desde linea de comandos ==== | ||
| Nos conectamos a mldonkey: | Nos conectamos a mldonkey: | ||
| - | # telnet localhost | + | # telnet localhost |
| Trying ::1... | Trying ::1... | ||
| Trying 127.0.0.1... | Trying 127.0.0.1... | ||
| Line 541: | Line 543: | ||
| | | ||
| mldonkey true 1 2 | mldonkey true 1 2 | ||
| + | |||
| + | useradd < | ||
| + | Por ejemplo: | ||
| + | useradd usuario contrasenya users . probando@correo.com | ||
| + | |||
| Añadir usuarios: | Añadir usuarios: | ||
| - | | + | useradd usuario contrasenya |
| Cambiar el correo: | Cambiar el correo: | ||
| - | | + | usermail usuario correo@dominio.com |
| + | |||
| Line 578: | Line 587: | ||
| A partir de ahora recibiremos un correo en esa dirección cuando se complete la descarga de cualquier fichero añadido por cualquier usuario a la mula. | A partir de ahora recibiremos un correo en esa dirección cuando se complete la descarga de cualquier fichero añadido por cualquier usuario a la mula. | ||
| + | ===== Bittorrent ===== | ||
| + | 1. Descargar el archivo .bittorrent **en el servidor** (si, es un toston) | ||
| + | |||
| + | 2. En la interfaz grafica (http:// | ||
| + | |||
| + | dllink / | ||
| + | | ||
| + | Y pulsar " | ||
| + | |||
| + | |||
| + | ===== Cortafuegos ===== | ||
| + | |||
| + | < | ||
| + | IF=ppp0 | ||
| + | IPTABLES=/ | ||
| + | MLDONKEY_HOST=192.168.1.2 | ||
| + | EDONKEY_PORT=4662 | ||
| + | KAD_PORT=8443 | ||
| + | OVERNET_PORT=5865 | ||
| + | BITTORRENT_PORT=6882 | ||
| + | OPENNAP_PORT=9999 | ||
| + | |||
| + | ## MLDonkey acting as Edonkey2000 client | ||
| + | $IPTABLES -I FORWARD -p tcp --dport $EDONKEY_PORT -j ACCEPT | ||
| + | $IPTABLES -I FORWARD -p udp --dport $(($EDONKEY_PORT + 4)) -j ACCEPT | ||
| + | $IPTABLES -t nat -I PREROUTING -i $IF -p tcp --dport $EDONKEY_PORT -j DNAT --to-destination $MLDONKEY_HOST | ||
| + | $IPTABLES -t nat -I PREROUTING -i $IF -p udp --dport $(($EDONKEY_PORT + 4)) -j DNAT --to-destination $MLDONKEY_HOST | ||
| + | |||
| + | ## MLDonkey acting as Kad client | ||
| + | $IPTABLES -I FORWARD -p tcp --dport $KAD_PORT -j ACCEPT | ||
| + | $IPTABLES -I FORWARD -p udp --dport $KAD_PORT -j ACCEPT | ||
| + | $IPTABLES -t nat -I PREROUTING -i $IF -p tcp --dport $KAD_PORT -j DNAT --to-destination $MLDONKEY_HOST | ||
| + | $IPTABLES -t nat -I PREROUTING -i $IF -p udp --dport $KAD_PORT -j DNAT --to-destination $MLDONKEY_HOST | ||
| + | |||
| + | ## MLDonkey acting as Overnet client | ||
| + | $IPTABLES -I FORWARD -p tcp --dport $OVERNET_PORT -j ACCEPT | ||
| + | $IPTABLES -I FORWARD -p udp --dport $OVERNET_PORT -j ACCEPT | ||
| + | $IPTABLES -t nat -I PREROUTING -i $IF -p tcp --dport $OVERNET_PORT -j DNAT --to-destination $MLDONKEY_HOST | ||
| + | $IPTABLES -t nat -I PREROUTING -i $IF -p udp --dport $OVERNET_PORT -j DNAT --to-destination $MLDONKEY_HOST | ||
| + | |||
| + | ## MLDonkey acting as BitTorrent client | ||
| + | $IPTABLES -I FORWARD -p tcp --dport $BITTORRENT_PORT -j ACCEPT | ||
| + | $IPTABLES -t nat -I PREROUTING -i $IF -p tcp --dport $BITTORRENT_PORT -j DNAT --to-destination $MLDONKEY_HOST | ||
| + | |||
| + | ## MLDonkey acting as OpenNap client | ||
| + | $IPTABLES -I FORWARD -p tcp --dport $OPENNAP_PORT -j ACCEPT | ||
| + | $IPTABLES -t nat -I PREROUTING -i $IF -p tcp --dport $OPENNAP_PORT -j DNAT --to-destination $MLDONKEY_HOST | ||
| + | |||
| + | ## Mula manual | ||
| + | iptables -A INPUT -i $INTERFAZ -p tcp --dport 13861 -j ACCEPT | ||
| + | iptables -A INPUT -i $INTERFAZ -p udp --dport 13861 -j ACCEPT | ||
| + | </ | ||
| ===== Errores ===== | ===== Errores ===== | ||
| Line 618: | Line 679: | ||
| telnet localhost 4000 | telnet localhost 4000 | ||
| + | |||
| + | ==== Error "Too many open files" ==== | ||
| + | |||
| + | Nos conectamos a la consola de mldonkey: | ||
| + | # telnet localhost 4000 | ||
| + | |||
| + | Ponemos el usuario | ||
| + | > auth admin xxxxxx | ||
| + | Full access enabled | ||
| + | |||
| + | Miramos configuración: | ||
| + | > runinfo | ||
| + | < | ||
| + | --Runinfo-- | ||
| + | MLDonkey user: admin (PW Protected) - uptime: 9m 57s - running as mldonkey: | ||
| + | Enabled nets: | ||
| + | Server usage: enabled | ||
| + | Geoip: enabled, GeoLite data created by MaxMind, available from http:// | ||
| + | IP blocking: no blocking list loaded | ||
| + | System info: Linux donquixot 2.6.32-5-686 #1 SMP Fri Dec 10 16:12:40 UTC 2010 i686 | ||
| + | | ||
| + | | ||
| + | max file descriptors: | ||
| + | </ | ||
| + | |||
| + | Miramos ulimit | ||
| + | > debug_rlimit | ||
| + | |||
| + | cpu -1 -1 | ||
| + | fsize -1 -1 | ||
| + | data -1 -1 | ||
| + | stack 8388608 -1 | ||
| + | core 0 -1 | ||
| + | rss -1 -1 | ||
| + | nprof -1 -1 | ||
| + | nofile 1024 1024 | ||
| + | memlock 65536 65536 | ||
| + | as -1 -1 | ||
| + | |||
| + | Para cambiarlo en caliente hacemos: | ||
| + | # ulimit -n 2048 | ||
| + | Para modificarlo para el usuario (se necesita reiniciar) editamos el fichero: | ||
| + | / | ||
| + | |||
| + | mldonkey | ||
| + | mldonkey | ||
| + | |||
| + | Para aber cuantos ficheros tenemos abiertos: | ||
| + | Sacamos el proceso del mldonkey: | ||
| + | # ps -ef | grep mldonkey | ||
| + | |||
| + | mldonkey 12895 | ||
| + | Miramos ficheros abiertos: | ||
| + | # lsof -p 12895 | wc -l | ||
| + | |||
| + | 212 | ||
informatica/linux/mldonkey.1294739214.txt.gz · Last modified: (external edit)
