ifup-systemd-resolved 0.0.2
Loading...
Searching...
No Matches
ifup-systemd-resolved

GitHub tag (with filter) License GitHub commits since latest release (by SemVer including pre-releases) CodeQL QA Tests Coverage Status GitHub Pages pre-commit Stargazers

@Tatsh Mastodon Follow

This tool is primarily for use with openfortivpn, patched (alternative) to allow for hook scripts. It uses D-Bus to set up DNS settings for the PPP interface. It is based on the script in adrienverge/openfortivpn#1092.

Usage

In your configuration file for your patched copy of openfortivpn:

ifup-script = /path/to/ifup-systemd-resolved

General usage

Environment variables must be set for this application to do anything.

Name Description
DNS_SERVERS DNS server IPs and names. Both IPv4 and IPv6 are supported.
DNS_SUFFIX Search domains.
DNSSEC If non-empty, it should be default, yes, no, or allow-downgrade.
PPP_IFACE Name of the device (see ifconfig or similar). Usually this something similar to ppp0.

These are usually set by openfortivpn calling the script.

How to build

You must have Qt development libraries and Extra CMake Modules installed.

git clone ...
mkdir the-repo-dir/build
cd the-repo-dir/build
cmake ..
make

How to build with vcpkg

  1. Have vcpkg configured. See Set up vcpkg.
  2. Clone the project.
  3. In the project directory, run cmake --preset=default && cmake --build build.