Branches
Comments
[»]
Kudos
by G.4RR377 - Jun 25th 2003 00:11:39
Also, thanks for fixing that problem in dchub. Keep up the hard work, and I
will try and contribute all I can to help!
[reply]
[top]
[»]
Multi-hub Fusion and bots?
by G.4RR377 - Jun 25th 2003 00:10:14
I was just wondering if anyone had setup a multi-hub fusion with multiple
bots for any sort of events like checking for files from users, etc, since
I am trying to determine if I have multiple security bots setup on
different hubs (1 per hub of course), would the users be checked upon
entering the hub fusion by all bots or upon entering the specific hub that
they were originally logged into? So if they tried to login to myhub1.com,
and it was in a multi-hub fusion with myhub2.com, would the bot in
myhub1.com check and then the one in myhub2.com check, or would it just be
the one in myhub1.com? Also, if the user was not registered in one hub, and
they entered the multi-hub fusion, would the user be rejected?
Overall, I think that I am just somewhat confused on the interaction
of the hubs most likely and what data they trade back and forth in terms of
userlists, and how they delegate which hub has what responsibilities in
terms of requests from users, etc.
Thanks again.
[reply]
[top]
[»]
Error with DCHub 0.41
by G.4RR377 - Apr 17th 2003 21:18:41
Well, apparently I found an error with DCHub 0.41. We just upgraded from
0.22 to 0.41 (since 0.40 kept on crashing the server), and I noticed that
the amount of "ghost users" increased dramatically. I kicked
several users via the regular kick command in the UI of DC++, but several
people complained, and then I tried to kick one of these "ghost
users" via Hub-Security using -skick. The funny thing is that it
completely terminated the DCHub program (I am assuming due to some uncaught
exception).
So here's a fix that I propose: since I noticed that the users logging on
had the same IP and share size, I believe that the hub should check the
incoming IP, do a substring check of the any username with the same IP.
Then see if any similar names are on, kick the ghost user, tell the client
to relog, and wham! done.
Thanks a lot for your time.
Garrett
[reply]
[top]
[»]
ban mask ip
by Aptekarz - Mar 17th 2003 20:58:32
what im must write and where to ban mask ip 62.87.xxx.xxx
PLEASE HELP
aptekarz@tenbit.pl
[reply]
[top]
[»]
Re: ban mask ip
by G.4RR377 - Apr 18th 2003 19:35:15
> what im must write and where to ban mask
> ip 62.87.xxx.xxx
>
> PLEASE HELP
> aptekarz@tenbit.pl
What you just need to do is add a line to the .ipmask file with just
"62.87", since it's doing a substring check of the IPs obtained. Then make
a reverse boolean logic statement in the "dchub_myinfo_handler.pl" script,
located in the script dir under your dchub dir under the IP filtering
section to enable IPs other that the ones given in the file to be
referenced. Then, you must restart the hub using the Perl interpreter,
referencing "main.pl" as your startup Perl script.
Good luck,
Garrett
[reply]
[top]
[»]
dchub 0.4.0
by Shock - Mar 15th 2003 17:02:57
Lo again,
I have the following issues with 0.4.0:
- does not compile: a compile error is generated at hub_cmd.c line 1558,
solved by adding brackets "{}" around the code that uses
variables "str" and "preason";
- MOTD implementation is broken: in mmap_tools.c line 61 and 126 should
read "if(fstat(fd,&st)!=0)" or
"if(fstat(fd,&st)==-1)" instead of
"if(fstat(fd,&st)!=-1)".This bug affects all code that uses
the "map_file" function(it seems that only the MOTD code uses
it).
- dchub crashes (segfault) when run as normal user for the first time, i
suppose when trying to bind 411.
- dchub crashes (segfault) when receives SIGTERM or SIGINT (maybe all
signals).
- dchub crashes when too many users connect to the hub in a short period
(at about 300 users of 500).
The machine in question is FreeBSD 4.7-RELEASE-p6, gcc is 2.95.4.The
compile error might not appear with gcc 3.x (I haven't tested).
If other could test and post results I'd appreciate it...
Regards,
Shock.
[reply]
[top]
[»]
Link Hub...
by X-Files - Jan 15th 2003 16:18:38
Version 0.2.5
I whant link 2 hubs..
1 & 2 hub)
-fusionuser TEST
-fusionpass TEST22
1 hub)
-fusion 159.148.109.2 411
---
Hub link :) all ok .. but .. 1 min 1hub is crash,
Why ?
Please fix this :) and send me patch .
Thanky.
[reply]
[top]
[»]
Re: Link Hub...
by uriel - Jan 16th 2003 09:21:15
dchub don't use to crash once the fusion is done.
If you have some programming skills, create a core dump and, backtrace it
and send me the error
uriel at adess dot dyndns dot com.
[reply]
[top]
[»]
Re: Link Hub...
by X-Files - Jan 17th 2003 21:52:12
old message , 1 hub 0.2.5 , 2 hub 0.2.5
how time :
2 hubs O/S Linux Slackware 8.1 servers ..
2 hubs DCHUB Version 0.2.5
I whant link 2 hubs..
1 & 2 hub)
-setfusionuser TEST
-setfusionpass TEST22
1 hub)
-setfusion 159.148.109.2 411
hub1)
interhub_cnx RCV 159.148.109.2:411
init strucure for new hub
1 will be used
fin interhub_cnx
a new HUB in QUEUE fd :12
2hub)
cnxover3: <> 80.10.25.48 0 0 124/103:0/0
and ... ??? i understand no link ... no userlist ...
[reply]
[top]
[»]
telnet dchub
by gabios - Jan 8th 2003 02:28:21
Can i do the administration work through telnet? How? if i don't will there
be a telnet support for the admin?
Gabi
[reply]
[top]
[»]
Re: telnet dchub
by uriel - Jan 11th 2003 04:43:26
look at youre older post
by gabios - Jan 6th 2003 23:46:44
[reply]
[top]
[»]
0.2.4 FreeBSD compile errors,port bind and hub crash
by Shock - Dec 21st 2002 02:23:01
0.2.4 still has the same compile errors on systems missing MSG_NOSIGNAL in
minibot2.c and ClientBot.c.However, after compiling, the hub refuses to
bind another port than 411 even though -f was specified in the command
line.Furthermore when trying to fusion the dchub running on FreeBSD
coredumps(in interhub_cnx).I think it's a libc related issue.
Just my two cents.
[reply]
[top]
[»]
Re: 0.2.4 FreeBSD compile errors,port bind and hub crash
by uriel - Dec 24th 2002 18:03:28
> 0.2.4 still has the same compile errors
> on systems missing MSG_NOSIGNAL in
> minibot2.c and ClientBot.c.
1 no new dchub version hab been released since I fixe that trouble.
> However,
> after compiling, the hub refuses to bind
> another port than 411 even though -f was
> specified in the command
> line.
2 you swich the -f and the -n
-f only change the port for the Hub list
-n change the port.
> Furthermore when trying to fusion
> the dchub running on FreeBSD
> coredumps(in interhub_cnx). I think it's
> a libc related issue.
> that why I dont like the BSD :)
dchub 0.2.5 should be relase this week, If it don't the next version will
be the 0.3.0.
[reply]
[top]
[»]
Re: 0.2.4 FreeBSD compile errors,port bind and hub crash
by Shock - Dec 30th 2002 07:36:47
> dchub 0.2.5 should be relase this week,
> If it don't the next version will be the
> 0.3.0.
Will it compile on *BSD? :D
[ I like BSD very much :)) ]
[ Solaris too :) ]
[reply]
[top]
[»]
Re: 0.2.4 FreeBSD compile errors,port bind and hub crash
by uriel - Jan 3rd 2003 13:12:14
I change my mind dchub 0.2.5 is ready
and for the solaris build...
I have nothink to do this night :)
[reply]
[top]
[»]
Re: 0.2.4 FreeBSD compile errors,port bind and hub crash
by uriel - Jan 5th 2003 07:31:35
> Will it compile on *BSD? :D
FreeBSD NetBSD MacOSX sun/OS cygwin and Linux.
OpenBSD, mips and alphaDEC will wait for the 0.3.X
the CVS is up to date.
[reply]
[top]
[»]
telnet support
by gabios - Jan 6th 2003 23:46:44
Can i do the administration work through telnet?
How?
if i don't will there be a telnet support for the admin?
Gabi
[reply]
[top]
[»]
Re: telnet support
by uriel - Jan 11th 2003 04:41:10
> Can i do the administration work through telnet?
> if i don't will there be a telnet support for the admin?
You can't and that won't be implemented.
Use the Hub-Security or the gui to control the hub.
[reply]
[top]
[»]
FreeBSD compile errors (lots)
by Shock - Nov 30th 2002 11:43:04
Any chance of supporting FreeBSD?I think FreeBSD makes for a much more
stable deployment platform than Linux does.It would be nice to have DCHub
there too.
[reply]
[top]
[»]
Re: FreeBSD compile errors (lots)
by uriel - Dec 4th 2002 18:55:53
I have no freeBSD @ Home, But I have just build DBHub on a NetBSD, 5
minutes ago, just by added an include in dc_com.c
This change had been add to dchub.
I will see for the freeBSD compilation probleme as soon as I'll install
one.
I'm now trying to compile it on Alpha OSF (Digital Unix), and later on
Sun/OS.
[reply]
[top]
[»]
Re: FreeBSD compile errors (lots)
by Shock - Dec 7th 2002 11:09:51
> I have no freeBSD @ Home, But I have
> just build DBHub on a NetBSD, 5 minutes
> ago, just by added an include in
> dc_com.c
> This change had been add to dchub.
> I will see for the freeBSD compilation
> probleme as soon as I'll install one.
> I'm now trying to compile it on Alpha
> OSF (Digital Unix), and later on
> Sun/OS.
>
>
I managed to compile dchub on FreeBSD.I had to upgrade perl to 5.8 from
ports (in base system, perl was 5.0) and change some include files.However
in extprog still gives compile errors regarding missing MSG_NOSIGNAL (only
found on linux, from what I gather: in socket.h) and fixed minibot2.c the
same way as minibot.c, but hadn't the time to fix ClientBot.c.These progs
don't check for the presence of MSG_NOSIGNAL, and use it regardless.Maybe
I'll produce some diffs, if anyone interested, to handle the situation of
missing MSG_NOSIGNAL.
[reply]
[top]
[»]
Re: FreeBSD compile errors (lots)
by uriel - Dec 9th 2002 05:58:00
MSG_NOSIGNAL: oops, I forgot to take care of that in extprog directory
:p
5 lignes to add for each MSG_NOSIGNAL and that will be ok for the extprog
too.
[reply]
[top]
[»]
Database mangled!
by Denix - Nov 28th 2002 06:21:09
Using 0.2.2 and 0.2.3, it mangles the
configuration database each time I run the
program. Even using it with the --init switch
creates a databse that I can't then open in
edb_ed.
How can I get around this?
[reply]
[top]
[»]
Re: Database mangled!
by uriel - Nov 30th 2002 11:36:14
1 dchub do not user edb anymore
2 for the mangle of the database, I allready see that bug, I dont know
exactly were did hi comme form, but I think, That you use a \255 in a
string of the DB.
3 Will by fix soon (I'll try)
[reply]
[top]
[»]
Script abilities
by Kent Nilsson - Nov 3rd 2002 18:01:58
Hello and thanks for a good hub. However I have some "wanted"
features and ideas.
1. A new event for when a person enters the hub. With the ip as a
parameter. This would make logging usernames/ip's with a script
possible.
2. The ability to add ops/registered users from a perl script.
3. Using return values from the scripts to decide if an event should be
carried out or not. For example if the search handler returns false then
the search request won't be sent out.
What do you think about this ?
Best regards,
Kent Nilsson
[reply]
[top]
[»]
Re: Script abilities
by liryon - Nov 16th 2002 16:53:56
Yeah, the ablity to get a users IP from the scripts is a must. It could
either be done with a new event as you sugested or why couldn't it be
implemented in the from dchub::getip(nick); such that it will be of the
same form as the other op commands (like sb_get(key)). But both metods are
way beyond my skills.
[reply]
[top]
[»]
Re: Script abilities
by uriel - Nov 30th 2002 11:42:18
1
first you can use the stdout form dchub to get
IP logs.
secondary you can allready do that with a bot as I did.
3
add a filter using sript, why not...but I'm gooing to add a lot of defaut
security filter in DCHub source.
[reply]
[top]
[»]
BUG ????? Hub link to Hub
by X-Files - Jul 11th 2002 17:27:39
WHY DCHUB VER 0.1.1 CRASH ??????????? PLEASE FIX THIS ..
-dbadd MHUBLIST str 217.199.100.233:411
ok
root@boss:/servers/DC#
restart server
root@boss:/servers/DC# ./start
DChub v0.1.1
GLib-ERROR **: could not reallocate 268435456 bytes
aborting...
./start: line 1: 7468 Aborted dchub -c conf.db -u users
-d /servers/DC/scripts -s main.pl -n 411
root@boss:/servers/DC#
[reply]
[top]
[»]
DC++ script
by Brainz - Jul 1st 2002 13:50:51
Hi
The part in dchub_myinfo_handler.pl that handels DC++ multihub things does
not work becouse it only reads the first number in the tag... that means
that if someone is at 25 hubs the script will think he is on 2 hubs.
But don't cry I have the sulution!
comment out (or delete) line 94, 95 and 96 and replace it with this:
$uinfo[3] =~ /.*$H:(\d*).*$S:(\d*)/;
$HUBS = $1;
$SLOTS = $2;
you can if you want comment out (or delete) line 99 - 103 becouse the line
above only checks for the last H: and S: so no furter check is needed.
But then remember to change elsif on line 104 to if.
Best regards Andreas Åberg
-- //Brainz
[reply]
[top]
[»]
Kick Bugs
by A7V - May 22nd 2002 21:17:54
xpto is kicking r2d2 because: 7 Hubs
xpto is kicking r2d2 because: ...
<Hub-Security> The user r2d2 was kicked by xpto. IP:
113.213.12.17
Because NMDC or DC++ send a mass message I commented
queue_to_everyone(out->str); in the do_kick funtion in hub_cmd.c
The Kick bug that kills the hub happens after kicking a ghost user, either
by leaving the hub and the kick is made anyway or because the user just
disconnected in a dirty way (modem down, BSOD, etc)
The hub enters a cyclic mode where the only things that appear on the
console are connection attempts by permanent/temporary ips
[reply]
[top]
[»]
Re: Kick Bugs
by uriel - Sep 24th 2002 14:03:41
> xpto is kicking r2d2 because: 7 Hubs
> xpto is kicking r2d2 because: ...
> <Hub-Security> The user r2d2 was
> kicked by xpto. IP: 113.213.12.17
with my patch the DChub, do not dispalay the line:
"xpto is kicking r2d2 because: ..."
> The hub enters a cyclic mode where the
> only things that appear on the console
> are connection attempts by
> permanent/temporary ips
I add a -skick (silence kick) that do not display anytink on the Chat
and a -lkick that not tban the Ip of a user when you kick him.
[reply]
[top]
[»]
Great Job :)
by Justin - Apr 27th 2002 18:05:26
Hey just wanted to say that your doing a great job! I love dc_gui, dctc,
and dchub...I think they are all developed by the same person :P There are
a few bugs in dc_gui and dchub that i hope will be fixed with the next
versions but all in all everything is perfect :) One thing I would like to
have an option to use though is a gui for the hub...just so it offers an
easier setup in less time and also can give statistics..I know alot of
people seem to hate gui's for some reason, but they are helpful :) Again
keep up the great work!
(If i spelled anything wrong/sounded stupid its not my fault ;P)
-- --==moo==--
[reply]
[top]
[»]
Feature request/bug report
by A7V - Apr 26th 2002 18:29:23
- When a user disconnects from the hub in a hard way (no connection for ex)
the nick remains in the hub, and when the user tries to connect, the hub
says the user already exists. NMDCHub has a check for registered users to
prevent this. Since the user is registered and the credentials are ok, the
ghost is killed, and the user enters the hub again.
- Banned users don't receive any type of message, thus not knowing the
reason why they can't enter
- An automatic OP channel would be nice :)
- OPs get Master's commands in pvt msg from Hub Security
Is any new development being done? I can start doing some of the things I
pointed here, but if it's being done I might be waisting my time ;)
I'll wait for a reply.
[reply]
[top]
[»]
Re: Feature request/bug report
by uriel - Sep 24th 2002 14:08:27
> - When a user disconnects from the hub
> in a hard way (no connection for ex) the
> nick remains in the hub, and when the
> user tries to connect, the hub says the
> user already exists. NMDCHub has a check
> for registered users to prevent this.
> Since the user is registered and the
> credentials are ok, the ghost is killed,
> and the user enters the hub again.
Fixed, now when a user log with the same username and the same IP, his
gost is automaticaly removed.
> - Banned users don't receive any type of
> message, thus not knowing the reason why
> they can't enter
> - An automatic OP channel would be nice
> :)
use the private chat or a bot.
> - OPs get Master's commands in pvt msg
> from Hub Security
>
> Is any new development being done? I can
> start doing some of the things I pointed
> here, but if it's being done I might be
> waisting my time ;)
> I'll wait for a reply.
>
[reply]
[top]
[»]
Kick bug... and so on.
by Brainz - Apr 25th 2002 20:01:45
First of all the hub reg dosen't work maybe it is neo-modus fault I don't
know... it worked one time but not any more.
Error messages is:
-----------------
starting hub registration thread
hub registration in progress
hub registration (1)
hub registration (2)
recv no data - registration failed
-----------------
But then it is a much more serius problem.
When I kick some people, often a lot at the same time but some times also
just 1-3 the servers start to create a lot of thread +100.
When this happens DCHub usualy frezze and stop outputning text until it
totaly crashes but sometimes the text from DCHub keep comming very slow and
telling me it has rejected a connection from temp ban or perm ban ips and
after 10min it starts again.
-- //Brainz
[reply]
[top]
[»]
Re: Kick bug... and so on.
by A7V - Apr 26th 2002 18:58:07
I hadn't tested registering the hub yet, since it's for testing purpose
only. I activated it and I got the same error as you did. Then I noticed
something:
'str' 'HUBADDR' ''MAXPT2.d2g.com''
'str' 'HUBADDR' 'MAXPT2.d2g.com'
the last line worked :), so better check yours
I haven't yet bruteforced kicked my ops, but will test that kicking issue
[reply]
[top]
[»]
Re: Kick bug... and so on.
by A7V - May 6th 2002 13:50:04
Yep, I have this problem now...
Can happen after 20 consecutive kicks, or just 2...
Go figure...
[reply]
[top]
[»]
DC++ 0.162 Can't login
by A7V - Mar 27th 2002 10:39:12
Hi! Can't login with DC++ 0.162. everything else is just fine ;)
I'm hopping to migrate my hub to this server, as the official server just
sucks and I need a server that supports scripts. no scripts no fun ;)
Keep up the good work =)
[reply]
[top]
[»]
Re: DC++ 0.162 Can't login
by A7V - Apr 24th 2002 11:14:06
DC++ 0.163 Fixed this ;)
> Hi! Can't login with DC++ 0.162.
> everything else is just fine ;)
> I'm hopping to migrate my hub to this
> server, as the official server just
> sucks and I need a server that supports
> scripts. no scripts no fun ;)
>
> Keep up the good work =)
[reply]
[top]
[»]
HELP
by sjkl - Jul 3rd 2002 17:01:44
can someone please show me how to start running this step by step, like
what to d/l and stuff please?!?!
thanks
[reply]
[top]
|