Page 1 of 1

anti flood help

Posted: 07 Feb 2008, 06:38
by viny
hello,

I tested the antiflood system for my server but it doesn't work very well..with this configuration I am kicked without to flood the server. I normally chat...

I put AntiFlood active="false" AFTER problems

Code: Select all

<AntiFlood active="true">
			<MinMsgTime tolerance="5">1000</MinMsgTime>
			<MaxRepeatedMessages>10</MaxRepeatedMessages>
			<WarningsBeforeKick>2</WarningsBeforeKick>
			<WarningMessage><![CDATA[Pas de spam]]></WarningMessage>
			<KickMessage><![CDATA[Pas de spam svp !]]></KickMessage>
			<BanMessage><![CDATA[Tant pis !]]></BanMessage>			
			<BanAfter timeSpan="60">3</BanAfter>
		</AntiFlood>
thanks

Posted: 07 Feb 2008, 08:45
by Bax
<MinMsgTime tolerance="5">1000</MinMsgTime>

It's the minimum time (in milliseconds) allowed between two messages. The server will tolerate 5 messages sent below the specified rate before sending an automatic warning message to the client.

<MaxRepeatedMessages>10</MaxRepeatedMessages>

It's the maximum number of identical messages a client can send in a row. After this value has been reached the server will automatically send an administrator warning message to the user.

Maybe you are under one of these circumstances.

Posted: 07 Feb 2008, 08:55
by viny
Hi,

No, we are not under one of these circumstances.

I put AntiFlood active="false" AFTER problems

thanks

Posted: 07 Feb 2008, 09:17
by Bax
viny wrote:I put AntiFlood active="false" there are problems
Sorry, didn't notice this.
We need some more details in order to check this problem.
Which SmartFoxServer version are you using?
Which version of the client API (you can find it out tracing the return value of the SmartFoxClient.getVersion() method)?
Any warning or errors appear in the console/log output?

Posted: 07 Feb 2008, 10:53
by viny
Here are log :

Code: Select all

2008/02/06 15:08:42.621 - [ WARNING ] [id: 106] (SystemHandler.applyFloodFilter): User: priscilla_a_4 (86.192.136.144) is being kicked. Reason: flooding.
2008/02/06 20:13:21.548 - [ WARNING ] [id: 106] (SystemHandler.applyFloodFilter): User: carmich (83.154.25.59) is being kicked. Reason: flooding.
2008/02/06 21:35:28.825 - [ WARNING ] [id: 106] (SystemHandler.applyFloodFilter): User: priscilla_a_4 (86.192.136.144) is being kicked. Reason: flooding.
2008/02/06 21:51:31.365 - [ WARNING ] [id: 106] (SystemHandler.applyFloodFilter): User: ccdille (77.200.183.125) is being kicked. Reason: flooding.
2008/02/06 22:10:15.939 - [ WARNING ] [id: 106] (SystemHandler.applyFloodFilter): User: fraises28 (89.84.221.134) is being kicked. Reason: flooding.
2008/02/06 22:10:21.096 - [ WARNING ] [id: 106] (SystemHandler.applyFloodFilter): User: soloparis_75 (82.236.253.111) is being kicked. Reason: flooding.
2008/02/06 22:11:12.104 - [ WARNING ] [id: 106] (SystemHandler.applyFloodFilter): User: chipie13 (86.194.135.79) is being kicked. Reason: flooding.
2008/02/06 22:12:20.102 - [ WARNING ] [id: 106] (SystemHandler.applyFloodFilter): User: miamlechocolat (77.195.244.153) is being kicked. Reason: flooding.
2008/02/06 22:20:20.171 - [ WARNING ] [id: 106] (SystemHandler.applyFloodFilter): User: soloparis_75 (82.236.253.111) is being kicked. Reason: flooding.
2008/02/06 22:20:29.230 - [ WARNING ] [id: 106] (SystemHandler.applyFloodFilter): User: miamlechocolat (77.195.244.153) is being kicked. Reason: flooding.
2008/02/06 22:21:28.258 - [ WARNING ] [id: 106] (SystemHandler.applyFloodFilter): User: ccdille (77.200.183.125) is being kicked. Reason: flooding.
I use SFS 1.6 and api version is 1.5.2

Thanks

Posted: 11 Feb 2008, 08:21
by Lapo
Viny,
when the flood filter is turned off it simply won't work. Your report indicates that the filter IS running.

