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.

Botnet - It won't work

General support and discussion of Eggdrop bots.
Post Reply
x
x0x
Op
Posts: 140
Joined: Tue Feb 10, 2009 6:42 am

Botnet - It won't work

Post by x0x »

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!
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
p
pseudo
Halfop
Posts: 88
Joined: Mon Nov 23, 2009 4:52 am
Location: Bulgaria
Contact:

Post by pseudo »

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: Select all

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.
x
x0x
Op
Posts: 140
Joined: Tue Feb 10, 2009 6:42 am

Post by x0x »

That was the solution. I am so thankful. All the best for you my friend!
Post Reply