Simon Zolin
a3317c08c4
+ dhcpv6 server; rewrite dhcpv4 server; changed API
2020-08-19 18:32:23 +03:00
Simon Zolin
1356ac2633
- clients: fix incorrect info for clients from /etc/hosts
...
Close #1786
Squashed commit of the following:
commit fc662252be38f20c9afda46fcb578efa50c9baf2
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Jun 11 10:57:26 2020 +0300
- clients: fix incorrect info for clients from /etc/hosts
2020-06-11 11:11:52 +03:00
Simon Zolin
2825691c85
* clients: set reload ARP data interval to 10 minuntes
2020-05-26 16:27:13 +03:00
Andrey Meshkov
67a39045fc
-(dnsforward): custom client per-domain upstreams
...
Closes: https://github.com/AdguardTeam/AdGuardHome/issues/1539
2020-05-13 20:31:43 +03:00
Andrey Meshkov
7b8588afa4
*: fix golangci-lint warnings
2020-04-05 18:34:43 +03:00
Simon Zolin
63923fa882
Merge: + DNS: use rules from /etc/hosts
...
- fix filtering logic: don't do DNS response check for Rewrite rules
Close #1478
Squashed commit of the following:
commit 1206b94881289ff664b7c8998ea97c1455da1ff8
Merge: c462577a 5fe98474
Author: Simon Zolin <s.zolin@adguard.com>
Date: Fri Mar 20 15:00:25 2020 +0300
Merge remote-tracking branch 'origin/master' into 1478-auto-records
commit c462577ad84754f5b3ea4cd58339838af817fe36
Author: Simon Zolin <s.zolin@adguard.com>
Date: Fri Mar 20 14:33:17 2020 +0300
minor
commit 7e824ba5f432648a976bc4b8076a645ba875ef70
Author: Simon Zolin <s.zolin@adguard.com>
Date: Fri Mar 20 14:29:54 2020 +0300
more tests
commit a22b62136c5cfd84cd0450897aef9e7d2e20585a
Author: Simon Zolin <s.zolin@adguard.com>
Date: Fri Mar 20 14:09:52 2020 +0300
rename, move
commit 9e5ed49ad3c27c57d540edf18b78d29e56afb067
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Mar 19 15:33:27 2020 +0300
fix logic - don't do DNS response check for Rewrite rules
commit 6cfabc0348a41883b8bba834626a7e8760b76bf2
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Mar 19 11:35:07 2020 +0300
minor
commit 4540aed9327566078e5087d43c30f4e8bffab7b9
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Mar 19 11:03:24 2020 +0300
fix
commit 9ddddf7bded812da48613cc07084e360c15ddd0e
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Mar 19 10:49:13 2020 +0300
fix
commit c5f8ef745b6f2a768be8a2ab23ad80b01b0aa54f
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Mar 19 10:37:26 2020 +0300
fix
commit f4be00947bf0528c9a7cd4f09c4090db444c4694
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Mar 16 20:13:00 2020 +0300
+ auto DNS records from /etc/hosts
2020-03-20 15:05:43 +03:00
Simon Zolin
0789e4b20d
* refactor: move blocked-services functions to dnsfilter
2020-03-17 17:11:22 +03:00
Simon Zolin
e8129f15c7
* refactor
...
1. Auth module was initialized inside dns.go - now it's moved to initWeb()
2. stopHTTPServer() wasn't called on server stop - now we do that
3. Don't use postInstall() HTTP filter where it's not necessary.
Now we register handlers after installation is complete.
2020-03-17 15:23:29 +03:00
Simon Zolin
fa2f793ac7
+ clients: re-read auto-clients from /etc/hosts when SIGHUP is received
2020-03-17 15:21:10 +03:00
Simon Zolin
5dc7b848df
* blocked-services: remove unknown service names
2020-03-02 18:51:48 +03:00
Simon Zolin
dcc575402b
Merge: * clients: update runtime clients of type DHCP by event from DHCP module
...
Close #1378
Squashed commit of the following:
commit e45e2d0e2768fe0677eee43538d381b3eaba39ca
Merge: bea8f79d 5e9c21b0
Author: Simon Zolin <s.zolin@adguard.com>
Date: Wed Jan 29 20:08:20 2020 +0300
Merge remote-tracking branch 'origin/master' into 1378-dhcp-clients
commit bea8f79dd6f8f3eae87649d853917b503df29616
Author: Simon Zolin <s.zolin@adguard.com>
Date: Wed Jan 29 20:08:06 2020 +0300
minor
commit 6f1da9c6ea9db5bf80acf234ffe322a4cd2d8d92
Author: Simon Zolin <s.zolin@adguard.com>
Date: Wed Jan 29 19:31:08 2020 +0300
fix
commit a88b46c1ded2b460ef7f0bfbcf1b80a066edf1c1
Author: Simon Zolin <s.zolin@adguard.com>
Date: Wed Jan 29 12:53:22 2020 +0300
minor
commit d2897fe0a9b726fcd97a04906e3be3d21f6b42d7
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Jan 28 19:55:10 2020 +0300
* clients: update runtime clients of type DHCP by event from DHCP module
commit 3aa352ed2372141617d77363b2f2aeaf3a7e47a0
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Jan 28 19:52:08 2020 +0300
* minor
commit f5c2291e39df4d13b9baf9aa773284890494bb0a
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Jan 28 19:08:23 2020 +0300
* clients: remove old entries of source type /etc/hosts or ARP
2020-01-30 10:25:02 +03:00
Simon Zolin
91c2712366
+ clients: support per-client tags
2020-01-28 14:06:52 +03:00
Simon Zolin
b3ddae7f85
* clients: manual clients don't exclude auto-clients anymore
2020-01-10 15:52:40 +03:00
Simon Zolin
995373c74b
* clients: Upstreams cache: refactor
...
don't use a separate container
2020-01-10 15:52:38 +03:00
Simon Zolin
87bcb67f8f
* clients: remove WHOIS info for manually-added clients
2020-01-10 15:51:57 +03:00
Simon Zolin
0cd25cf598
Merge: - clients: fix rename
...
Close #1340
Squashed commit of the following:
commit 95f0291c681f98c29f4014b651c159d387301af4
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Jan 9 18:56:23 2020 +0300
add test
commit 293be277e245ff2f430e8c1e9ee3e82dc7da0995
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Jan 9 16:04:36 2020 +0300
- clients: fix rename
2020-01-10 15:28:58 +03:00
Simon Zolin
4386e8ddde
- settings safebrowsing_enabled and safesearch_enabled were incorrect (reversed)
2020-01-09 15:01:54 +03:00
Andrey Meshkov
3a077717ae
*(home): do not set whois-info for manually created clients
...
✅ Closes: Do not set WhoisInfo for manually created clients
2019-12-23 20:02:06 +03:00
Andrey Meshkov
cdd55139fa
*(dnsforward): cache upstream instances
...
✅ Closes: https://github.com/AdguardTeam/AdGuardHome/issues/1296
2019-12-23 19:31:27 +03:00
Andrey Meshkov
3dd91cf179
-: add one more test
2019-12-23 17:12:50 +03:00
Andrey Meshkov
9b93d43ac6
-(home): fix deadlock in clients
2019-12-23 16:27:24 +03:00
Andrey Meshkov
ec7a62e123
-(home): fix duplicate check when adding a new ClientHost
2019-12-23 16:20:12 +03:00
Simon Zolin
0a66913b4d
Merge: * use upstream servers directly for the internal DNS resolver
...
Close #1212
* Server.Start(config *ServerConfig) -> Start()
+ Server.Prepare(config *ServerConfig)
+ Server.Resolve(host string)
+ Server.Exchange()
* rDNS: use internal DNS resolver
- clients: fix race in WriteDiskConfig()
- fix race: move 'clients' object from 'configuration' to 'HomeContext'
Go race detector didn't like our 'clients' object in 'configuration'.
+ add AGH startup test
. Create a configuration file
. Start AGH instance
. Check Web server
. Check DNS server
. Wait until the filters are downloaded
. Stop and cleanup
* move module objects from config.* to Context.*
* don't call log.SetLevel() if not necessary
This helps to avoid Go race detector's warning
* ci.sh: 'make' and then run tests
Squashed commit of the following:
commit 86500c7f749307f37af4cc8c2a1066f679d0cfad
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 18:08:53 2019 +0300
minor
commit 6e6abb9dca3cd250c458bec23aa30d2250a9eb40
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 18:08:31 2019 +0300
* ci.sh: 'make' and then run tests
commit 114192eefea6800e565ba9ab238202c006516c27
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 17:50:04 2019 +0300
fix
commit d426deea7f02cdfd4c7217a38c59e51251956a0f
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 17:46:33 2019 +0300
tests
commit 7b350edf03027895b4e43dee908d0155a9b0ac9b
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 15:56:12 2019 +0300
fix test
commit 2f5f116873bbbfdd4bb7f82a596f9e1f5c2bcfd8
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 15:48:56 2019 +0300
fix tests
commit 3fbdc77f9c34726e2295185279444983652d559e
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 15:45:00 2019 +0300
linter
commit 9da0b6965a2b6863bcd552fa83a4de2866600bb8
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 15:33:23 2019 +0300
* config.dnsctx.whois -> Context.whois
commit c71ebdbdf6efd88c877b2f243c69d3bc00a997d7
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 15:31:08 2019 +0300
* don't call log.SetLevel() if not necessary
This helps to avoid Go race detector's warning
commit 0f250220133cefdcb0843a50000cb932802b8324
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 15:28:19 2019 +0300
* rdns: refactor
commit c460d8c9414940dac852e390b6c1b4d4fb38dff9
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 14:08:08 2019 +0300
Revert: * stats: serialize access to 'limit'
Use 'conf *Config' and update it atomically, as in querylog module.
(Note: Race detector still doesn't like it)
commit 488bcb884971276de0d5629384b29e22c59ee7e6
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 13:50:23 2019 +0300
* config.dnsFilter -> Context.dnsFilter
commit 86c0a6827a450414b50acec7ebfc5220d13b81e4
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 13:45:05 2019 +0300
* config.dnsServer -> Context.dnsServer
commit ee35ef095ccaabc89e3de0ef52c9b5ed56b36873
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 13:42:10 2019 +0300
* config.dhcpServer -> Context.dhcpServer
commit 1537001cd211099d5fad01696c0b806ae5d257b1
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 13:39:45 2019 +0300
* config.queryLog -> Context.queryLog
commit e5955fe4ff1ef6f41763461b37b502ea25a3d04c
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 13:03:18 2019 +0300
* config.httpsServer -> Context.httpsServer
commit 6153c10a9ac173e159d1f05e0db1512579b9203c
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Dec 9 20:12:24 2019 +0300
* config.httpServer -> Context.httpServer
commit abd021fb94039015cd45c97614e8b78d4694f956
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Dec 9 20:08:05 2019 +0300
* stats: serialize access to 'limit'
commit 38c2decfd87c712100edcabe62a6d4518719cb53
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Dec 9 19:57:04 2019 +0300
* config.stats -> Context.stats
commit 6caf8965ad44db9dce9a7a5103aa8fa305ad9a06
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Dec 9 19:45:23 2019 +0300
fix Restart()
... and 6 more commits
2019-12-11 12:38:58 +03:00
Simon Zolin
7313c3bc53
+ use per-client DNS servers
2019-12-05 13:16:41 +03:00
Simon Zolin
a692616981
- clients: fix tests
2019-11-29 17:35:26 +03:00
Simon Zolin
e9cb8666ce
* clients: refactor
2019-11-29 17:11:07 +03:00
Simon Zolin
149fcc0f2d
* dhcp,clients: DHCP server module is passed to Clients module during initialization.
2019-11-29 17:11:07 +03:00
Simon Zolin
71ce0c6da9
* clients: multiple IP, CIDR, MAC addresses
...
+ /clients/find
* clients: move code for config read/write
* clients: move HTTP handlers
2019-11-29 16:52:32 +03:00
Simon Zolin
5cc8513322
* use debug log level for unimportant messages
2019-10-16 12:03:51 +03:00
Simon Zolin
c299753b67
- whois: couldn't set info on existing auto-clients
2019-10-11 16:58:10 +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
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
Andrey Meshkov
4e76013334
*(home): fix golint issues
2019-09-19 12:47:55 +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
452a668a5b
* control: refactor: all handlers are registered via httpRegister()
...
* move some code to home/control_filtering.go
2019-08-21 14:52:57 +03:00
Simon Zolin
04a477c14a
+ clients: add BlockedServices field
2019-08-05 14:12:22 +03:00
Simon Zolin
001b4b981f
* move "dhcpServer" 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
db7efc24d3
+ clients: parse 'arp -a' output; periodically update info
...
* prioritize a client source: etc/hosts > ARP > rDNS
2019-06-27 11:39:53 +03:00
Simon Zolin
dc682763ff
* move ./*.go files into ./home/ directory
2019-06-10 11:51:53 +03:00