Raised This Month: $32 Target: $400
 8% 

[VSP] Anti-flood plugin "Serversecure"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AzuiSleet
Fool
Join Date: Jul 2008
Old 08-18-2010 , 14:35   [VSP] Anti-flood plugin "Serversecure"
Reply With Quote #1

It was suggested I should post this plugin in this section so I will. This particular plugin is my attempt at fixing the issue of network floods with OOB packets (A2S_INFO, connect challenges, etc).

This particular plugin is meant for the OB engine (GMod, TF2)

What makes this plugin different than "dumb reply" query cache plugins is that it will record and later re-inject OOB packets. This prioritizes game traffic and since OOB packets aren't critical, they get a lower priority. It also doesn't do any strange modifications to the A2S_INFO reply.

I don't have any specific numbers on performance, but it should be able to handle a decent amount of spoofed OOB packets (at which point an attacker will just saturate your line in anger).

Here's a feature list:
1) Holds a queue of OOB packets to re-inject over time, reducing the impact of spam
2) [Windows build] Blocks file uploads and downloads that aren't on the downloadables table (and sprays)
3) Does some trivial ticket validation in case Valve disables the recently fixed checks.
4) [Windows build] Not compatible with D-FENS or Drunken Fool's DAF. (Feature overlap)

Source:
http://gmodmodules.googlecode.com/sv...serversecure2/

Release build:

Windows
http://gmodmodules.googlecode.com/sv...versecure2.dll

Linux
http://gmodmodules.googlecode.com/sv...rversecure2.so

Example VDF (After placing correct version in addons/):
Code:
"Plugin"
{
    "file"    "addons/serverplugin_serversecure2"
}
Testimonials:

" installed it and the attack stopped. "
http://www.facepunch.com/showpost.ph...55&postcount=6

Last edited by AzuiSleet; 08-18-2010 at 14:38.
AzuiSleet is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 08-18-2010 , 16:07   Re: [VSP] Anti-flood plugin "Serversecure"
Reply With Quote #2

Thanks AzuiSleet!
KyleS is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-18-2010 , 16:33   Re: [VSP] Anti-flood plugin "Serversecure"
Reply With Quote #3

Nice work on this, glad it's finally released 'properly'.
__________________
asherkin is offline
bobbobagan
SourceMod Donor
Join Date: May 2007
Location: New Zealand
Old 08-18-2010 , 23:35   Re: [VSP] Anti-flood plugin "Serversecure"
Reply With Quote #4

Apart from this being an all-in-one, is there any reason why I should stop using DAF and D-FENS now?
__________________
bobbobagan is offline
Send a message via Skype™ to bobbobagan
Afronanny
Veteran Member
Join Date: Aug 2009
Old 08-19-2010 , 00:16   Re: [VSP] Anti-flood plugin "Serversecure"
Reply With Quote #5

Quote:
Originally Posted by AzuiSleet View Post
It also doesn't do any strange modifications to the A2S_INFO reply.
Like making it appear as if the server is passworded >.<
Afronanny is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-19-2010 , 02:38   Re: [VSP] Anti-flood plugin "Serversecure"
Reply With Quote #6

Quote:
Originally Posted by bobbobagan View Post
Apart from this being an all-in-one, is there any reason why I should stop using DAF and D-FENS now?
This isn't just an all-in-one, it uses better methods for each feature.
For example the file upload / download fix in ServerSecure is vastly safer than D-FENS, instead of a fixed whitelist of 'safe' paths (D-FENS), ServerSecure will only allow the transfer of stuff that has been added to the downloadables table on the server along with sprays (of which it checks the file name length as well).
__________________
asherkin is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 08-19-2010 , 03:56   Re: [VSP] Anti-flood plugin "Serversecure"
Reply With Quote #7

Currently I use DAF and it works fine between most game updates. Will this plugin need to be updated every time CS:S/Any other OB game is updated?

This plugin looks great, and I plan to replace DAF with it as long as I know it'll be stable. I did have some issues with D-FENS in the past which is why I no longer run it.
GoD-Tony is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 08-19-2010 , 06:18   Re: [VSP] Anti-flood plugin "Serversecure"
Reply With Quote #8

Just curious, is there a plan to port the windows specific functionality to linux? or not really.

It's still great regardless
KyleS is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 08-19-2010 , 08:53   Re: [VSP] Anti-flood plugin "Serversecure"
Reply With Quote #9

Seems to work just fine, thanks!
__________________
thetwistedpanda is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-19-2010 , 09:03   Re: [VSP] Anti-flood plugin "Serversecure"
Reply With Quote #10

Quote:
Originally Posted by Kyle12 View Post
Just curious, is there a plan to port the windows specific functionality to linux? or not really.
The issue is that there are no decent independent detouring libs that are Windows and Linux compatible.

If you are on Linux and use SourceMod as well, I have ported the Upload/Download (the only thing missing from the Linux build of ServerSecure) protection into an SM extension. https://forums.alliedmods.net/showthread.php?t=142249

Edit: If you use this and you run into any issues down the line, you need to specify in your post that you are using this as well.
__________________

Last edited by asherkin; 11-07-2010 at 08:37.
asherkin is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode