aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Ten minutes after closing aMule I still have connections  (Read 4038 times)

quimm2003

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Ten minutes after closing aMule I still have connections
« on: July 06, 2008, 03:53:38 PM »

Dear aMule friends,

First of all, congratulations, and thank you for this new aMule relesase! It works fine for me.

I don't know if this is a bug, but 10 minutes after closing aMule, I still have connections from a few IP addresses, and there's an ACK response outgoing through the aMule TCP and UDP port (whireshark shows it). So I close this ports everytime I close aMule, and after a while the number of incoming connections decreases. Is this normal?

I run aMule 2.2.1 (gui, whithout amuleweb and without amuled, all messages filtered, and nobody can browse my shared files; connected to Saugstube server, high id and kad ok) on Ubuntu 7.04 with kernel 2.6.20-17-generic. I post some of  captured packets (my IP: 192.168.11.2, aMule TCP port: 62555):

Code: [Select]
No.     Time            Source              Destination           Protocol Info
      5   0.454580    88.24.153.233        192.168.11.2          TCP         2365 > 62555 [SYN] Seq=0 Len=0 MSS=1452
      6   0.454700    192.168.11.2          88.24.153.233        TCP         62555 > 2365 [RST, ACK] Seq=0 Ack=1 Win=0 Len=0
      7   1.089035     88.24.153.233        192.168.11.2          TCP         2365 > 62555 [SYN] Seq=0 Len=0 MSS=1452
      8  1.089128      192.168.11.2          88.24.153.233        TCP         62555 > 2365 [RST, ACK] Seq=0 Ack=1 Win=0 Len=0
      9   1.694918      88.24.153.233        192.168.11.2          TCP         2365 > 62555 [SYN] Seq=0 Len=0 MSS=1452
     10  1.695010      192.168.11.2          88.24.153.233        TCP        62555 > 2365 [RST, ACK] Seq=0 Ack=1 Win=0 Len=0

Thanks
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Ten minutes after closing aMule I still have connections
« Reply #1 on: July 06, 2008, 09:13:23 PM »

The other clients keep on opening connections to you for a while, that's perfectly normal.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Ten minutes after closing aMule I still have connections
« Reply #2 on: July 06, 2008, 09:59:04 PM »

The other clients keep on opening connections to you for a while, that's perfectly normal.
Except if aMule has been shut down before. The who is accepting the connection?
Logged
concordia cum veritate

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Ten minutes after closing aMule I still have connections
« Reply #3 on: July 06, 2008, 10:49:22 PM »

I'm no wireshark expert I admit. But isn't "ACK" just the acknowledge from the network card successfully receiving a packet sent to it's MAC adress ? Then it's progressed in the OS's IP stack (and dropped since there is no more process listening for it). Note the "len=0" - looks like failed attempts to open a connection to me.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

quimm2003

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Ten minutes after closing aMule I still have connections
« Reply #4 on: July 07, 2008, 09:14:47 AM »

Yes, I've also seen this "len = 0", and I understand it's normal the clients keep on opening connections to me, but I was surprised that it happens ten minutes after closing aMule. You know, in Europe there's a prosecution on P2P users... Using "whois" I've seen that IP addresses opening connections came from main ISPs: telefonica, jazztel, euskaltel... Not surprising. But I wrote them a mail to know if they are spying or just forwarding requests.

I'm not paranoid, but I'm developing a daemon to automatically open and close aMule ports, watching the existence of "amuleLock" file.

Thank you very much.

Quim.
Logged

Archmage

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 119
Re: Ten minutes after closing aMule I still have connections
« Reply #5 on: July 07, 2008, 10:24:20 AM »

Clients try to connect to you every 19(?) minutes. So this behaviour is quite normal. But after 20 minutes most of the attems should be gone.

(I know that some clients even try to connect to you even after this 20 minutes, if they are low on sources and assume that you may be online again.)
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Ten minutes after closing aMule I still have connections
« Reply #6 on: July 08, 2008, 10:34:28 PM »

Using "whois" I've seen that IP addresses opening connections came from main ISPs: telefonica, jazztel, euskaltel...
LOL. If you got a whois "something.pool.einsundeins.de" that was no "ISP" but just a dialup user - maybe me.  ;D
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon