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 [2012/01/30 17:20] – 87.221.36.176 | informatica:linux:mldonkey [2016/04/04 07:42] (current) – jose | ||
|---|---|---|---|
| Line 522: | Line 522: | ||
| 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 543: | 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 580: | 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 621: | Line 680: | ||
| telnet localhost 4000 | telnet localhost 4000 | ||
| + | ==== Error "Too many open files" ==== | ||
| - | |||
| - | ====== Error "Too many open files" ====== | ||
| Nos conectamos a la consola de mldonkey: | Nos conectamos a la consola de mldonkey: | ||
| # telnet localhost 4000 | # telnet localhost 4000 | ||
| Ponemos el usuario | Ponemos el usuario | ||
| - | > auth admin fermin | + | > auth admin xxxxxx |
| Full access enabled | Full access enabled | ||
| Miramos configuración: | Miramos configuración: | ||
| > runinfo | > runinfo | ||
| - | --Runinfo-- | + | < |
| + | | ||
| MLDonkey user: admin (PW Protected) - uptime: 9m 57s - running as mldonkey: | MLDonkey user: admin (PW Protected) - uptime: 9m 57s - running as mldonkey: | ||
| Enabled nets: | Enabled nets: | ||
| Line 643: | Line 702: | ||
| | | ||
| max file descriptors: | max file descriptors: | ||
| + | </ | ||
| Miramos ulimit | Miramos ulimit | ||
| Line 658: | Line 718: | ||
| as -1 -1 | 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.1327944038.txt.gz · Last modified: (external edit)
