This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

timed-out userfile transfer

Old posts that have not been replied to for several years.
Locked
A
Achilles
Voice
Posts: 8
Joined: Thu Mar 10, 2005 8:20 pm

timed-out userfile transfer

Post by Achilles »

I am running a botnet with 5 eggdrops. I have been running for for over a year now but recently had to move the eggs to another machine. I have been trying to setup the eggs on a new machine and all works fine until they start sharing files and they time out.


These are echo's I get from the hub:

Code: Select all

#ach# link [bot]
Linking to [bot] at 192.168.1.107:5907 ...
Received challenge from [bot]... sending response ...
Linked to [bot].
*** Linked to [bot]
Creating resync buffer for [bot]
Sending user file send request to [bot]
This is the echo from the same time from the bot:

Code: Select all

Telnet connection: 192.168.1.107/52039
Challenging [hub]...
Linked to [hub].
*** Linked to [hub]
Downloading user file from [hub]
Failed connection; aborted userfile transfer.
Shortly after this (300 seconds to be exact (the timeout lenght I set)) I get this on the hub:

Code: Select all

Timeout on userfile transfer.
*** Disconnected [bot] (timed-out userfile transfer)
Telnet connection: 192.168.1.107/52054
Challenging [bot]...

And this on the bot:

Code: Select all

Disconnected from: [hub]. No reason (lost 4 bots and 1 user)
*** Disconnected from: [hub]. No reason (lost 4 bots and 1 user)
Received challenge from [hub]... sending response ...
Linked to [hub].
*** Linked to [hub]

I cannot get the bots to share files. I have edited the configs to the best of my knowledge, I have tried older versions of eggdrop and I have tried recompling the eggs many times. If anyone has any info on how I might fix this please let me know.

Thank you
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

hmm it's about time for someone to come up with DCC/userfile transfer (and possibly NAT/firewall) FAQ

you likely have firewall problem, talk to your shell admin, tell them you need at least one port open and listening, and refer to reserved-portrange in eggdrop.conf
A
Achilles
Voice
Posts: 8
Joined: Thu Mar 10, 2005 8:20 pm

Post by Achilles »

I have the reserved portrange set:

set reserved-portrange 5900:5950

And I have ports 5900 to 6000 open and listening. :-(
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Failed connection; aborted userfile transfer. -- that means the leaf can't connect to hub's port, 5900:5950 or whatever (technically, in eggdrop's terminology, that's EOF, i.e. write() on that DCC socket has returned < 0, meaning either reset or never established connection), a typical firewall problem
A
Achilles
Voice
Posts: 8
Joined: Thu Mar 10, 2005 8:20 pm

Post by Achilles »

All of the bots are on the same box, all using local (behind the nat/firewall) ips (ie. 192.168.1*) Would the firewall issue still be an issue? Should they not be all local IP?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

on the same box but using different local IPs? that doesn't make sense at all

anyway, make sure you have my-ip set properly on all bots (and bot userrecords of course)
A
Achilles
Voice
Posts: 8
Joined: Thu Mar 10, 2005 8:20 pm

Post by Achilles »

Sorry, I wrote that wrong, they are all on the same local IP, differant ports.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

if the problem persists, set your console to +thd and show us the log from the moment of linking, also the output of .dccstat
A
Achilles
Voice
Posts: 8
Joined: Thu Mar 10, 2005 8:20 pm

Post by Achilles »

It would appear that it is working now. I had my-ip set to the external IP and not the internal and it seems to have fixed it. Way to go me.

Thanks for your help
Locked