Simon Zolin
76c9e61199
* TLS: don't print certificate data
2019-10-22 12:09:32 +03:00
Simon Zolin
e2ff8628ad
- filters: auto-update didn't work
2019-10-17 14:33:38 +03:00
Simon Zolin
5cc8513322
* use debug log level for unimportant messages
2019-10-16 12:03:51 +03:00
Simon Zolin
e2c26ec554
* API changes
...
* filtering_info -> filtering/status
* filtering_config -> filtering/config
2019-10-14 15:55:58 +03:00
Simon Zolin
bfc6c98109
Merge: + auth: add more tests
...
#1060
* commit '91bb9ccae69afadc06206d413d57c1c3b136e7a7':
+ auth: add more tests
2019-10-11 17:03:50 +03:00
Simon Zolin
91bb9ccae6
+ auth: add more tests
...
* use directory "./agh-test"
2019-10-11 16:59:14 +03:00
Simon Zolin
c299753b67
- whois: couldn't set info on existing auto-clients
2019-10-11 16:58:10 +03:00
Simon Zolin
c9d7bc3069
* "refresh filters" HTTP handler: return the old synchronous behaviour
...
This was broken by "* dnsfilter: major refactoring"
2019-10-10 17:12:32 +03:00
Simon Zolin
6a08a9faa6
- whois/rdns: start processing top clients on startup after DNS server is started
2019-10-10 14:00:02 +03:00
Simon Zolin
8676cabc42
* whois/rdns: process up to 100 top clients on startup
2019-10-10 13:55:44 +03:00
Simon Zolin
a59e346d4a
* dnsfilter: major refactoring
...
* dnsfilter is controlled by package home, not dnsforward
* move HTTP handlers to dnsfilter/
* apply filtering settings without DNS server restart
* use only 1 goroutine for filters update
* apply new filters quickly (after they are ready to be used)
2019-10-09 20:05:21 +03:00
Simon Zolin
90db91b0fd
* querylog: refactor: move HTTP handlers to querylog/
2019-10-09 19:38:58 +03:00
Simon Zolin
f4451dca7b
Merge: * whois: improvements
...
Close #1035 , Close #1036 , Close #1047
* commit 'bd29b22f17d5b326d9fd603aa4f74593a0f1fca7':
* CI: disable check if Git repo contains uncommited changes
- whois: use the first "descr" field, not the last
* filter: speed up parsing
* whois: use whois.arin.net
+ whois, rdns: begin getting info for the most active clients on startup
+ stats: GetTopData()
* stats: refactor
2019-10-09 19:26:42 +03:00
Simon Zolin
e9186e6202
- whois: use the first "descr" field, not the last
2019-10-09 18:03:22 +03:00
Simon Zolin
3b9b37dde7
* filter: speed up parsing
2019-10-09 18:03:22 +03:00
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
Simon Zolin
127cca0c83
* systemd service file: fix boot priority: start AGH after network is online
2019-10-08 12:29:11 +03:00
Devin Buhl
55538f72ea
block epic games
2019-10-04 17:57:51 +03:00
Ildar Kamalov
eb6dc76920
+ i18n: add new languages
2019-10-03 20:52:14 +03:00
Andrey Meshkov
8a05e61feb
*: fix auth tests - don't leave repo dirty
2019-10-02 17:02:16 +03:00
Andrey Meshkov
ed0c5ee525
*: tests mustn't leave repo dirty
2019-10-02 16:59:34 +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
319cc848bd
- crash after filter update if its data is too small
2019-09-27 13:22:08 +03:00
Simon Zolin
81828c87c1
* querylog: POST /control/querylog
2019-09-26 18:27:31 +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
Simon Zolin
fcf37da312
* clients: remove an auto-client if a client with the same IP was added manually
2019-09-25 16:11:42 +03:00
Simon Zolin
95eeccde8f
+ whois: use "descr" or "netname" in case there's no "orgname"
2019-09-25 16:11:42 +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
07fa9bb47c
* minor
2019-09-19 12:47:55 +03:00
Andrey Meshkov
4e76013334
*(home): fix golint issues
2019-09-19 12:47:55 +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
a71521a658
+ config: upgrade from v4 to v5
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
93babd3e1c
+ clients: runtime list: add clients from DHCP that have non-empty Hostname property
2019-09-16 13:06:32 +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
8a2aa57e24
- /stats_config: write config
2019-09-12 14:48:24 +03:00
Simon Zolin
97684368b9
- stats: use --workdir
2019-09-12 14:48:13 +03:00
Simon Zolin
b078b82a89
* filter update: ensure filter data is text (but not html)
...
stop checking Content-Type HTTP header
2019-09-10 15:22:17 +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
fe23b33d7e
+ config: "statistics_interval" setting
2019-09-04 10:12:01 +03:00
Simon Zolin
cc2654c371
+ /control/stats_config, /control/stats_info
2019-09-04 10:12:01 +03:00