Eugene Bujak
81bb4aea78
/tls/configure and /tls/status -- now there's an explicit 'enabled' bool.
2019-02-15 16:28:28 +03:00
Eugene Bujak
e8280c60d8
/tls/status — Add not_after
field with a valid certificate expiration date.
2019-02-15 16:28:28 +03:00
Eugene Bujak
571be68733
Validate certificates and update certificate statuses on launch as well.
2019-02-15 16:28:28 +03:00
Eugene Bujak
28df187012
/tls/configure -- restart HTTPS server if settings changed
...
Fixes not using new HTTPS certificate after submitting it.
2019-02-15 16:28:28 +03:00
Eugene Bujak
57a33654f7
Certificate that doesn't go through the chain is not fatal, just send the warning over json.
2019-02-15 16:28:28 +03:00
Eugene Bujak
229ef78085
Activate DNS-over-TLS server when certificates, keys and ports are configured.
2019-02-15 16:28:28 +03:00
Eugene Bujak
0d3aa00956
Default values for DoH and DoT ports
2019-02-15 16:28:28 +03:00
Eugene Bujak
3d3e0784ea
tls/configure -- Backend implementation of parsing user certs
2019-02-15 16:28:27 +03:00
Eugene Bujak
c19416bf8e
Move up tls block in config, don't send json with zero values
2019-02-15 16:28:27 +03:00
Eugene Bujak
8725c1df7a
Add stub OpenAPI methods
2019-02-15 16:28:26 +03:00
Andrey Meshkov
9ff420bb52
Do not store last_updated in the config file anymore
2019-02-10 21:44:16 +03:00
Andrey Meshkov
9a03190a62
Fix #579
...
1. Added --workdir command-line argument that lets configure the working dir.
2. Made "dnsforward" use this workdir parameter when saving/reading querylog.
3. Reworked "dnsforward" -- moved http handlers out of there to control.go
2019-02-10 20:47:43 +03:00
Eugene Bujak
68c8a4d484
Demote some log.printf into log.tracef
2019-02-07 18:24:43 +03:00
Eugene Bujak
672ff33879
Default listening to 0.0.0.0 for first-time setup
2019-02-06 17:28:09 +03:00
Eugene Bujak
302c3a767a
Initial implementation of welcome/firstrun/installer page in go backend
2019-02-06 17:21:23 +03:00
Andrey Meshkov
0fbfa057b1
Get rid of hardcoded binary name
2019-02-05 20:35:48 +03:00
Andrey Meshkov
277415124e
AdGuard Home as a system service
...
1. Reworked working with command-line arguments
2. Added service control actions: install/uninstall/start/stop/status
3. Added log settings to the configuration file
4. Updated the README file
2019-02-04 13:54:53 +03:00
Andrey Meshkov
ec6b1f7c42
Added golangci-lint configuration and prepared for the integrattion
2019-01-25 20:13:57 +03:00
Andrey Meshkov
d078851246
gometalinter
2019-01-25 20:13:57 +03:00
rpassmore
f1c3fecfb2
Allow configuring IP address the DNS server binds to ( #552 )
...
Closes #550 .
2019-01-19 04:41:43 +03:00
Eugene Bujak
368e2d1ebd
move log wrapper library outside into hmage/golibs/log
2018-12-29 19:12:45 +03:00
Eugene Bujak
d8802a9709
Use new log wrapper and add more functions to it.
2018-12-29 17:37:18 +03:00
Eugene Bujak
8b4a1ca713
First implementation of DHCP server, compiles but not tested yet.
2018-12-28 18:28:46 +03:00
Eugene Bujak
73f71364b3
Add interface name to dhcp config
2018-12-28 18:26:57 +03:00
Eugene Bujak
39bc55e430
Fixup of previous commit.
2018-12-28 18:26:56 +03:00
Eugene Bujak
59adad4d53
DHCP -- Use uint64 for lease duration
2018-12-28 18:26:56 +03:00
Ildar Kamalov
d46b65f982
Add enable/disable for DHCP server
2018-12-28 18:26:56 +03:00
Eugene Bujak
96fbf7f134
Fix yaml marshalling panic.
2018-12-28 18:26:56 +03:00
Eugene Bujak
9294c9ecb2
Add DHCP API stubs for JS development.
2018-12-28 18:26:56 +03:00
Eugene Bujak
8fb6f92753
Use filter deduplication function.
2018-12-06 17:19:04 +03:00
Eugene Bujak
250cc0ec0f
config -- Avoid deleting existing dns section if someone removes schema_version from yaml file.
2018-12-06 00:29:38 +03:00
Eugene Bujak
0f5dd661f5
Add support for bootstrapping upstream DNS servers by hostname.
2018-12-06 00:22:20 +03:00
Eugene Bujak
609523a59c
Don't omit empty user rules in configfile -- otherwise users might not be able to find that it's customizable in configfile.
2018-12-05 21:09:37 +03:00
Eugene Bujak
e31905864b
Get rid of mentions of CoreDNS in code except for upgrading and in readme. Add config upgrade.
2018-12-05 21:08:43 +03:00
Eugene Bujak
478ce03386
dnsforward -- implement ratelimit and refuseany
2018-12-05 18:49:19 +03:00
Eugene Bujak
057db71f3b
Get rid of duplicate variable definitions
2018-12-05 16:57:21 +03:00
Eugene Bujak
87c54ebd4c
Move Filter definition from dnsforward to dnsfilter, it belongs there.
2018-12-05 16:57:21 +03:00
Eugene Bujak
31f77af534
Move user filter saving into writeAllConfigs()
2018-12-05 16:56:11 +03:00
Eugene Bujak
0d1478b635
Remove unused struct field
2018-12-05 16:56:11 +03:00
Eugene Bujak
d27fd0488d
Move filter-related variables, types and methods to filter.go
2018-12-05 16:56:11 +03:00
Eugene Bujak
8316d39b42
Move filtering setting fields from main app to dnsforward.
2018-12-05 16:56:11 +03:00
Eugene Bujak
4eb122e973
Avoid duplication of fields in filter struct.
2018-12-05 16:56:11 +03:00
Eugene Bujak
feabc21864
Unplug coreDNS and plug dnsforward library.
2018-12-05 16:54:56 +03:00
Eugene Bujak
ea1353422f
User rules -- hold them as a slice of strings, which is how dns forwarding server will expect them.
2018-12-05 16:54:56 +03:00
Eugene Bujak
39eccc62b1
Fix that filter ID is uppercase while js expects it to be lowercase.
2018-12-05 16:50:06 +03:00
Eugene Bujak
45ae984f3b
Fix incorrect cherry-pick in previous commit.
2018-11-29 14:58:25 +03:00
Eugene Bujak
2012e707d0
Fix race condition of trying to write YAML config simultaneously and failing.
2018-11-29 13:31:50 +03:00
Eugene Bujak
701fd10c1c
Protect against users deleting the filter ID's in the config file.
...
Incidentally, it also simplifies upgrade schema from 0 to 1.
2018-11-28 13:38:19 +03:00
Eugene Bujak
6cb991fe7f
Clean up some code -- reorganize some structs and unexport some consts.
2018-11-28 13:38:19 +03:00
Eugene Bujak
ec7efcc9d6
Move config upgrade to separate upgrade.go
2018-11-28 13:38:19 +03:00