· 6 years ago · Feb 01, 2020, 04:16 AM
1 redis:
2 # Whether or not to use Redis for storage
3 # https://redis.io/
4 enabled: false
5 connection:
6 # Address and port of the Redis instance
7 address: '127.0.0.1:6379'
8 # Redis credentials
9 password: ''
10 # Storage prefix for all plugin data
11 prefix: 'avpn:'
12 sqlite:
13 # Whether or not to use SQLite
14 # https://www.sqlite.org/index.html
15 enabled: false
16 connection:
17 # File name for the database
18 file: 'anti_vpn.db'
19 # Table prefix for all plugin tables, indexes, keys, and procedures
20 prefix: 'avpn_'
21 # Extra options to use with the database server
22 # These values will override any others
23 options: 'useUnicode=true&characterEncoding=utf8'
24 settings:
25 # The maximum size of the storage engine connection pool
26 # Determines the max number of connections to storage engines
27 max-pool-size: 4
28 # The minimum size of the storage engine connection pool
29 # Determines the min number of connections kept alive to storage engines
30 min-idle: 4
31 # The maximum lifetime of a connection in the pool
32 # Should be at least 30 seconds less than any storage engine or infrastructure-imposed connection time limit
33 max-lifetime: 1800000 # 30 minutes
34 # The maximum number of milliseconds that the plugin will wait for a new connection from the pool before timing out
35 timeout: 5000 # 5 seconds
36 # The order in which the storage engines will be used
37 # The first available engine will be considered the "master" and will be the authoritative data source
38 # Keep in mind that, for redundancy, ALL defined and enabled storage engines will be used
39 order:
40 - 'mysql'
41 - 'redis'
42 - 'sqlite'
43
44# How the plugin rapidly shares information with other servers along the network
45# Note that cross-server chat toggling only works if a messaging engine is provided
46# Else any toggled chat will be erased when the player leaves the server
47messaging:
48 engines:
49 rabbitmq:
50 # Whether or not to use RabbitMQ for messaging
51 # https://www.rabbitmq.com/
52 enabled: false
53 connection:
54 # Address and port of the RabbitMQ instance
55 address: '127.0.0.1:5672'
56 # RabbitMQ virtual host
57 v-host: '/'
58 # RabbitMQ credentials
59 username: 'guest'
60 password: 'guest'
61 redis:
62 # Whether or not to use Redis for messaging
63 # https://redis.io/
64 enabled: false
65 connection:
66 # Address and port of the Redis instance
67 address: '127.0.0.1:6379'
68 # Redis credentials
69 password: ''
70 settings:
71 # The maximum size of the messaging engine connection pool
72 # Determines the max number of connections to messaging engines
73 max-pool-size: 5 # + 1 for the receiver
74 # The minimum size of the messaging engine connection pool
75 # Determines the min number of connections kept alive to messaging engines
76 min-idle: 5 # + 1 for the receiver
77 # The maximum lifetime of a connection in the pool
78 # Should be at least 30 seconds less than any messaging engine or infrastructure-imposed connection time limit
79 max-lifetime: 1800000 # 30 minutes
80 # The maximum number of milliseconds that the plugin will wait for a new connection from the pool before timing out
81 timeout: 5000 # 5 seconds
82 # The order in which the messaging engines will be used
83 # Keep in mind that, for redundancy, ALL defined and enabled messaging engines will be used
84 order:
85 - 'rabbitmq'
86 - 'redis'
87
88# Where VPN-checking sources are defined
89# Beware the more sources that are included (and fail) the worse the performance and the more the lag
90sources:
91 # The amount of time to globally cache results across all sources
92 # This should be as high as possible to avoid rate-limits but as low as possible to ensure results are always up-to-date and accurate
93 cache-time: '6hours'
94
95 # The order to try results in
96 order:
97 - 'proxycheck'
98 - 'iptrooper'
99 - 'ipqualityscore'
100 - 'getipintel'
101 - 'iphub'
102 - 'iphunter'
103 - 'vpnblocker'
104 - 'ip2proxy'
105 - 'shodan'
106 - 'teoh'
107 - 'ipwarner'
108
109 # https://proxycheck.io
110 # Results updated Jan 19, 2020
111 # Error rate: 0.00%
112 # NordVPN detection rate: 100.00%
113 # Cryptostorm detection rate: 100.00%
114 # False-flagged homes: 0.00%
115 proxycheck:
116 enabled: true
117 # Optional API key to use
118 key: 'x71295-705326-y39npb-449657'
119
120 # https://iptrooper.net/
121 # Results updated Jan 19, 2020
122 # Error rate: 0.00%
123 # NordVPN detection rate: 96.00%
124 # Cryptostorm detection rate: 100.00%
125 # False-flagged homes: 0.00%
126 iptrooper:
127 enabled: false
128
129 # https://www.ipqualityscore.com/
130 # Results updated Jan 19, 2020
131 # Error rate: 0.00%
132 # NordVPN detection rate: 90.00%
133 # Cryptostorm detection rate: 96.43%
134 # False-flagged homes: 0.00%
135 ipqualityscore:
136 enabled: false
137 # API key to use (Required for this service, free one available at https://www.ipqualityscore.com/create-account )
138 key: ''
139 # Threshold above which an IP is considered "bad"
140 threshold: 0.65
141
142 # https://www.getipintel.net/
143 # Results updated Jan 19, 2020
144 # Error rate: 0.00%
145 # NordVPN detection rate: 86.00%
146 # Cryptostorm detection rate: 100.00%
147 # False-flagged homes: 0.00%
148 getipintel:
149 enabled: false
150 # Contact e-mail in case things go wrong. Required
151 contact: 'admin@yoursite.com'
152 # Threshold above which an IP is considered "bad"
153 threshold: 0.98
154
155 # https://iphub.info/
156 # Results updated Jan 19, 2020
157 # Error rate: 0.00%
158 # NordVPN detection rate: 84.00%
159 # Cryptostorm detection rate: 96.43%
160 # False-flagged homes: 0.00%
161 iphub:
162 enabled: false
163 # API key to use (Required for this service, free one available at https://iphub.info/apiKey/newFree )
164 key: ''
165 # The block type at which an IP is considered "bad"
166 block: 1
167
168 # https://www.iphunter.info/
169 # Results updated Jan 19, 2020
170 # Error rate: 0.00%
171 # NordVPN detection rate: 60.00%
172 # Cryptostorm detection rate: 92.86%
173 # False-flagged homes: 0.00%
174 iphunter:
175 enabled: false
176 # API key to use (Required for this service, free one available at https://www.iphunter.info/user/register )
177 key: ''
178 # The block type at which an IP is considered "bad"
179 block: 1
180
181 # https://vpnblocker.net/usage
182 # Results updated Jan 19, 2020
183 # Error rate: 0.00%
184 # NordVPN detection rate: 64.00%
185 # Cryptostorm detection rate: 82.14%
186 # False-flagged homes: 0.00%
187 vpnblocker:
188 enabled: false
189 # Optional API key to use
190 key: ''
191
192 # https://www.ip2location.com/web-service/ip2proxy
193 # NOTE: This info is old
194 # Results updated Jul 18, 2019
195 # Error rate: 0%
196 # NordVPN detection rate: 100%
197 # Cryptostorm detection rate: 60%
198 # False-flagged homes: 0%
199 ip2proxy:
200 enabled: false
201 # API key to use (Required for this service, free one available using 'demo' or at https://www.ip2location.com/register?id=1006 )
202 key: 'demo'
203
204 # https://www.shodan.io/
205 # Results updated Jan 19, 2020
206 # Error rate: 55.15%
207 # NordVPN detection rate: 90.00%
208 # Cryptostorm detection rate: 0.00%
209 # False-flagged homes: 0.00%
210 shodan:
211 enabled: false
212 # API key to use (Required for this service)
213 key: ''
214
215 # https://ip.teoh.io/vpn-detection
216 # NOTE: This info is old
217 # Results updated Jul 7, 2019
218 # Error rate: 10%
219 # NordVPN detection rate: 61.90%
220 # Cryptostorm detection rate: 100%
221 # False-flagged homes: 0%
222 teoh:
223 enabled: false
224
225 # https://ipwarner.com/
226 ipwarner:
227 enabled: false
228 # API key to use (Required for this service, free one available at https://ipwarner.com/register )
229 key: ''
230
231mcleaks:
232 # The amount of time to globally cache results
233 # This should be as high as possible to avoid rate-limits but as low as possible to ensure results are always up-to-date and accurate
234 cache-time: '1day'
235 # Optional API key to use (e-mail API author, following instructions from "I'm frequently hitting your rate limit/my server has large influxes of players" at https://github.com/TheMrGong/MCLeaksApiClient#faq )
236 key: ''
237
238action:
239 vpn:
240 # The kick message to display to players who are using VPNs
241 # If left blank, will not kick the player
242 kick-message: '&cPlease disconnect from your proxy or VPN before re-joining!'
243 # The commands that CONSOLE will run for players who are using VPNs
244 # Use %player% as a placeholder for the player's (real) name
245 # Use %uuid% as a placeholder for the player's uuid
246 # Use %ip% as a placeholder for the player's IP
247 # If left blank, will not run anything
248 commands:
249 - ''
250
251 algorithm:
252 # The algorithm method
253 #
254 # Options:
255 # - Cascade
256 # The plugin will go down the "sources" list, sequentially, until a valid source is found
257 # It will then query that source and return the result
258 # This will result in essentially "the first valid result" being returned
259 # - Consensus
260 # The plugin will try every source in the "sources" list at once
261 # It will then strip invalid results, and calculate the ratio of results from the remaining sources
262 # This will result in essentially "the ratio of valid results" being returned
263 method: 'cascade'
264
265 # Only used for "consensus" mode
266 # The minimum ratio of APIs that must agree before a player is kicked
267 # For example, if set to "0.6" then at least 60% of sources must agree that the IP is a VPN
268 # The value can range from 0 to 1, and will be clipped at those values
269 min-consensus: 0.6
270 mcleaks:
271 # The kick message to display to players who are using MCLeaks accounts
272 # If left blank, will not kick the player
273 kick-message: '&cPlease discontinue your use of an MCLeaks account!'
274 # The commands that CONSOLE will run for players who are using MCLeaks accounts
275 # Use %player% as a placeholder for the player's (real) name
276 # Use %uuid% as a placeholder for the player's uuid
277 # Use %ip% as a placeholder for the player's IP
278 # If left blank, will not run anything
279 commands:
280 - ''
281
282 # IPs and ranges to ignore when checking for VPNs and/or MCLeaks accounts
283 ignore:
284 - '127.0.0.0/8'
285 - '::1/128'
286
287connection:
288 # The amount of time to cache lookups in-memory
289 # Higher values require more memory
290 # Lower values will hit Storage/APIs more frequently
291 # Generally the default is good enough to prevent many sequential lookups from choking resources, but still keep memory usage low
292 cache-time: '1minute'
293 # The number of threads to use for web operations
294 threads: 4
295 # The maximum number of milliseconds that the plugin will wait for an API to respond before timing out
296 timeout: 5000 # 5 seconds
297
298# When true, logs some extra output to the console so you can see if/why things might be failing
299debug: false
300# Default language (affects console output)
301lang: 'en'
302
303stats:
304 # Whether or not to send anonymous usage statistics to bStats
305 # True: Send anonymous stats; let the author know how well the plugin is doing and how it's used!
306 # False: Do not send stats and make the author sad :(
307 usage: true
308 # Whether or not to send anonymous errors to the author
309 # True: Send errors anonymously to Rollbar and/or GameAnalytics so the author can fix them!
310 # False: Do not send errors and wonder why any bugs you encounter haven't been fixed
311 errors: true
312
313update:
314 # Whether or not to automatically check for updates and notify the console if found
315 check: false
316 # Whether or not to notify players with the avpn.admin permission node
317 notify: false
318
319# Config version, no touchy plz
320version: 4.11