aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: high id but kad firewalled  (Read 17419 times)

reeky

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 88
high id but kad firewalled
« 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
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: high id but kad firewalled
« Reply #1 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.
Logged

heavyjoost

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: high id but kad firewalled
« Reply #2 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
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: high id but kad firewalled
« Reply #3 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
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

heavyjoost

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: high id but kad firewalled
« Reply #4 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
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1551
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: high id but kad firewalled
« Reply #5 on: September 27, 2005, 01:21:47 PM »

Look at the options dialog. There are such options.
Logged
Homefucking is killing prostitution

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: high id but kad firewalled
« Reply #6 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.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: high id but kad firewalled
« Reply #7 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
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

wardevil

  • Sr. Member
  • ****
  • Karma: -1
  • Offline Offline
  • Posts: 402
Re: high id but kad firewalled
« Reply #8 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.....
Logged
Linux user nº289016 at Linux counter

heavyjoost

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: high id but kad firewalled
« Reply #9 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.
Logged

wardevil

  • Sr. Member
  • ****
  • Karma: -1
  • Offline Offline
  • Posts: 402
Re: high id but kad firewalled
« Reply #10 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....
Logged
Linux user nº289016 at Linux counter

reeky

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 88
Re: high id but kad firewalled
« Reply #11 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
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: high id but kad firewalled
« Reply #12 on: September 28, 2005, 08:25:46 AM »

ed2k just checks your tcp port

kad needs more as it seams...
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

reeky

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 88
Re: high id but kad firewalled
« Reply #13 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
Logged

nubtumbler

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 39
Re: high id but kad firewalled
« Reply #14 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...
Logged
Pages: [1] 2