Advertisement
thevipershowita

Untitled

Jul 12th, 2019
12,084
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 8.43 KB | None | 0 0
  1. # How the plugin stores long-term data
  2. storage:
  3.  # The storage method
  4.   #
  5.   # Options:
  6.   # - MySQL (remote)
  7.   # - SQLite (local)
  8.   method: 'sqlite'
  9.  
  10.   data:
  11.    # Address and port of the remote database (if applicable)
  12.     address: '127.0.0.1:3306'
  13.     # The name of the database Anti-VPN will store data in
  14.     # If you're using remote options, this must be created beforehand
  15.     database: 'avpn'
  16.     # Table prefix for all Anti-VPN tables
  17.     prefix: 'antivpn_'
  18.     # Database credentials (if applicable)
  19.     username: ''
  20.     password: ''
  21.     # Whether or not to use SSL
  22.     ssl: false
  23.  
  24.     # MongoDB options- obviously don't need to worry about these if not using MongoDB ;)
  25.     mongodb:
  26.      # Connection prefix for all Anti-VPN connections
  27.       collection-prefix: ''
  28.       # MongoDB ClientConnectionURI
  29.       connection-uri: ''
  30.  
  31.   settings:
  32.    # The maximum size of the database connection pool
  33.     # Determines the max number of connections to the database
  34.     max-pool-size: 2
  35.     # The minimum size of the satabase connection pool
  36.     # Determines the min number of connections kept alive to the database
  37.     min-idle: 2
  38.     # The maximum lifetime of a connection in the pool
  39.     # Should be at least 30 seconds less than any database or infrastructure-imposed connection time limit
  40.     max-lifetime: 1800000 # 30 minutes
  41.     # The maximum number of milliseconds that the plugin will wait for a new connection from the pool before timing out
  42.     timeout: 5000 # 5 seconds
  43.  
  44.     # Extra connection properties
  45.     properties:
  46.       unicode: true
  47.       encoding: 'utf8'
  48.  
  49. # Redis is a very fast cache accessible by multiple servers
  50. # If you don't want to constantly hit your database for queries, try enabling and configuring this
  51. # You will need to install the (external) Redis server software if you haven't already
  52. # https://redis.io/
  53. redis:
  54.   enabled: false
  55.   # Address and port of the remote Redis server
  56.   address: '127.0.0.1:6379'
  57.   # Redis credentials
  58.   password: ''
  59.  
  60. # RabbitMQ is a messaging queue that will allow the plugin to push instant updates across multiple servers
  61. # You will need to install the (external) RabbitMQ server software if you haven't already
  62. # https://www.rabbitmq.com/
  63. rabbitmq:
  64.   enabled: false
  65.   # Address and port of the remote RabbitMQ server
  66.   address: '127.0.0.1:5672'
  67.   # RabbitMQ credentials
  68.   username: 'guest'
  69.   password: 'guest'
  70.  
  71. # Where VPN-checking sources are defined
  72. # Beware the more sources that are included (and fail) the worse the performance and the more the lag
  73. sources:
  74.  # The amount of time to globally cache results across all sources
  75.   # 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
  76.   cacheTime: '6hours'
  77.  
  78.   # The order to try results in
  79.   order:
  80.  - 'iphub'
  81.   - 'proxycheck'
  82.   - 'iphunter'
  83.   - 'getipintel'
  84.   - 'ipqualityscore'
  85.   - 'vpnblocker'
  86.   - 'teoh'
  87.   - 'shodan'
  88.   - 'ipwarner'
  89.  
  90.   # https://iphub.info/
  91.   # Results updated Jul 7, 2019
  92.   # Error rate: 0%
  93.   # NordVPN detection rate: 85.71%
  94.   # Cryptostorm detection rate: 100%
  95.   # False-flagged homes: 0%
  96.   iphub:
  97.     enabled: false
  98.     # API key to use (Required for this service, free one available at https://iphub.info/apiKey/newFree )
  99.     key: ''
  100.     # The block type at which an IP is considered "bad"
  101.     block: 1
  102.  
  103.   # https://proxycheck.io
  104.   # Results updated Jul 7, 2019
  105.   # Error rate: 0%
  106.   # NordVPN detection rate: 80.95%
  107.   # Cryptostorm detection rate: 100%
  108.   # False-flagged homes: 0%
  109.   proxycheck:
  110.     enabled: true
  111.     # Optional API key to use
  112.     key: ''
  113.  
  114.   # https://www.iphunter.info/
  115.   # Results updated Jul 7, 2019
  116.   # Error rate: 0%
  117.   # NordVPN detection rate: 95.24%
  118.   # Cryptostorm detection rate: 90%
  119.   # False-flagged homes: 40%
  120.   iphunter:
  121.     enabled: false
  122.     # API key to use (Required for this service, free one available at https://www.iphunter.info/user/register )
  123.     key: ''
  124.     # The block type at which an IP is considered "bad"
  125.     block: 1
  126.  
  127.   # https://www.getipintel.net/
  128.   # Results updated Sep 6, 2018
  129.   # Error rate: 5%
  130.   # NordVPN detection rate: 90.48%
  131.   # Cryptostorm detection rate: 100%
  132.   # False-flagged homes: 40%
  133.   getipintel:
  134.     enabled: true
  135.     # Contact e-mail in case things go wrong. Required
  136.     contact: 'admin@yoursite.com'
  137.     # Threshold above which an IP is considered "bad"
  138.     threshold: 0.98
  139.  
  140.   # https://www.ipqualityscore.com/
  141.   # Results updated Jul 7, 2019
  142.   # Error rate: 0%
  143.   # NordVPN detection rate: 90.48%
  144.   # Cryptostorm detection rate: 90%
  145.   # False-flagged homes: 40%
  146.   ipqualityscore:
  147.     enabled: false
  148.     # API key to use (Required for this service, free one available at https://www.ipqualityscore.com/create-account )
  149.     key: ''
  150.     # Threshold above which an IP is considered "bad"
  151.     threshold: 0.65
  152.  
  153.   # https://vpnblocker.net/usage
  154.   # Results updated Jul 7, 2019
  155.   # Error rate: 0%
  156.   # NordVPN detection rate: 66.67%
  157.   # Cryptostorm detection rate: 95%
  158.   # False-flagged homes: 10%
  159.   vpnblocker:
  160.     enabled: true
  161.     # Optional API key to use
  162.     key: ''
  163.  
  164.   # https://ip.teoh.io/vpn-detection
  165.   # Results updated Jul 7, 2019
  166.   # Error rate: 10%
  167.   # NordVPN detection rate: 61.90%
  168.   # Cryptostorm detection rate: 100%
  169.   # False-flagged homes: 0%
  170.   teoh:
  171.     enabled: true
  172.  
  173.   # https://www.shodan.io/
  174.   # Results updated Jul 7, 2019
  175.   # Error rate: 94.52%
  176.   # NordVPN detection rate: 95.24%
  177.   # Cryptostorm detection rate: 60%
  178.   # False-flagged homes: 0%
  179.   shodan:
  180.     enabled: false
  181.     # API key to use (Required for this service)
  182.     key: ''
  183.  
  184.   # https://ipwarner.com/
  185.   ipwarner:
  186.     enabled: false
  187.     # API key to use (Required for this service, free one available at https://ipwarner.com/register )
  188.     key: ''
  189.  
  190. action:
  191.  # The kick message to display to players who are using VPNs
  192.   # If left blank, will not kick the player
  193.   kick-message: '&cPlease disconnect from your proxy or VPN before re-joining!'
  194.   # The command that CONSOLE will run for players who are using VPNs
  195.   # Use %player% as a placeholder for the player's (real) name
  196.   # Use %uuid% as a placeholder for the player's uuid
  197.   # If left blank, will not run anything
  198.   command: ''
  199.  
  200.   algorithm:
  201.    # The algorithm method
  202.     #
  203.     # Options:
  204.     # - Cascade
  205.     #   The plugin will go down the "sources" list, sequentially, until a valid source is found
  206.     #   It will then query that source and return the result
  207.     #   This will result in essentially "the first valid result" being returned
  208.     # - Consensus
  209.     #   The plugin will try every source in the "sources" list at once
  210.     #   It will then strip invalid results, and calculate the ratio of results from the remaining sources
  211.     #   This will result in essentially "the ratio of valid results" being returned
  212.     method: 'cascade'
  213.  
  214.     # Only used for "consensus" mode
  215.     # The minimum ratio of APIs that must agree before a player is kicked
  216.     # For example, if set to "0.6" then at least 60% of sources must agree that the IP is a VPN
  217.     # The value can range from 0 to 1, and will be clipped at those values
  218.     min-consensus: 0.6
  219.  
  220.   # IPs to ignore when checking for VPNs
  221.   ignore:
  222.  - '127.0.0.1'
  223.   - 'localhost'
  224.   - '::1'
  225.  
  226. # The amount of time to cache lookups in-memory
  227. # Higher values require more memory
  228. # Lower values will hit Redis/SQL/APIs more frequently
  229. # Generally the default is good enough to prevent many sequential lookups from choking resources, but still keep memory usage low
  230. cacheTime: '1minute'
  231. # When true, logs some extra output to the console so you can see if/why things might be failing
  232. debug: false
  233. # The number of threads to use for web operations
  234. threads: 4
  235.  
  236. stats:
  237.  # Whether or not to send anonymous usage statistics to bStats
  238.   # True: Send anonymous stats; let the author know how well the plugin is doing and how it's used!
  239.   # False: Do not send stats and make the author sad :(
  240.   usage: true
  241.   # Whether or not to send anonymous errors to the author
  242.   # True: Send errors anonymously to Rollbar and/or GameAnalytics so the author can fix them!
  243.   # False: Do not send errors and wonder why any bugs you encounter haven't beeen fixed
  244.   errors: true
  245.  
  246. update:
  247.  # Whether or not to automatically check for updates and notify the console if found
  248.   check: true
  249.   # Whether or not to notify players with the avpn.admin permission node
  250.   notify: true
  251.  
  252. # Config version, no touchy plz
  253. version: 3.8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement