aMule Forum

English => aMule Help => Topic started by: reeky on September 26, 2005, 05:55:38 PM

Title: high id but kad firewalled
Post by: reeky on September 26, 2005, 05:55:38 PM
i've compiled today cvs (20050926) using --enable-kad-compile flag; i wget the nodes.dat from http://download.overnet2000.de/nodes.dat then copied in .amule folder and started amule.
using the 'connect' button i connect to ed2k server with high id but kad is firewalled (as reported near the name of ed2k server). amule reads the kad contacts (amule log says: Read 146 Kad contacts) but kad info says:
kademlia status: running
state: disconnected
as i read somewhere amule needs time to 'understand' kad is not firewalled... well does it need more than 4 hours?
why kad doesn't work properly?

note:
i noticed that if i click on 'disconnect' button the content of nodes.dat changes so if i click again on 'connect' i'm again on ed2k with high id and kad firewalled but amule log says: Read 0 Kad contacts.

help?
thanx
Title: Re: high id but kad firewalled
Post by: wuischke on September 26, 2005, 08:35:49 PM
Have you allowed both, the 4662TCP and the 4672UDP in the SuseFirewall2? Afaik is the second the one needed for Kad.
I'm running amule still on suse and it switches to OK after about 10 secs. I'm behind a router (Linksys WRT54G) as well, and I've just forwared this two ports, so I 'ld guess the problem could be there.
Title: Re: high id but kad firewalled
Post by: heavyjoost on September 27, 2005, 11:07:06 AM
Is it possible to implement a user-defined setting which port to use? I'd like that because there are 2 computers in this network using the kad network
Title: Re: high id but kad firewalled
Post by: stefanero on September 27, 2005, 12:48:45 PM
huh?

you have that already....

in amule-prefs you can setup the tcp and upd ports, if you change those the ed2k and the kad port will change

the ports mentioned above are just the default once, you can change them anytime

stefanero
Title: Re: high id but kad firewalled
Post by: heavyjoost on September 27, 2005, 12:59:21 PM
Hmm well that's what I thought too, so my Kad port would be 4673 UDP (I set it at 4673). It still says firewalled, even when I use port 4673 and yes I mapped them in my router (as UDP). For some time it says firewalled and after that Kad is turned off, is this just because it's a CVS version? :P
Title: Re: high id but kad firewalled
Post by: Vollstrecker on September 27, 2005, 01:21:47 PM
Look at the options dialog. There are such options.
Title: Re: high id but kad firewalled
Post by: wuischke on September 27, 2005, 02:04:56 PM
I dunno exactly but try to set the difference between the TCP and the UDP-port to 10 (omg, my english gets worse and worse...) f.e. 6662TCP and 6672UDP, this misteriously helped some people who used emule.
Title: Re: high id but kad firewalled
Post by: stefanero on September 27, 2005, 02:26:47 PM
Quote
Originally posted by wuischke
I dunno exactly but try to set the difference between the TCP and the UDP-port to 10 (omg, my english gets worse and worse...) f.e. 6662TCP and 6672UDP, this misteriously helped some people who used emule.

never read that but hey give it a try...

@heavyjoost

and no it has nothing todo with being a cvs version, because everybody who uses Kad uses the cvs version, and its just 2-3guys who get firewalled or no connection at all. so its most likely to be their problem and not from teh client itself...
no problems here for example :P and I just run Kad and no ed2k at all...

stefanero
Title: Re: high id but kad firewalled
Post by: wardevil on September 27, 2005, 08:11:37 PM
Have you opened the udp/(tcp+3) port?
for example:if you have port 4662 as tcp so the (tcp+3)=4662+3=4665 udp port
I had the same problem on all the boxes i have amule,if i didnĀ“t open that port i always get kad firewalled  ?(

Cheers.....
Title: Re: high id but kad firewalled
Post by: heavyjoost on September 28, 2005, 01:01:31 AM
I mapped these ports:
TCP 4663
UDP 4666
UDP 4673

I configured aMule also for this. Kad does work now (did work before for some reason I don't know) but it still says "firewalled"; using CVS version 20050927.
Title: Re: high id but kad firewalled
Post by: wardevil on September 28, 2005, 02:18:35 AM
Well....i sucessfully compiled amule for windows and kad was firewalled with the udp/(tcp+3) not forward to the win box...so i redirected that port and kad is showing ok now....ahhh...with the same cvs as you...
I also have 2 more linux boxes with this version and kad is fine.
So...i guess you are one of the lucky ones with the kad firewalled thing   ?(

Cheers....
Title: Re: high id but kad firewalled
Post by: reeky on September 28, 2005, 07:43:36 AM
thanx for the answers.
well, my iptables is not configured via SuseFirewall but via guarddog, allowing ed2k protocol. tomorrow i'll be at home again so i can check the output of iptables -L.
but the question is: why the firewall is ok for ed2k network and not for kad?

bye
Title: Re: high id but kad firewalled
Post by: stefanero on September 28, 2005, 08:25:46 AM
ed2k just checks your tcp port

kad needs more as it seams...
Title: Re: high id but kad firewalled
Post by: reeky on September 29, 2005, 06:30:06 PM
this is part of iptables -L output

Code: [Select]
Chain f0to1 (1 references)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere            tcp spts:1024:65535 dpt:4662 state NEW
ACCEPT     udp  --  anywhere             anywhere            udp spts:1024:65535 dpt:4666
logdrop    all  --  anywhere             anywhere

Chain f1to0 (1 references)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere            tcp spts:1024:cvsup dpt:kar2ouche state NEW
ACCEPT     tcp  --  anywhere             anywhere            tcp spts:1024:cvsup dpt:4662 state NEW
ACCEPT     udp  --  anywhere             anywhere            udp spts:1024:cvsup dpt:4665
ACCEPT     udp  --  anywhere             anywhere            udp spts:1024:cvsup dpt:4666
...


seems that guarddog adds nothing about the 4672 udp port...
i have tryed to uncheck the ed2k protocol and adding ports manually... but doing so amule doesn't even connect to ed2k servers :(
well, i think i shold study a bit more iptables' man and guarddog's man...

bye
Title: Re: high id but kad firewalled
Post by: nubtumbler on October 03, 2005, 10:02:50 PM
Quote
Originally posted by wuischke
I dunno exactly but try to set the difference between the TCP and the UDP-port to 10 (omg, my english gets worse and worse...) f.e. 6662TCP and 6672UDP, this misteriously helped some people who used emule.

This worked for me.  I'm running cvs-20051002 with a big contiguous range of ports open, both tcp & udp.

Initially, my udp was set to be tcp+1.   I was seeing "kad firewalled" in the status area even after hours of high-id server connection.  After changing the udp to be tcp + 10, I get  'kad connected' and 'kad state ok' in seconds.

Kad searches still don't work for me though...
Title: Re: high id but kad firewalled
Post by: Carcass on January 06, 2006, 11:06:47 AM
I haven't resolve the problem instead..................... :(

I use guarddog and I have created the rule for udp 4672, once a week I change my cvs from repository and the last week kad not problem...........

Now with last cvs 01/06/05 with the same rule kad is firewalled....

I have put other port/rule but nothing........

Have you an advice for me??????

(http://img530.imageshack.us/img530/5002/mydesk99jx.png) (http://imageshack.us)

PS: I use this 3d instead to open another with the same topic  :))