egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Botnet - It won't work

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
x0x
Op


Joined: 10 Feb 2009
Posts: 140

PostPosted: Wed Mar 24, 2010 6:16 pm    Post subject: Botnet - It won't work Reply with quote

Situation

2 bots

HUB: 123.123.123.123 (Telnet 8500) <--- external IP
The hub is hosted on a rented shell with it's own IP and vhost. Port 8500 has been opened for telnet.

LEAF: 222.222.222.222 (Telnet 30000) <----- external IP
The leaf is on a machine at home, this machine is DMZ and there are no port forwards conflicting.

Share and transfer modules loaded on each bot.
Channel #A set to +shared on each bot.


Userinfo

On HUB:
LEAF yes 0 bflo 23:02 (unlinked)
HOSTS: *!LEAF@222.222.222.222
BOT FLAGS: gs
ADDRESS: 222.222.222.222
users: 30000, bots: 30000

On LEAF:
HUB yes 0 bfhlo 23:02 (unlinked)
BOT FLAGS: gp
HOSTS: *!HUB@123.123.123.123
ADDRESS: 123.123.123.123
users: 8500, bots: 8500

Both bots have set nat-ip "XXX.XXX.XXX.XXX" in their config files. So for HUB 123.123.123.123 and for LEAF 222.222.222.222

The HUB has also been set to set my-hostname "VHOST" and set my-ip "123.123.123.123"

When linking the bots, they seem to link fine BUT the telnet / user file connection goes wrong.

Example

On LEAF;

.link HUB
Linking to HUB at VHOST:8500 ...
Received challenge from HUB... sending response ...
Linked to HUB.
*** Linked to HUB
Downloading user file from HUB
Failed connection; aborted userfile transfer.

At that moment I can see on HUB;

Telnet connection: MY.ISP.HOSTNAME/60624
Timeout/EOF ident connection
Challenging LEAF...
Linked to LEAF.
*** Linked to LEAF
Creating resync buffer for LEAF
Sending user file send request to LEAF
Timeout on userfile transfer.
*** Disconnected LEAF (timed-out userfile transfer)

What am I doing wrong here.... HELP!
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Mar 24, 2010 6:37 pm    Post subject: Reply with quote

You shouldn't set nat-ip if your eggdrop is not behind a nat. Further, only set my-ip or my-hostname; both affect which IP address on the local host your eggdrop will bind all it's sockets at.

Be adviced that the port used for the userfile transfer is randomly selected by the leaf, within the range set by reserved-portrange. All ports within this range will thus have to be forwarded to the leaf (in other words, for the userfile transfer, the hub connects to the leaf).
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
pseudo
Halfop


Joined: 23 Nov 2009
Posts: 88
Location: Bulgaria

PostPosted: Wed Mar 24, 2010 6:45 pm    Post subject: Reply with quote

The userfile isn't sent via the regular bot link. Instead, the sending bot opens a new port, randomly chosen from the reserved portrange and listens on it while the transfer is active. So you need an additional port for the HUB, which will be used only during userfile transfers.

Choose a second port on your shell. It should be free (nothing should be listening on it) and accessible to your account.

Set reserved-portrange in the config file to make the bot use this and only this port number for file transfers:
Code:
set reserved-portrange "12300:12300"


Rehash HUB and link again. If the connection still fails, make sure the second port isn't blocked by some firewall.
Back to top
View user's profile Send private message Visit poster's website
x0x
Op


Joined: 10 Feb 2009
Posts: 140

PostPosted: Wed Mar 24, 2010 7:20 pm    Post subject: Reply with quote

That was the solution. I am so thankful. All the best for you my friend!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber