-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.nix
72 lines (66 loc) · 1.87 KB
/
config.nix
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
# Example configuration to proxy telegram messenger traffic.
# It will allow an authenticated user with login "jarov" and
# password "g0t0gulag"(all coincidences with reality are accidental)
# to connect to hosts which was specified in `targets`.
log.level = "debug";
listen = "127.0.0.1:1338";
proxy = {
accounts."jarov" = "g0t0gulag";
whitelist = {
addresses = [
# https://core.telegram.org/resources/cidr.txt
"149.154.167.99/32"
"149.154.175.10/32"
"149.154.167.40/32"
"149.154.167.42/32"
"149.154.175.117/32"
"149.154.175.50/32"
"149.154.167.50/32"
"149.154.167.51/32"
"149.154.175.100/32"
"149.154.167.91/32"
"149.154.167.90/32"
"149.154.165.120/32"
"149.154.166.120/32"
"149.154.164.250/32"
"149.154.167.117/32"
"149.154.167.118/32"
"149.154.167.192/27"
"149.154.164.8/29"
"91.108.8.0/27"
"91.108.12.0/27"
"91.108.16.0/27"
"91.108.56.0/24"
"91.108.4.0/24"
"149.154.160.0/22"
"149.154.164.0/22"
"149.154.168.0/22"
"149.154.172.0/22"
"91.108.56.0/22"
"91.108.4.0/22"
"91.108.8.0/22"
"91.108.16.0/22"
"91.108.12.0/22"
"149.154.160.0/20"
"2001:b28:f23d:f001::e/128"
"2001:67c:4e8:f002::e/128"
"2001:b28:f23d:f003::e/128"
"2001:b28:f23d:f001::a/128"
"2001:67c:4e8:f002::a/128"
"2001:b28:f23d:f003::a/128"
"2001:67c:4e8:f004::a/128"
"2001:b28:f23f:f005::a/128"
"2001:67c:4e8:fa60::/64"
"2001:b28:f23d::/48"
"2001:b28:f23f::/48"
"2001:67c:4e8::/48"
];
domains = [
"^(.*\.)?t\.me$"
"^(.*\.)?telegram\.org$"
];
};
#metrics.statsdaddresses = [ "127.0.0.1:8125" ];
};
}