anti flood help

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
viny
Posts: 213
Joined: 04 May 2006, 09:18

anti flood help

Post 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
Last edited by viny on 21 Feb 2008, 10:14, edited 2 times in total.
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post 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.
Paolo Bax
The SmartFoxServer Team
viny
Posts: 213
Joined: 04 May 2006, 09:18

Post by viny »

Hi,

No, we are not under one of these circumstances.

I put AntiFlood active="false" AFTER problems

thanks
Last edited by viny on 21 Feb 2008, 10:11, edited 2 times in total.
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post 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?
Paolo Bax
The SmartFoxServer Team
viny
Posts: 213
Joined: 04 May 2006, 09:18

Post 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
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Viny,
when the flood filter is turned off it simply won't work. Your report indicates that the filter IS running.
Lapo
--
gotoAndPlay()
...addicted to flash games
viny
Posts: 213
Joined: 04 May 2006, 09:18

Post 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
Last edited by viny on 21 Feb 2008, 10:12, edited 2 times in total.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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
Lapo
--
gotoAndPlay()
...addicted to flash games
viny
Posts: 213
Joined: 04 May 2006, 09:18

Post by viny »

You don't understand the problem...read and read my topic please.

Thanks
Boing
Posts: 59
Joined: 11 Apr 2008, 14:57

Post 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.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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
Lapo
--
gotoAndPlay()
...addicted to flash games
Boing
Posts: 59
Joined: 11 Apr 2008, 14:57

Post 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.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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
Lapo
--
gotoAndPlay()
...addicted to flash games
Boing
Posts: 59
Joined: 11 Apr 2008, 14:57

Post 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.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

People are just being kicked...
Then ask people to report their last two, three chat messages so that we can test them.
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply