[hack] Lmule

$pooky Hunter spooky@libero.it
Gio 15 Maggio 2003 23:50:11 CEST


Ho un problema con Lmule, LOWID. Credo che sia un problema molto comune 
per gli utenti di questo programma per il file sharing.
Lmule mi dice che ho la porta su cui lavora lui è chiusa (lui dice da un 
firewall; io dico che non ho mai messo firewall sul mio pc, almeno non 
intenzionalmente, anche se in effetti tutto potrebbe essere, 'sta 
Mandrake ne prende di iniziative...) o cmq non raggiungibile, cosa 
falsissima perchè ho provato a mettermici in ascolto col NetCat e si è 
rivelata aperta.
Ho provato a utilizzare qualche altra porta, almeno un'altra 50ina, ma è 
stato tutto inutile.
Non è che per caso qualcuno di vuoi ha avuto un'esperienza simile alla 
mia e saprebbe aiutarmi?

Su un sito ho trovato uno script che adesso vi ripropongo:

#!/bin/sh

#
# This script assumes that there is a single machine
# behind an iptables enabled gateway which is running
# an emule or lmule client.  If you are running a client
# on the same machine for which the firewall is also
# enabled, the rules will be based in the INPUT and
# OUTPUT tables instead of the nat and FORWARD tables.
#

#
# begin configuration
#

# Path to iptables
IPTABLES="/sbin/iptables"

# External internet connected interface
EXTIF="eth0"

# Default server port
SERVERPORT=4661

# The port used by our client
CLIENTPORT=4662

# The port used by our client for the extended emule protocol
EXCHANGEPORT=4672

# The port used by our client for the web server
WEBPORT=4771

# The network address of our machine behind this gateway
CLIENTIP="192.168.254.1"

#
# end configuration
#



#
# Handle port forwarding for our client behind
# this gateway
#
$IPTABLES -t nat -I PREROUTING -i $EXTIF -p tcp --dport $CLIENTPORT -j 
DNAT --to $CLIENTIP:$CLIENTPORT
$IPTABLES -t nat -I PREROUTING -i $EXTIF -p udp --dport $EXCHANGEPORT -j 
DNAT --to $CLIENTIP:$EXCHANGEPORT
$IPTABLES -t nat -I PREROUTING -i $EXTIF -p tcp --dport $WEBPORT -j DNAT 
--to $CLIENTIP:$WEBPORT


#
# Enable forwarding rules to allow the above port
# forwarding connections to progress through
#
$IPTABLES -t FORWARD -i $EXTIF -p tcp -d $CLIENTIP/32 --dport 
$CLIENTPORT -j ACCEPT
$IPTABLES -t FORWARD -i $EXTIF -p udp -d $CLIENTIP/32 --dport 
$EXCHANGEPORT -j ACCEPT
$IPTABLES -t FORWARD -i $EXTIF -p tcp -d $CLIENTIP/32 --dport $WEBPORT 
-j ACCEPT

#
# Enable forwarding rules to allow our internal client
# to get to allowed ports
$IPTABLES -t FORWARD -i $EXTIF -p tcp -s $CLIENTIP/32 --dport 
$SERVERPORT -j ACCEPT
$IPTABLES -t FORWARD -i $EXTIF -p tcp -s $CLIENTIP/32 --dport 
$CLIENTPORT -j ACCEPT
$IPTABLES -t FORWARD -i $EXTIF -p udp -s $CLIENTIP/32 --dport 
$EXCHANGEPORT -j ACCEPT
$IPTABLES -t FORWARD -i $EXTIF -p tcp -s $CLIENTIP/32 --dport $WEBPORT 
-j ACCEPT

#
# Allow any established or related connections on
# to the external interface be forwarded on
#
$IPTABLES -t FORWARD -i $EXTIF -m state --state ESTABLISHED,RELATED -j 
ACCEPT


Ma che ci dovrei fare?
Ne ho fatto un file: emule-sh e l'ho messo in una cartella, ogni tanto 
provo a dare il comando $ /path/emule-sh da consule, ma non succede niente.
La cosa triste della faccenda è che non so assolutamente quello che sto 
facendo, la situazione si sta facendo alquanto frustrante...

Per la cronaca, a volte vi potesse essre d'aiuto: ho una connessione 
ADSL tramite un router (l'Ericsson HM220dp), la scheda ethernet è 
l'eth0, l'IP del router è 192.168.254.254 mentre quello del mio pc è 
192.168.254.1

Come al solito sono nelle vosrte mani.
Grazie a tutti in anticipo!

-- 
_________________________________________________________
$pooky Hunter ICQ#: 24081574
http://digilander.libero.it/spookyh

"Il sentimento più forte e più antico dell'animo umano
è la paura, e la paura più grande è quella dell'ignoto".
(H.P. Lovecraft)




Maggiori informazioni sulla lista golem-hack