netcheck monitors Internet availability and, if needed, switches to alternative connections in a predefined order. This program provides more control over the gateway connection than NetworkManager alone provides.
netcheck is licensed under the GNU GPLv3. All source code commits prior to the public release are also retroactively licensed under the GNU GPLv3.
This software is still in beta and may not be ready for use in a production environment.
Bug fixes are welcome!
This software is currently only supported on Ubuntu 18.04.
Currently, the only supported method for installation of this project is building and installing a Debian package. The rest of these instructions make the following assumptions:
debuild
.git
and GitHub.debhelper
and devscripts
are installed on your build server.netcheck depends on one other Parkbench package, which must be installed first:
master
branch. The master
branch might not be stable.)debuild
in the project root directory to build the package.apt install /path/to/package.deb
to install the package. The daemon will attempt to
start and fail. (This is expected.)nmcli con add
.nmcli con mod connection-name connection.autoconnect no
.Since running netcheck as a non-root user is more complex than with other Parkbench applications, you have the option of running netcheck as both a root and non-root user. In either case, you must do the following:
/etc/netcheck/netcheck.conf.example
to
/etc/netcheck/netcheck.conf
.chown root:netcheck /etc/netcheck/netcheck.conf
chmod u=rw,g=r,o= /etc/netcheck/netcheck.conf
/etc/netcheck/netcheck.conf
file to enter the connection IDs, nameservers, and
queryable domains. Other settings can also be modified.netcheck
as a supplemental group to administrative
users. Doing this will allow these users to view netcheck log files.If you are running netcheck as a root user, please do the following:
If you are running netcheck as a non-root user, please do the following:
mkdir -p /etc/dbus-1/system.d/
./etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf
with a copy of
/usr/share/netcheck/etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf
. This change
denies access to NetworkManager except for users root and netcheck.mkdir -p /etc/NetworkManager/conf.d/
./usr/share/netcheck/etc/NetworkManager/conf.d/netcheck-auth-polkit-off.conf
to
/etc/NetworkManager/conf.d/
. This disables NetworkManager's polkit authentication./usr/share/netcheck/etc/apt/apt.conf.d/99-netcheck-unattended-upgrades
to
/etc/apt/apt.conf.d/
. This forces automatic-upgrades (and apt) to keep local
modifications of configuration files.Once the configuration is complete, restart NetworkManager with
systemctl restart NetworkManager
and then restart netcheck with
systemctl restart netcheck
. If the above steps were followed correctly, the service will
start successfully.
Updates may change configuration file options. If a configuration file already exists, check that it has all of the required options from the current example file.