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 [2011/01/11 09:48] 127.0.0.1informatica: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 620: Line 672:
  
   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
 +<code>
 +      --Runinfo--
 +  MLDonkey user: admin (PW Protected) - uptime: 9m 57s - running as mldonkey:mldonkey
 +  Enabled nets:   Donkey BitTorrent FileTP
 +  Server usage: enabled
 +  Geoip: enabled, GeoLite data created by MaxMind, available from http://maxmind.com/
 +  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
 +                 language: EN - locale: UTF-8 - UTC offset: +0100
 +                 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)
 +</code>
 +
 +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:
 +  /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