WinMX World :: Forum

WinMX Help => Chat Issues => Topic started by: *^*Åü§§ïëgïrl*^* on March 11, 2006, 07:12:42 am

Title: /banip doesn't hold the ban in wcs
Post by: *^*Åü§§ïëgïrl*^* on March 11, 2006, 07:12:42 am
I'm an admin with some ban issues in the wcs based chat room. We have a serial pest who continues to mock us by entering the room immediately after he's been banned. The command used is /kickban <username> <Ip (or partial IP)>. The kick removes him from the chatroom but the IP ban doesn't keep him out. He is able to re-enter immediately. His IP remains the same. When /listban is run his IP and partial IP is listed in there, but he's able to get in regardless... with the same IP or partial that we have in the banlist.

I have been advised that Peer Guardian 2 or an IP ban placed in the room holders firewall will keep him out, but this doesn't solve the issue of a /banip command being basically non-functional.

FYI.. the chat room is passed around several admins who have varying OS and ISP's, ranging from ISDN, DSL and Cable and the IP ban isn't working for any of us who are holding the room.
Title: Re: /banip doesn't hold the ban in wcs
Post by: KM on March 11, 2006, 09:30:30 am
type /help in to the room, it tells you the correct use of the commands :-)

Quote
Available Commands:
 /help - this
 /me <text> or /action <text> or /emote <text> - Guess
 /login <password> - Log In (to gain admin access)
 /access - View current access level
 /channelname - Get the channel name
 /bot - Enable/Disable bot mode (for use by bots)
 /opmsg <text> - Send a message to the admins
 /message <user> <message> - Send a private message to someone
 /colour - View a list of colours available for coloured text
 /exile <user> <room> - Redirect a single user
 /kick <user> - Kick a user
 /ban <user> - Ban a user
 /banip <IP> - Ban a specified IP Address (partial IP valid)
 /kickban <user> - Kick a user and Ban them
 /listbans - List the current bans
 /unban <user> or /unban <IP> unban a user
 /topic <topic> - Change the topic
 /setmotd <MOTD> - Change the MOTD
 /redirect <roomname> - Redirect users to another host/room
 /stats - View channel stats
 /stats <user> - View user stats
 /who - List users in the channel
 /limit - Change the channel limit
 /reload - Load the server config file
 /forcelogin <user> <password> - Force a user to login (acts like they logged in with that password)
 /setaccess <user> <access> - Change a users Access

erm, i should have used a spell checker on that sooner... oops, lol
Title: Re: /banip doesn't hold the ban in wcs
Post by: nylly444 on March 11, 2006, 01:33:40 pm
So   /banip needs a username with it, that it?
Title: Re: /banip doesn't hold the ban in wcs
Post by: *^*Åü§§ïëgïrl*^* on March 11, 2006, 02:56:00 pm
Thanks to both of you... firstly I've used the command help and got it correct (if i don't I get unknown command or access denied) so that's not the reason, and secondly, I don't ban the nic cos he changes it to come back, I know who it is through his IP so I need to get the banip command werking right to keep him out.
Title: Re: /banip doesn't hold the ban in wcs
Post by: Bearded Blunder on March 11, 2006, 03:51:03 pm
Have you considered blocking the ip in your firewall? This has the advantage it will survive room restarts. or you could create a custom list "banned IP addresses" on your pc & add it to peer guardian..
Title: Re: /banip doesn't hold the ban in wcs
Post by: nylly444 on March 11, 2006, 04:27:17 pm
the banlist of wcs is permanent, so theoretically it *should* work..

/me blames KM  :P :P :P
Title: Re: /banip doesn't hold the ban in wcs
Post by: Stevi on March 11, 2006, 05:21:31 pm
I keep them out of my room by doing an /banip <ip> then doing a /kick <nic>

That usually works for me. I dont like the /kickban command.......It never works for me.
Title: Re: /banip doesn't hold the ban in wcs
Post by: Bearded Blunder on March 11, 2006, 05:45:32 pm
I keep them out of mine using either, but then I host on Ouka.....
Title: Re: /banip doesn't hold the ban in wcs
Post by: *^*Åü§§ïëgïrl*^* on March 12, 2006, 01:12:02 am
Thanks for all your input. Some of our admins don't have firewalls and we are considering the viability of PG 2. Kickban only seems to drop him out of the room, the ban doesn't keep him out.

