-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml.example
45 lines (45 loc) · 1.17 KB
/
config.yml.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
debug: false
metrics_addr: 0.0.0.0:2112
logfile: test.log
log_format: ^(?P<ip>\d+\.\d+\.\d+\.\d+) - - \[.{26}\] \"(?P<request>[^\"]*)\" \d{3} \d+ \"(?P<referer>[^\"]*)\" \"(?P<user_agent>[^\"]*)\" rt.*$
checkers:
- kind: list
sources:
- src: ./lists/our_servers.txt
type: txt
action: whitelist
- src: https://ip-ranges.amazonaws.com/ip-ranges.json
type: aws_ip_ranges
action: whitelist
aws_service_filter:
- ROUTE53_HEALTHCHECKS
- src: https://check.torproject.org/torbulkexitlist
type: txt
action: block
- kind: geoip
allowed_countries:
- RU
path: ""
- kind: field
field_name: user_agent
contains:
- Go-http-client
action: block
- kind: reverse_dns
rules:
- field: user_agent
field_contains:
- Google
- Googlebot
- googleweblight
domain_suffixes:
- googlebot.com
- google.com
resolver: 8.8.8.8
block_action:
- bash
- -c
- echo {{.ip}} >> block_.txt
blocklog: block.txt
blocklog_template: "{{.time}} {{.ip}} {{.country}} {{.checker}}"
whitelist_cache_path: whitelist.txt