ADCH++ Guard for adc commands flooding and limit rules

Post finished Hubside Scripts here, known supporting hubsofts for LUA scripting.

ADCH++ | DCWatch | LUADCH
Pirre
Junior Member
Posts: 31
Joined: 10 Nov 2009, 11:57

Re: ADCH++ Guard for adc commands flooding and limit rules

Post by Pirre » 12 Feb 2011, 11:32

rev: 1.0.22

Changelog:

Added a +guardabout command to view version and scripts memory use

Added a set of tables that allows entity (users) loging, it asigns a unique id to a user based on his CID/IP and then monitors for changes, keeps @ this moment number of logins, first join, last join, changes in Nick, IP or CID, and tables can be searched by either ID, CID, IP and Nick. These tables will be used for future functionality like time online etc. To enable the loging use +cfgfl fl_entitylog , the database is selfcleaning and keeps records based on the fl_logexptime setting.

Added a li_minlevel setting that lets you specify the level from where the limit rules should affect the users, practical example, you run a hub where all can enter but only regged can dl, then you can set your mindownloadlevel and li_minlevel both to 1 with final result that only those who can download will be affected by the sharing rules. Also finalised the possibilety to instead of dropping those users redirect them to the address specified in the li_redirect setting. The above only effects the sharing rules like min/max share, min/max slots etc.

Pulled most of the "explenation" out of the lua's header and putted it in the HowTo help file

Have fun :)
Attachments
Guard-HowTo.rtf
Read this before using the Guard script
(8.17 KiB) Downloaded 496 times
access.guard.lua
1.0.22
(128.48 KiB) Downloaded 496 times

Spookie
Junior Member
Posts: 19
Joined: 05 Dec 2007, 16:40

Re: ADCH++ Guard for adc commands flooding and limit rules

Post by Spookie » 14 Feb 2011, 21:33

Sounds good

Pirre
Junior Member
Posts: 31
Joined: 10 Nov 2009, 11:57

Re: ADCH++ Guard for adc commands flooding and limit rules

Post by Pirre » 21 Feb 2011, 18:24

rev: 1.0.24 (rev 489)

Changelog:

Added time online, last logon etc to the entity stats and its reporting (still a ongoing task)
Changed settings so they are now seperated by flood / limits / entitys each saved in their own file
Changed the list commands so they now show the settings in the result screen
Modifyed client data retrieval to be compatible with ADCH 485 and above (still backwards compatible)
Default settings are now made in such a way that you can enable the above using 3 commands

+cfgfl maxrate 60 , +cfgli maxrate 60 , +cfgen entitylog 1

the above will enable the flood protection for the cmd's and limits, and enables entity loging.
When you used this script before delete fl_settings file in your config folder if you want to use the default settings
Updated/renamed the "how_to" to "guard_guide.rtf"
Attachments
guard_guide.rtf
Read this before using the Guard script
(8.8 KiB) Downloaded 477 times
access.guard.lua
rev: 1.0.24 (rev 489)
(140.91 KiB) Downloaded 483 times

Pirre
Junior Member
Posts: 31
Joined: 10 Nov 2009, 11:57

Re: ADCH++ Guard for adc commands flooding and limit rules

Post by Pirre » 22 Feb 2011, 21:09

rev: 1.0.24 (rev 491)

Rectifyed typo
Attachments
access.guard.lua
(140.92 KiB) Downloaded 483 times

Pirre
Junior Member
Posts: 31
Joined: 10 Nov 2009, 11:57

Re: ADCH++ Guard for adc commands flooding and limit rules

Post by Pirre » 24 Feb 2011, 09:34

rev: 1.0.24 (rev 492)

Changelog:

Added client version information in all stats and entity tables

Added a timed functionality to update the entity's "time online" so its not only updated on logoff (prevent loss of data on hub restart or script reload)

Changed the command output , cosmetic changes, for all stats , limit and entity lists and logs

PS: ADCH 2.7.0 is released a nice new version that solves a few of the "old" bugs

http://adchpp.sourceforge.net
Attachments
access.guard.lua
rev: 1.0.24 (rev 492)
(142.77 KiB) Downloaded 439 times
guard_guide.rtf
Read this before using the Guard script
(8.8 KiB) Downloaded 441 times

Pirre
Junior Member
Posts: 31
Joined: 10 Nov 2009, 11:57

Re: ADCH++ Guard for adc commands flooding and limit rules

Post by Pirre » 26 Feb 2011, 09:16

rev: 1.0.24 (rev 493)

Changelog:

Improved the entity's "time online" timer system and verify online users on scripts startup.

Some code optimalitation and coscmetic changes.
Attachments
guard_guide.rtf
Read this before using the Guard script
(8.8 KiB) Downloaded 444 times
access.guard.lua
rev: 1.0.24 (rev 493)
(144.29 KiB) Downloaded 446 times

Pirre
Junior Member
Posts: 31
Joined: 10 Nov 2009, 11:57

Re: ADCH++ Guard for adc commands flooding and limit rules

Post by Pirre » 09 Mar 2011, 18:17

rev: 1.0.24 (rev 494)

Changelog:

Improved the entity's handling and added a seperate expire time for regged users.
Some code optimalitation and coscmetic changes to the different stats and logs.
Added reason to kick and tmpbanlog's.
Attachments
guard_guide.rtf
Read this before using the Guard script
(8.8 KiB) Downloaded 430 times
access.guard.lua
rev: 1.0.24 (rev 494)
(144.95 KiB) Downloaded 461 times

Pirre
Junior Member
Posts: 31
Joined: 10 Nov 2009, 11:57

Re: ADCH++ Guard for adc commands flooding and limit rules

Post by Pirre » 16 Mar 2011, 12:21

rev: 1.0.24 (rev 495)

Changelog:

Added
+cfgli maxsameip : allows you to specify how many users can connect using the same ip address
+cfgli minnicklength : specify minimum nicklength for your hub

This will be probebly the last rev posted here unless this needs a bug patch , am starting to remove duplicates from access.lua and this script so nxt version will only run with a modded access.lua :)
Attachments
guard_guide.rtf
Read this before using the Guard script
(8.8 KiB) Downloaded 468 times
access.guard.lua
rev: 1.0.24 (rev 495)
(149.43 KiB) Downloaded 444 times

Pirre
Junior Member
Posts: 31
Joined: 10 Nov 2009, 11:57

Re: ADCH++ Guard for adc commands flooding and limit rules

Post by Pirre » 04 Apr 2011, 09:34

rev: 1.0.24 (rev 496)

Changelog:

Changed limitstats and rate reporting , had a small bug.
Attachments
access.guard.lua
rev: 1.0.24 (rev 496)
(149.56 KiB) Downloaded 491 times

Pirre
Junior Member
Posts: 31
Joined: 10 Nov 2009, 11:57

Re: ADCH++ Guard for adc commands flooding and limit rules

Post by Pirre » 03 Jun 2011, 07:28

New version are from now on available on http://bazaar.launchpad.net/~pierrepary ... /examples/

You will need to use also the access.lua posted there, and its higly recommended to use all the scripts in that folder from there if you use guard.

Locked