PDA

View Full Version : Ancora amule e kad....... inizio a sclerare :(


stefanoxjx
15-06-2006, 23:46
Ciao a tutti, il punto è questo:
ho installato amuled+amulweb versione cvs del 05/06/06 nel serverino.
Dopo svariati tentativi per vedere la scritta KAD: Connected (OK), sono riuscito nel mio intento e ho vissuto felice e sereno per 3 lunghi giorni.
Questa sera, mi accorgo che KAD è disconnected :muro:; dopo svariati tentativi a vuoto per vedere se tornava ok, mi sono deciso a fare la prova di killare il processo e a rilanciarlo.
Dopo questa operazione mi sono trovato con questa situazione:

http://teknoman.homelinux.com/amuled.jpg

Eppure le impostazioni del firewall sono sempre le stesse:


Server:/home/stefano# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- 192.168.0.0/24 anywhere
ACCEPT all -- localhost.localdomain anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT tcp -- anywhere anywhere tcp dpt:pop3
ACCEPT tcp -- anywhere anywhere tcp dpt:spamd
ACCEPT tcp -- anywhere anywhere tcp dpt:4242
ACCEPT tcp -- anywhere anywhere tcp dpt:4661
ACCEPT tcp -- anywhere anywhere tcp dpt:4662
ACCEPT udp -- anywhere anywhere udp dpt:4665
ACCEPT udp -- anywhere anywhere udp dpt:4672
ACCEPT tcp -- anywhere anywhere tcp dpt:4711
ACCEPT tcp -- anywhere anywhere tcp dpt:4712

Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- 192.168.0.0/24 anywhere

Chain OUTPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere 192.168.0.0/24
ACCEPT all -- anywhere localhost.localdomain
ACCEPT all -- anywhere anywhere state NEW,RELATED,ESTABLISHED


C'è una spiegazione logica a tutto questo? :muro:

Grazie.

scorpion89
16-06-2006, 11:14
Me la fatto anke a me xò io avevo MLDonkey attivo :ciapet:

Ciao

stefanoxjx
16-06-2006, 12:45
Me la fatto anke a me xò io avevo MLDonkey attivo :ciapet:

Ciao

Ho appena verificato e ora la connessione KAD è ok :boh:
Probabilmente (per fortuna) era un problema della rete KAD, perchè altrimenti iniziavo a sclerare con questa storia del firewall :)

ingeniere
19-06-2006, 08:38
Già che è aperto questo post, evito di crearne uno nuovo.
Il mio problema, indovinate un po', è con Kad. Rimane sempre in "Kad (off)" senza io abbia la ben che minima idea di cosa si tratti. Pensavo fosse il firewall, così l'ho disabilitato, ma nessun miglioramento. Cosa diavolo può essere?

Grazie mille. Ciao a tutti

stefanoxjx
19-06-2006, 14:23
Continuo anch'io con i problemi :muro:
Trovo molto spesso la rete KAD sconnessa e volevo chiedere se qualcuno conosce il modo di ricollegarla senza dover per forza killare e rilanciare il demone amuled

Grazie.

Scoperchiatore
19-06-2006, 17:25
Allora a me è sempre funzionato perfettamente. In questi casi, quindi, il modo migliore è andare a tentativi :D
Togliete dallo scriptino firewall (o da Firestarter) tutto ciò che riguarda amule (ovviamente fatevi un backup)
Poi, ritirate su il firewall senza le regole per amule.
E usate questo scriptino per aprire le porte di amule. E' sicuramente confuso e va anche rivisto per varie modifiche, ma funziona. Se poi lo modificate, ripostatelo :D

open_amule_ports:


#!/bin/bash
RAZORBACK_2=195.245.244.243
RAZORBACK_2_PORT=4661

DONKEY1=62.241.53.2
DONKEY2=62.241.53.16
DONKEY1_PORT=8080
DONKEY1_PORT2=4242

KAD_UDP_PORT=4672
TCP_PORT=4662
UDP_PORT=4672
UDP_PORT_E=$(($TCP_PORT+3))
iptables -I FIREWALL -p tcp -m multiport --ports $TCP_PORT -j ACCEPT
RESULT_1=$?
iptables -I OUTPUT -p tcp -m multiport --ports $TCP_PORT -j ACCEPT
RESULT_2=$?
if [ $RESULT_1 -eq 0 ] && [ $RESULT_2 -eq 0 ]
then
echo " ed2k ->TCP ports $TCP_PORT OPEN"
else
echo " ** Error in opening TCP:$TCP_PORT **"
fi

iptables -I FIREWALL -p udp -m multiport --ports $UDP_PORT,$UDP_PORT_E -j ACCEPT
RESULT_1=$?
iptables -I OUTPUT -p udp -m multiport --ports $UDP_PORT,$UDP_PORT_E -j ACCEPT
RESULT_2=$?
if [ $RESULT_1 -eq 0 ] && [ $RESULT_2 -eq 0 ]
then
echo " ed2k ->UDP ports $UDP_PORT [and $UDP_PORT_E for extended requests] OPEN"
else
echo " ** Error in opening UDP:$UDP_PORT,$UDP_PORT_E **"
fi
iptables -I FIREWALL -p udp -m multiport --ports $KAD_UDP_PORT -j ACCEPT
iptables -I FIREWALL -p tcp -m multiport --ports $KAD_UDP_PORT -j ACCEPT
RESULT_1=$?
iptables -I OUTPUT -p udp -m multiport --ports $KAD_UDP_PORT -j ACCEPT
iptables -I OUTPUT -p tcp -m multiport --ports $KAD_UDP_PORT -j ACCEPT
RESULT_2=$?
if [ $RESULT_1 -eq 0 ] && [ $RESULT_2 -eq 0 ]
then
echo " kad ->UDP port $KAD_UDP_PORT OPEN"
else
echo " ** Error in opening UDP:$KAD_UDP_PORT **"
fi
#Razorback 2 explicit rules
iptables -I OUTPUT -d $RAZORBACK_2 -p tcp -m multiport --ports $RAZORBACK_2_PORT -j ACCEPT
RESULT_1=$?
iptables -I FIREWALL -s $RAZORBACK_2 -p tcp -m multiport --ports $RAZORBACK_2_PORT -j ACCEPT
RESULT_2=$?
if [ $RESULT_1 -eq 0 ] && [ $RESULT_2 -eq 0 ]
then
echo " --> Razorback 2: $RAZORBACK_2:$RAZORBACK_2_PORT enabled in/out <--"
else
echo " ** Razorback 2: $RAZORBACK_2:$RAZORBACK_2_PORT NOT enabled in/out **"
fi

#Donkey Server #1 explicit rules
iptables -I OUTPUT -d $DONKEY1 -j ACCEPT
#-p tcp -m multiport --dports $DONKEY1_PORT,$DONKEY1_PORT2 -j ACCEPT
RESULT_1=$?
iptables -I FIREWALL -s $DONKEY1 -j ACCEPT
# -p tcp -m multiport --sports $DONKEY1_PORT,$DONKEY1_PORT2 -j ACCEPT
RESULT_2=$?
if [ $RESULT_1 -eq 0 ] && [ $RESULT_2 -eq 0 ]
then
echo " --> DonkeyServer 1: $DONKEY1:$DONKEY1_PORT,$DONKEY1_PORT2 enabled in/out <--"
else
echo " ** DonkeyServer 1: $DONKEY1:$DONKEY1_PORT,$DONKEY1_PORT2 NOT enabled in/out **"
fi

#Donkey Server #2 explicit rules
iptables -I OUTPUT -d $DONKEY2 -j ACCEPT
#-p tcp -m multiport --dports $DONKEY1_PORT,$DONKEY1_PORT2 -j ACCEPT
RESULT_1=$?
iptables -I FIREWALL -s $DONKEY2 -j ACCEPT
# -p tcp -m multiport --sports $DONKEY1_PORT,$DONKEY1_PORT2 -j ACCEPT
RESULT_2=$?
if [ $RESULT_1 -eq 0 ] && [ $RESULT_2 -eq 0 ]
then
echo " --> DonkeyServer 1: $DONKEY2:$DONKEY1_PORT,$DONKEY1_PORT2 enabled in/out <--"
else
echo " ** DonkeyServer 1: $DONKEY2:$DONKEY1_PORT,$DONKEY1_PORT2 NOT enabled in/out **"
fi



FIREWALL è la mia chain per l'input. Quindi, se avete la vostra chain firewall, sostituitela col nome della vostra chain, altrimenti mettete invece di FIREWALL, direttamente INPUT ;)

Scoperchiatore
19-06-2006, 17:27
Continuo anch'io con i problemi :muro:
Trovo molto spesso la rete KAD sconnessa e volevo chiedere se qualcuno conosce il modo di ricollegarla senza dover per forza killare e rilanciare il demone amuled

Grazie.

Io l'ho compilato senza amuled, e questo potrebbe essere un altro buon tentativo da fare. Ti serve molto amuled? Hai provato amuled --help? Magari ha un
amuled restart-kad

Comunque, ormai sono 2 anni che lo uso, mai problemi, e mi hanno pure cambiato ADSL. Quindi io credo che sia un qualche problema o di versione o di compilazione o di settaggi.

-Slash
19-06-2006, 17:38
lo fa sempre a me con amule adunanza sull'altro computer. rimane sempre la scritta disconnected su kad.

invece di solito quando accendevo sul portatile mi rimaneva la scritta disconnected per un po' e poi passava a firewalled e dopo anni va su connected.

su windoz invece ci mette 3 secondi a connettersi :mad:

stefanoxjx
19-06-2006, 18:17
Io l'ho compilato senza amuled, e questo potrebbe essere un altro buon tentativo da fare. Ti serve molto amuled? Hai provato amuled --help? Magari ha un
amuled restart-kad

Comunque, ormai sono 2 anni che lo uso, mai problemi, e mi hanno pure cambiato ADSL. Quindi io credo che sia un qualche problema o di versione o di compilazione o di settaggi.

Purtroppo amuled --help non mi è di aiuto:


Server:/home/stefano# amuled --help
amuled: OnInit - starting timer
Usage: amuled [-v] [-h] [-i] [-f] [-d] [-o] [-r]
-v, --version Displays the current version number.
-h, --help Displays this information.
-i, --enable-stdin Does not disable stdin.
-f, --full-daemon Fork to background.
-d, --disable-fatal Does not handle fatal exception.
-o, --log-stdout Print log messages to stdout.
-r, --reset-config Resets config to default values.


Amuled mi serve perchè il mulo gira sul server che non ha interfaccia grafica :muro:

stefanoxjx
19-06-2006, 18:18
lo fa sempre a me con amule adunanza sull'altro computer. rimane sempre la scritta disconnected su kad.

invece di solito quando accendevo sul portatile mi rimaneva la scritta disconnected per un po' e poi passava a firewalled e dopo anni va su connected.

su windoz invece ci mette 3 secondi a connettersi :mad:

Quando lancio amuled, si collega alla rete KAD in 3 secondi, solo che dopo 1 o 2 giorni, lo trovo disconnected e devo killare e riavviare il processo, con la conseguente perdita dei download in corso :cry:

Scoperchiatore
19-06-2006, 22:44
Purtroppo amuled --help non mi è di aiuto:


Server:/home/stefano# amuled --help
amuled: OnInit - starting timer
Usage: amuled [-v] [-h] [-i] [-f] [-d] [-o] [-r]
-v, --version Displays the current version number.
-h, --help Displays this information.
-i, --enable-stdin Does not disable stdin.
-f, --full-daemon Fork to background.
-d, --disable-fatal Does not handle fatal exception.
-o, --log-stdout Print log messages to stdout.
-r, --reset-config Resets config to default values.


Amuled mi serve perchè il mulo gira sul server che non ha interfaccia grafica :muro:

Ed allora prova a usare il mio firewall, non so che dirti :boh:
Potrebbe essere un bug di amuled