+ Config: ra_slaac_only, ra_allow_slaac

Squashed commit of the following:

commit b341c569116c5410f0522ad788b7da9da93bdfb8
Merge: fa352cf 77975d4
Author: Simon Zolin <s.zolin@adguard.com>
Date:   Thu Sep 24 18:35:08 2020 +0300

    Merge remote-tracking branch 'origin/master' into dhcp-options

commit fa352cfa02edb099d1409168797424ef728be3fb
Author: Simon Zolin <s.zolin@adguard.com>
Date:   Thu Sep 24 12:23:29 2020 +0300

    DHCPv6 server won't be started in this case

commit 71daa2e89330c8b3bd9f10c207edf9e3792b0ef5
Author: Simon Zolin <s.zolin@adguard.com>
Date:   Wed Sep 23 12:07:26 2020 +0300

    example

commit 7e95f1008a114920022399497aa6ae61f19e333f
Author: Simon Zolin <s.zolin@adguard.com>
Date:   Tue Sep 22 19:32:42 2020 +0300

    + Conf: ra_slaac_only, ra_allow_slaac
Simon Zolin 2020-09-24 18:35:27 +03:00
parent 77975d4b9d
commit 9f3777260f
1 changed files with 33 additions and 0 deletions

@ -11,6 +11,7 @@ Most of these settings can be changed via the web-based admin interface. However
* [Configuration file](#configuration-file)
* [Reset Web Password](#password-reset)
* [Profiling with pprof](#pprof)
* [Additional DHCP options](#dhcp-options)
<a id="command-line"></a>
## Command-line arguments
@ -230,6 +231,8 @@ Settings are stored in [YAML format](https://en.wikipedia.org/wiki/YAML), possib
* `dhcpv6` - DHCPv6 settings
* `range_start` - the first IP address to be assigned to a client
* `lease_duration` - lease TTL in seconds
* `ra_slaac_only` - send RA packets forcing the clients to use SLAAC
* `ra_allow_slaac` - send RA packets making the clients to choose between SLAAC and DHCPv6
* `tls` - HTTPS/DOH/DOT settings.
* `enabled` - encryption (DOT/DOH/HTTPS) status.
* `server_name` - the hostname of your HTTPS/TLS server.
@ -318,3 +321,33 @@ or with `go tool pprof`:
go tool pprof -top http://localhost:6060/debug/pprof/heap
For a list of supported profiles go to `http://localhost:6060/debug/pprof/`.
<a id="dhcp-options"></a>
## Additional DHCP options
There are several configuration parameters for DHCP that can't be set via AGH administrator dashboard.
`dhcp.dhcpv4.options` - list of DHCPv4 custom options
Option with arbitrary hexadecimal data:
DEC_CODE hex HEX_DATA
where DEC_CODE is a decimal DHCPv4 option code in range [1..255]
Option with IP data (only 1 IP is supported):
DEC_CODE ip IP_ADDR
Example:
...
options:
- 123 hex abcdef
- 123 ip 1.2.3.4
`dhcp.dhcpv6.ra_slaac_only` - if `true`, send RA packets forcing the clients to use SLAAC.
DHCPv6 server won't be started in this case.
`dhcp.dhcpv6.ra_allow_slaac` - if `true`, send RA packets making the clients to choose between SLAAC and DHCPv6