Will try the double banning next time he tries it out in our room (i.e. ban then kick)
Title: Re: /banip doesn't hold the ban in wcs
Post by: KM on March 12, 2006, 02:16:24 am
when you do a /listbans what exactly does it say for the ban that it's not applying?

there were issues with the bans not working that were brought to my attention a while back, those got fixed... or at least nobody mentioned it until this thread anyway (which at first mentioned entering the command incorrectly... just came back and read the other replies since)... the last bug that was fixed (in theory at least) i didn't know about for ages as nobody bothered to tell me so it never got fixed, the couple of rooms i keep an eye on seem to ban OK and nobody else seems to like telling me things judging by how long it took them the last time... lol
Title: Re: /banip doesn't hold the ban in wcs
Post by: *^*Åü§§ïëgïrl*^* on March 12, 2006, 09:44:20 am
When I run /listbans I see....

<Banned users>:
<IP Based Ban>
  60.240
<IP Based Ban>
 60.241

Those are both known net masks ... the command entered to put that IP in the banlist is both /kickban <IP that appears on entry> and then /banip <net mask>.

All our admins have the same IP Partial listed in their banlists as well. Regardless of who is holding that IP is able to gain entry except the one admin who has added the IP Net Mask to his firewall.

Title: Re: /banip doesn't hold the ban in wcs
Post by: KM on March 12, 2006, 05:45:26 pm
so you weren't doing a /kickban <username>? (which is the correct use of kickban) - although a /banip should work with a partial IP some people did report it not liking them, although in what you just copy/pasted the first one would have no chance of working as it has an extra space in front of it :-)
Title: Re: /banip doesn't hold the ban in wcs
Post by: *^*Åü§§ïëgïrl*^* on March 13, 2006, 06:09:30 am
 My apologies for the incorrect appearance of the IP's. I included a space where there shouldn't be one. The procedure to banip was /banip 60.240. (using the option to ban a partial) with one space after the 'p'. All IP's that we have banned are able to return, (including nic bans) it's just this one which has become a serial pest.  Are you saying that the nic must first be banned ? If this is the case, a change of nic, but same IP will always be able to return to the room.... and this is what our pest has been doing. /kickban has worked for us, but only for the nic. The IP just isn't being banned for some reason. Is there a grammtical error maybe ? eg. use or lack of a '.' in the ban procedure ?