Posted: 20 Feb 2008, 10:06
by viny
No !

I put the antiflood <AntiFlood active="false"> AFTER problems and I send you the configuration of the antiflood.

I am not crasy...the anfiflood was active="true" but It doesn't work !


Thanks

Posted: 21 Feb 2008, 10:05
by Lapo
Viny,
there is no know problem such as the one you have described. If the Anti-Flood filter is turned off it won't catch people flooding the server with messages.

If this is happening to your installation I can suggest a couple of ideas:

1. You have multiple AntiFlood declaration in your config.xml and you didn't notice it.

2. Your Server installation is broken.

An additional test that you can do is simply check it by yourself using the AdvancedChat example:

1. make sure the AntiFlood is turned off
2. start the example and send the same chat message over and over... you should never see a warning. If it happens I suggest to do a fresh reinstall and migrate your settings

Posted: 21 Feb 2008, 10:09
by viny
You don't understand the problem...read and read my topic please.

Thanks

Posted: 07 Jan 2010, 09:24
by Boing
We experience similar problems: Users being warned and kicked for flooding while chatting normally. Unfortunately this is hard to reproduce.

Could this be caused by configuration details, for example the Warnings=false in the BadWordsFilter with an active AntiFlood filter?

Code: Select all

<AntiFlood active="true">
    <MinMsgTime tolerance="8">600</MinMsgTime>
    <MaxRepeatedMessages>6</MaxRepeatedMessages>
    <WarningsBeforeKick>4</WarningsBeforeKick>
    <WarningMessage><![CDATA[No flooding allowed!]]></WarningMessage>
    <KickMessage><![CDATA[You've been warned! Now flooding! Now you're kicked]]></KickMessage>
    <BanMessage><![CDATA[Stop Flooding!! You're being banned]]></BanMessage>            
    <BanAfter timeSpan="60">4</BanAfter>
</AntiFlood>

<BadWordsFilter active="true">
    <FilterMode>remove</FilterMode> <!-- REMOVE or FILTER -->
    <StripCharacters><![CDATA[,.;:_!$%&/#*-+]]></StripCharacters>
    <Warnings>false</Warnings>
    <FilterRoomNames>true</FilterRoomNames>
    <FilterUserNames>true</FilterUserNames>
    <WarningsBeforeKick>3</WarningsBeforeKick>
    <WarningMessage><![CDATA[No swearing!]]></WarningMessage>
    <KickMessage><![CDATA[You've been warned! No Swearing! Now you're kicked]]></KickMessage>
    <BanMessage><![CDATA[Stop Swearing! You're being banned!]]></BanMessage>    
    <BanAfter timeSpan="60">3</BanAfter>
    <BadWordsList>
        <!-- NOTE: must be all lower case? -->
        <badWord>motherfucker</badWord>                
        <badWord>dickhead</badWord>
        [...]
    </BadWordsList>
</BadWordsFilter>
SFS version is 1.6.6 Pro.

Posted: 08 Jan 2010, 07:56
by Lapo
Your settings look good. I'd like to see this in action, can you provide an access to the chat so that I can try it?
You can use a PM or write us an email

Thank you

Posted: 08 Jan 2010, 14:39
by Boing
Nothing easier than that:
1. Go to http://www.jumpjupiter.com
2. Click on "Jetzt spielen"
3. Click on "Probe-Level jetzt spielen"
(You might as well register and check out the complete game but to test the chat filter a guest account is sufficient.)

Unfortunately the problem is difficult to reproduce because it seems to happen only now and then.
I send you a PM with relevant log excerpts.

Posted: 11 Jan 2010, 17:07
by Lapo
I have checked the logs you have sent in the PM and I didn't see anything interesting. Also since the problem is erratic it's probably not going to be reproduced very easily unless you can find out which words are capable of firing the the problem on your server.

Let us know if you can find at least one which, even if not listed as a bad word, causes the system to react as if it was.

Thank you

Posted: 11 Jan 2010, 17:41
by Boing
Lapo wrote:I have checked the logs you have sent in the PM and I didn't see anything interesting.
Yes, exactly that is the problem :?
People are just being kicked...
We probably need to set up our own anti-flooding mechanism then.
Anyway, if we find out something, we'll keep you updated.

Posted: 12 Jan 2010, 09:23
by Lapo
People are just being kicked...
Then ask people to report their last two, three chat messages so that we can test them.