User Tools

Site Tools


informatica:linux:mldonkey

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
Last revisionBoth sides next revision
informatica:linux:mldonkey [2012/01/30 17:21] 87.221.36.176informatica:linux:mldonkey [2016/04/04 07:34] jose
Line 522: Line 522:
  
 Nos conectamos a mldonkey: Nos conectamos a mldonkey:
-  # telnet localhost+  # telnet localhost 4000
   Trying ::1...   Trying ::1...
   Trying 127.0.0.1...   Trying 127.0.0.1...
Line 580: Line 580:
 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://localhost:4080) teclear en la ventana justo a la derecha de "DL":
 +
 +  dllink /ruta/archivo.torrent
 +  
 +Y pulsar "Enter"
 +
 +
 +===== Cortafuegos =====
 +
 +<code>
 +IF=ppp0
 +IPTABLES=/sbin/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
 +</code>
  
 ===== Errores ===== ===== Errores =====
Line 621: Line 673:
   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
- +<code> 
- --Runinfo--+      --Runinfo--
   MLDonkey user: admin (PW Protected) - uptime: 9m 57s - running as mldonkey:mldonkey   MLDonkey user: admin (PW Protected) - uptime: 9m 57s - running as mldonkey:mldonkey
   Enabled nets:   Donkey BitTorrent FileTP   Enabled nets:   Donkey BitTorrent FileTP
Line 645: Line 695:
                  max_string_length: 16777211 - word_size: 32 - max_array_length: 4194303 - max_int: 1073741823                  max_string_length: 16777211 - word_size: 32 - max_array_length: 4194303 - max_int: 1073741823
                  max file descriptors: 1024 - max useable file size: 2^63-1 bits (do the maths ;-p)                  max file descriptors: 1024 - max useable file size: 2^63-1 bits (do the maths ;-p)
 +</code>
  
 Miramos ulimit Miramos ulimit
Line 660: Line 711:
   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:
 +  /etc/security/limits.conf
 +
 +  mldonkey        hard    nofile          2048
 +  mldonkey        soft    nofile          2048
 +
 +Para aber cuantos ficheros tenemos abiertos:
 +Sacamos el proceso del mldonkey:
 +  # ps -ef | grep mldonkey
 +
 +  mldonkey 12895      4 18:46 ?        00:01:10 /usr/bin/mlnet -log_file /var/log/mldonkey/mlnet.log -pid /var/run/mldonkey
 +Miramos ficheros abiertos:
 +  # lsof -p 12895  | wc -l
 +
 +  212
informatica/linux/mldonkey.txt · Last modified: 2016/04/04 07:42 by jose