Title: Re: /banip doesn't hold the ban in wcs
Post by: KM on March 13, 2006, 09:56:17 am
does an exact ban on the IP work? ie. putting the full IP Address in, although some people have differing results on partial IP banning
Title: Re: /banip doesn't hold the ban in wcs
Post by: *^*Åü§§ïëgïrl*^* on March 13, 2006, 11:01:53 am
We have both full and partial IP's in the banlist, with neither being kept out of the room. It seems to be failing totally to ban IP's.
Title: Re: /banip doesn't hold the ban in wcs
Post by: KM on March 13, 2006, 12:44:07 pm
OK, just went over the code that handles bans (haven't looked at that part of it for ages) and i noticed a glaring mistake on my part which would have caused partial IP Banning to have not worked - of course the thing i found most surprising was not the fact that i made a little mistake and the partial IP banning wouldn't work because of it... but more how the hell have some hosts been banning partial IPs? the code was completely wrong! lol

just working on an updaqte... small flaw in that i seem to have misplaced the 1.7.3 source, and just went and applied the fix to 1.7.2... looks like i'll have to re-do the 1.7.3 changes again, DOH!
Title: Re: /banip doesn't hold the ban in wcs
Post by: GnarlySnarly on March 13, 2006, 07:44:39 pm
OK, just went over the code that handles bans (haven't looked at that part of it for ages) and i noticed a glaring mistake on my part which would have caused partial IP Banning to have not worked - of course the thing i found most surprising was not the fact that i made a little mistake and the partial IP banning wouldn't work because of it... but more how the hell have some hosts been banning partial IPs? the code was completely wrong! lol

just working on an updaqte... small flaw in that i seem to have misplaced the 1.7.3 source, and just went and applied the fix to 1.7.2... looks like i'll have to re-do the 1.7.3 changes again, DOH!

Lost the source code?!!!!!!!!!!!!  maybe time to distribute it to some trusted agents for safekeeping :)

as to /banip, does WCS tolerate/support the winmx /banip format?

iow: /banip [nick] <IP> [time]

I like to use the nick field for adding comments, so the reason for the ban can be noted.
Title: Re: /banip doesn't hold the ban in wcs
Post by: Stevi on March 13, 2006, 07:51:56 pm
It would be awsome if WCS can ban for a time limit like WinMx and all those other ones.

That way i wouldnt have to change bot scripts.
Title: Re: /banip doesn't hold the ban in wcs
Post by: KM on March 13, 2006, 08:00:33 pm
i actually have no idea why the source code isn't in the usual place, oh well i have already re-done the changes (as well as fixing the banip bug, and a few other minor tweaks) - i think i might have been on someone elses computer when i did 1.7.3 and forgot to send a copy of the source home - because when at home i would have worked on it from my main programming directory, and the latest in there was 1.7.2

just doing a few small other changes to it now... the one thing i won't be doing is trying to change the usage of commands, because then people who perhaps didn't know the command was now used differently would find it suddenly not working, however the possibility of adding an additional parameter on to the end of the ban and banip commands to take a comment couldn't be ruled out, but that would mean a change to the format that the ban list is stored in (ie adding an extra field) which would cause slight complications with the auto update and using an old ban file to load the bans from...
Title: Re: /banip doesn't hold the ban in wcs
Post by: GnarlySnarly on March 13, 2006, 08:36:49 pm
i actually have no idea why the source code isn't in the usual place, oh well i have already re-done the changes (as well as fixing the banip bug, and a few other minor tweaks) - i think i might have been on someone elses computer when i did 1.7.3 and forgot to send a copy of the source home - because when at home i would have worked on it from my main programming directory, and the latest in there was 1.7.2

just doing a few small other changes to it now... the one thing i won't be doing is trying to change the usage of commands, because then people who perhaps didn't know the command was now used differently would find it suddenly not working, however the possibility of adding an additional parameter on to the end of the ban and banip commands to take a comment couldn't be ruled out, but that would mean a change to the format that the ban list is stored in (ie adding an extra field) which would cause slight complications with the auto update and using an old ban file to load the bans from...

I've been using the winmx /banip format all along.  dunno if it worked, apparently not :)  but it did take and store the infos afaik

15:31:18 <IP Based Ban>
15:31:18    s#!%&run-spammer-suker01__56_32923 82.50. 255
15:31:18 <IP Based Ban>
15:31:18    s#!%&run-spammer-suker01__56_32923 82.49. 255
15:31:18 <IP Based Ban>
15:31:18    Bigot-DestroyTheGayAgenda,SaveAmericaNow!!!!738_45643 71.255.35.242 255

but i understand recording the ban on the banlist, doesn't mean wcs will parse and enfoce it properly
Title: Re: /banip doesn't hold the ban in wcs
Post by: KM on March 13, 2006, 08:52:25 pm
well, actually, no - although the last one would have actually worked because of my having put the parameters in the wrong way around, i had it search the banned IP to see if it contained the users IP, instead of having it check the users IP to see if it contained a banned IP... so in that particular case it would work for the last ban (as it will find the users IP inside the ban), however once i update it to fix it, it won't :-P
Title: Re: /banip doesn't hold the ban in wcs
Post by: *^*Åü§§ïëgïrl*^* on March 14, 2006, 12:54:31 am
Thanks for taking a closer look at it KM... is there to be an updated WCS that we will need to download and replace 1.7.3 or will WCS automatically update itself with the fix when it becomes available ?
Title: Re: /banip doesn't hold the ban in wcs
Post by: KM on March 14, 2006, 10:49:54 am
it'll automatically update once 1.7.4 is released, i'm just working on one other little thing for it :-P (plus i overslept slightly last night, delaying it a little... lol)
Title: Re: /banip doesn't hold the ban in wcs
Post by: *^*Åü§§ïëgïrl*^* on March 14, 2006, 02:23:14 pm
Sensational. Once again, thanks. :D