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/02/11 18:14] joseinformatica: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
informatica/linux/mldonkey.txt · Last modified: 2016/04/04 07:42 by jose