Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.74 KB | None | 0 0
  1. #------------------------------------------------------------#
  2. # ____ __ _____ __ #
  3. # / __ )____ / /_ / ___/___ ____ / /________ __ #
  4. # / __ / __ \/ __/ \__ \/ _ \/ __ \/ __/ ___/ / / / #
  5. # / /_/ / /_/ / /_ ___/ / __/ / / / /_/ / / /_/ / #
  6. # /_____/\____/\__/ /____/\___/_/ /_/\__/_/ \__, / #
  7. # /____/ #
  8. # ___ __ _ #
  9. # / __\ ___ _ __ / _|(_) __ _ #
  10. # / / / _ \ | '_ \ | |_ | | / _` | #
  11. # / /___| (_) || | | || _|| || (_| | #
  12. # \____/ \___/ |_| |_||_| |_| \__, | #
  13. # |___/ #
  14. # #
  15. # Developed by xDefcon & BlackDemonZyT #
  16. # #
  17. #------------------------------------------------------------#
  18. # This is the default configuration file, we did our best to #
  19. # achieve the settings that could fit almost any network. #
  20. # In some cases, if your network is big for instance, you #
  21. # may have to edit the values and do some tests by yourself #
  22. # in order to find the most suitable way. #
  23. ##############################################################
  24.  
  25.  
  26. # The name of your server(s) where players do /login and /register commands
  27. auth-lobby:
  28. - "PRELOBBY3"
  29.  
  30. # Define that if in X seconds, Y connections are established, it will enable the AntiBot mode.
  31. # You can also change the duration and ActionBar message.
  32. antibot-mode:
  33. seconds: 2
  34. connections: 10
  35. duration: 30
  36. activated-msg: "&a&lAntiBot mode activated."
  37. deactivated-msg: "&c&lAntiBot mode deactivated."
  38.  
  39. # Configure when an IP should be Banned using the Linux command specified below
  40. # based on their N connection per X seconds.
  41. # Format: "Connections;Seconds"
  42. thresholds:
  43. - "30;60"
  44. - "60;120"
  45. - "75;140"
  46. - "100;200"
  47.  
  48. # If one of the above criteria is met, then the rate limiter kicks in.
  49. ratelimit:
  50. enabled: true
  51. # Should ban ip via linux command?
  52. ban: true
  53. # The LINUX command that will be executed to ban IP addresses internally.
  54. ban-command: "echo {ip}"
  55. # The LINUX command that will be executed to unban IP addresses internally.
  56. unban-command: "echo {ip}"
  57. # Change the delay between unban of each IP (in milliseconds, recommended not to touch)
  58. unban-delay: 75
  59. # Every how many hours should the plugin unban all banned IPs?
  60. reset-banned-hrs: 24
  61.  
  62. # This section is related to BotSentry checks and algorithms configuration.
  63. # You basically don't need to understand the following, as it could result difficult or not clear.
  64. #
  65. # The default settings are set in order to define whether a client is a BOT or a clean USER.
  66. # BotSentry uses the following to tune-up the detection, please keep those values updated with feature
  67. # releases of the plugin.
  68. #
  69. # If you encounter difficulties or problems with bot attacks, please contact the developer on Discord (preferred).
  70. bot-behaviour:
  71. # Enable a first-step mechanism to determine if a user is a bot or not.
  72. basic: true
  73. # The following, when enabled. will check the behaviour of the connected client, usually most bots are caught
  74. # by this system.
  75. advanced: true
  76. # This value should never be more than 3500. If you encounter false positives, please contact developers before
  77. # playing with this value.
  78. min-value: 2500
  79. # This section is intended to check, during a bot attack, the number of new connections and compare them with a
  80. # previous recorded "normal-behaviour"
  81. consistency:
  82. enabled: false
  83. count: 20
  84. delta: 11
  85. # The following should be enabled when "consistency" is enabled too, it compares the previous data over a long period
  86. # and adds some leniency in order to avoid false positives.
  87. collection:
  88. enabled: true
  89. count: 25
  90. leniency: 3
  91. # Do you want to kick bots from the specified authlobby after banning them via IPTables?
  92. # We suggest to leave this as true, mainly because after blocking an address via firewall, the related connections
  93. # will remain open for some time.
  94. kick-authlobby: true
  95.  
  96. # The first join check will ask, during a bot attack, all new players to rejoin.
  97. # The kick message will be displayed once ONLY for NEW players.
  98. first-join:
  99. enabled: true
  100. time: 2000
  101. kick-message: "&aPlease, rejoin the server."
  102.  
  103. whitelist:
  104. # After N seconds of playtime, the player is added to the BotSentry whitelist, and not checked anymore.
  105. seconds-to-play: 70
  106.  
  107. # This check will limit how many players can play with the same IP address during an attack and not.
  108. max-address:
  109. # Toggle the check
  110. enabled: true
  111. threshold:
  112. # Max ip addresses that are allowed to play in normal conditions
  113. normal: 3
  114. # Max ip addresses that are allowed to play during a bot attack
  115. antibotmode: 2
  116.  
  117. # The following section will check all incoming connections in order to determine wheter a number of connection could be
  118. # considered as bot attack (similar to "AntiBotMode").
  119. networking:
  120. # This value should be related to the average players' latency. We suggest to leave this as 45, and playing with
  121. # leniency option. This value should never be changed with values over "52".
  122. tolerance: 50
  123. trigger: 2
  124. leniency: 1.26
  125.  
  126. # Section related to actionbar messages - "botsentry.advice" permission.
  127. actionbar:
  128. # Toggle actionbar notification to admins.
  129. enabled: true
  130. msg: "&8[&a{ip}&8] &7has been detected as a &cBOT"
  131. first-join: "&8[&a{username}&8] &7has been kicked for &cFIRST JOIN"
  132. rejoin: "&8[&a{username}&8] &7has been kicked for &cREJOIN"
  133. rejoin-success: "&8[&a{username}&8] &7rejoined &aSUCCESSFULLY"
  134. whitelist: "&8[&a{username}&8] &7joined, he is in the &aWHITELIST"
  135. whitelisted: "&8[&a{username}&8] &7has been &aWHITELISTED"
  136. collection: "&8[&a{username}&8] &7got kicked for &cCOLLECTION"
  137. consistency: "&8[&a{username}&8] &7got kicked for &cCONSISTENCY"
  138. collection-active: "&a&lCOLLECTION ENABLED"
  139. consistency-active: "&a&lCONSISTENCY ENABLED"
  140.  
  141. # Section related to title message - "botsentry.advice" permission - sent every 10 seconds during an attack.
  142. title:
  143. enabled: true
  144. title: "&c&lFresh Bots"
  145. subtitle: "&e&l{num} &6&lbots IPTables banned in 10 seconds!"
  146.  
  147. # The message that is shown every connection to the console.
  148. console-message: "&cFreshcraft &7>> &7[&e{ip}&7] [&a{nickname}&7] &6has connected! &7[&eNum. {count}&7]"
  149.  
  150. # Plugin messages sent to players.
  151. msg:
  152. kick: "&6&l[Freshcraft] &6You have been detected as a &c&lBOT&6! \n &7Do you think that this is an error? \n &7Contact us on Twitter! \n &btwitter.com/FreshcraftNT"
  153. unbanning: "&aUnbanning IP addresses (this could take a while)..."
  154. unbanned: "&aUnbanned {count} IP addresses."
  155. reloaded: "&aPlugin reloaded."
  156. insufficient-permissions: "&cInsufficient permissions."
  157. ip-banned: "&aSuccessfully banned IP address."
  158. banning-via-firewall: "&4Freshcraft &7>> &aUsing Linux ban command: &b{ip} &7- &aThreshold: &b{threshold}"
  159. toggled-notifications: "&aSuccessfully toggled actionbar and title notifications."
  160. help: "&6&m--------------&c &lFreshBots HELP &6&m--------------\n
  161. &b \n
  162. &9Aliases: &b/bs &7& &b/botsentry\n
  163. &b \n
  164. &7/bs now &8> &eSee the banned bots in that time period\n
  165. &7/bs stats &8> &eSee the total banned bots in life period\n
  166. &7/bs ban &a{IP} &8> &eBan the specified IP via IPTables\n
  167. &7/bs unban &a{IP} &8> &eUnban the specified IP via IPTables\n
  168. &7/bs unban &aall &8> &eUnban all banned IPs via IPTables\n
  169. &b \n
  170. &6&m-----------------------------------------------"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement