Following a request by @JoshDobbin, support has been added for passing
ADAPTER_DOMAIN_SUFFIX
via dhcp-options
to work with the Microsoft standard.
Also included some additional notes in README.md about using down
in dropped
privilege situations for clarification.
- Added support for ADAPTER_DOMAIN_SUFFIX (@jonathanio)
- Added notes in README.md about
down
with dropped privileges (@jonathanio)
Improvements made to the logger
command to prevent issues with privilege
dropping under the assistance of @dermarens, @terminalmage, @guruxu, and @benvh.
Updated some documentation for consistency and clarity. Thanks to @flungo and
@dawansv here.
- Updated to include a full list in PATH, including sbin paths. (@jonathanio)
- Updated documentation regarding DNS leakage. (@jonathanio)
- Updated all script locations to be consistent. (@jonathanio)
- Add some installation instructions to README.md. (@flungo)
- Update command-line parameters needed within Makefile/README.md. (@noraj1337)
- Fix script name in command-line path within README.md. (@phR0ze)
- Updated to include a full list in PATH, including sbin paths. (@jonathanio)
@piotr-dobrogost, @mgu, and @aRkadeFR helped improve the documentation.
- It was noted that the PATH setting used in the documentation doesn't work on all systems (sorry, my bad), so it has now been updated so it should now work. (@aRkadeFR)
@Nauxuron provided a patch to improve DESTDIR and PREFIX handling in Makefile.
- Improve handling of DESTDIR and PREFIX in the Makefile to follow the GNU guidelines. (@Nauxuron)
This one is a thanks to @mikken and helps support OpenVPN 2.4 as well as fix
an issue with DNSSEC
handling on the busctl
call.
- The incorrect usage of
down-pre
which as of OpenVPN 2.4 is now a fatal error when you pass it an argument (i.e. the script we were originally thought it should be calling). (@mikken) - Issues with
busctl
and bash properly handling the "empty string" case to use the defaultDNSSEC
option. (@jonathanio) - Noise when
busctl
is called on the down case when privileges have been dropped in the client. (@mikken) - Added documentation for
allow-downgrade
support inDNSSEC
option (which was supported, but not documented). (@jonathanio)
Thanks for @arjenschol for spotting this one: An error in the AF_INET value provided to SetLinkDNS prevented IPv6 DNS servers from being added.
- Fix IPv6 DNS by specifying AF_INET6 value (10) insteadof array size (2) (@arjenschol)
Add support for DNSSEC processing, improve logic around DOMAIN
and
DOMAIN-SEARCH
handling, add support for DOMAIN-ROUTE
, and improve
documentation.
- Due to (probably) an incorrect assumption on my part (@jonathanio) in the
purpose of
DOMAIN-SEARCH
versesDOMAIN
, domains added viaDOMAIN
were marked as searchable, and so would be appended to bare domain names, while those added viaDOMAIN-SEARCH
would not. This was a divergance from how older OpenVPN handler scripts (such asupdate-resolv-conf
andupdate-systemd-network
) processed them (i.e. in all cases they were just made searchable). Note that both scripts didn't really have the concept ofdomain
in the same way as/etc/resolv.conf
understood it. This script now (hopefully) properly handlesDOMAIN
andDOMAIN-SEARCH
(single of the former, and is primary, multiple of the latter and secondary).
- Add support for
DNSSEC
option which allows you to enable or disable (or leave to system default) theDNSSEC
setting for any DNS queries made to the DNS servers provided for this link. (@jonathanio) - Add support for
DOMAIN-ROUTE
which, throughsystemd-resolved
, allows you to set domain names which should be routed over this link to the DNS servers provided. (@jonathanio)
- Correct the logic around the handling of
DOMAIN
andDOMAIN-SEARCH
to be more compatible with previous versions of these handlers. (@jonathanio)
Thanks to the help from @pid1 for this release. The documentation mistakenly noted to use pre-down for the script now (compared to down originally, which failed as the tun or tap device would have been removed before the script ran). However, this should have in fact been down-pre.
- Fix
pre-down
todown-pre
in the documentation else you'll break your OpenVPN configuration. (@pid1)
Thanks to the work by @BaxterStockman, the script has been refactored, hopefully making it easier to read and follow, while additional tests around IPv6 processing have been added.
- Refactor the codebase to make it easier to read and expand. (@BaxterStockman)
- Improve run-tests so multiple tests can be run within a file, and can expect failures within a test. (@BaxterStockman)
- Add tests for invalid IPv6 addresses. (@BaxterStockman)
First release of update-systemd-resolved
. Should fully support the three
standard DHCP options in OpenVPN (DNS
, DOMAIN
, and DOMAIN-SEARCH
) with
integration tests around the code to manage and monitor regressions. Also
supports multiple (and combined) IPv4 and IPv6 DNS addresses.