Simon Zolin
37fe3c148f
* whois: use whois.arin.net
...
+ robust redirect mechanism
* decrease timeout 30sec -> 5sec
* faster response parsing
* don't use likexian/whois-go package
2019-10-09 18:03:22 +03:00
Simon Zolin
d75620fdc0
+ whois, rdns: begin getting info for the most active clients on startup
2019-10-09 18:03:22 +03:00
Andrey Meshkov
33ae359cc1
*: change initDNSServer method, add getDataDir
2019-10-02 16:53:23 +03:00
Andrey Meshkov
9b23acf6da
*: fix linter warnings
2019-10-02 16:40:26 +03:00
Simon Zolin
bbb5413331
* stats: refactor: move HTTP handlers to stats/
...
DNS module passes additional parameters to Stats module.
This allows Stats to handle HTTP requests by itself - completely removing
all stats-related code from outside.
2019-09-26 16:52:28 +03:00
Andrey Meshkov
875905ce8a
Merge: Add WHOIS info for clients
...
* commit 'a52715e0863af0a9e1b26dbf96fc7cced02ae4f6':
+ client: add whois info to dashboard and logs
+ client: add whois info to clients and auto clients table
* rDNS: refactor
+ whois: add WHOIS information for a client
2019-09-23 20:07:05 +03:00
Simon Zolin
75b864f25e
* dnsforward: create dnsfilter asynchronously
2019-09-23 20:00:11 +03:00
Simon Zolin
192b58b9d9
* rDNS: refactor
2019-09-23 18:14:00 +03:00
Simon Zolin
fd592b4dc8
+ whois: add WHOIS information for a client
...
+ return WHOIS info in GET /clients response
2019-09-23 18:12:54 +03:00
Simon Zolin
d7f256ba7f
- fix crash after stats module is closed
...
Close DNS forward module BEFORE stats.
2019-09-19 12:47:55 +03:00
Simon Zolin
6304a7b91b
+ Login page and web sessions
...
+ /control/login
+ /control/logout
2019-09-19 12:47:55 +03:00
Simon Zolin
b8a98c1a77
* stats: pass configuration object via stats.New()
2019-09-16 16:17:39 +03:00
Simon Zolin
adb422fedf
filtering: refactor; change API; add "filters_update_interval" setting
...
+ config: "filters_update_interval"
* add /control/filtering_info
* remove /control/filtering/enable
* remove /control/filtering/disable
* add /control/filtering_config
* remove /control/filtering/status
* add /control/filtering/set_url
* remove /control/filtering/enable_url
* remove /control/filtering/disable_url
2019-09-12 18:38:13 +03:00
Simon Zolin
8104c902ee
* querylog: move code to a separate package
...
+ config: "querylog_interval" setting
/control/querylog_config, /control/querylog_info
+ POST /control/querylog_clear
2019-09-12 18:35:13 +03:00
Simon Zolin
04e2566e9e
* stats: use uint32 or uint64 integer values, not int
2019-09-12 17:53:27 +03:00
Simon Zolin
97684368b9
- stats: use --workdir
2019-09-12 14:48:13 +03:00
Simon Zolin
4a58266ba3
+ statistics: store in separate file
...
+ GET /control/stats handler
2019-09-04 10:12:02 +03:00
Simon Zolin
60eb55bdce
* stats: remove old code
2019-09-04 10:12:01 +03:00
Simon Zolin
4f08f96607
* rDNS: refactor: move code to a separate file
2019-08-08 12:10:50 +03:00
Simon Zolin
e81a9c7d56
+ dnsfilter: use global and per-client BlockedServices array
2019-08-05 14:12:22 +03:00
Simon Zolin
6701e9ce06
* move "dnsctx" to "config"
2019-07-19 12:18:16 +03:00
Simon Zolin
af21a5f17b
* move "dnsServer" to "config"
2019-07-19 12:18:16 +03:00
Simon Zolin
d51f43e27a
* clients: move container object to "config"
...
Now the functions use parameter, not a global object.
2019-07-17 19:29:45 +03:00
Simon Zolin
94f3bf44d7
- filters: start DNS server after filter has been removed
2019-07-16 12:55:47 +03:00
Simon Zolin
375e410aa3
- /filtering/remove_url: windows: remove filter file only after DNS server has been stopped
...
Otherwise, os.Remove() will return with an error "file is being used".
2019-07-15 18:23:58 +03:00
Simon Zolin
e2b518339f
- don't load filter rules if filter is disabled
2019-07-15 12:49:48 +03:00
Simon Zolin
1445940473
Merge: * use urlfilter v0.4.0
...
Close #866
* commit '134d9275bba7de7d1550412310bc275c52bb340e':
* use urlfilter v0.4.0
2019-07-05 12:33:30 +03:00
Simon Zolin
134d9275bb
* use urlfilter v0.4.0
...
Now we pass filtering rules to urlfilter as filer file names,
rather than the list of rule strings.
(Note: user rules are still passed as the list of rule strings).
As a result, we don't store the contents of filter files in memory.
2019-07-04 14:10:01 +03:00
Simon Zolin
dc43ad9910
* dns: fail on starting DNS server if upstream servers configuration is incorrect
2019-07-03 17:59:19 +03:00
Simon Zolin
6a1edc45be
- rDNS: don't try to resolve loopback IP addresses
2019-06-25 16:14:52 +03:00
Simon Zolin
dc682763ff
* move ./*.go files into ./home/ directory
2019-06-10 11:51:53 +03:00