Add instructions for setting up a Systemd service unit for VPN connection
LibreELEC setup
This repository contains setup or configuration files for LibreELEC after installation.
WireGuard VPN setup
- copy
~/.config/wireguard/wireguard.config.sampleto a new file, and adjust the parameters (see LibreELEC wiki for reference) - do NOT set the DNS server in this conf file, but in
variables.conf - it is advisable to create a Systemd unit to manage the VPN connection, especially if it should start at boot
- use the wiki, and mind that the connection
name to use with
connmanctlis the ConnMan id (vpn_<endpoint_address>) and not the name given to the connection
- use the wiki, and mind that the connection
name to use with
Files
variables.conf.templatecontains examples variables definitions, and should be copied locally tovariables.conf(with any required modifications).systemd-templates/contains Systemd units templates for detecting VPN connection, and apply routes and DNS modifications.set-dns.shsets the VPN DNS toresolv.conf, andunset-dns.shrestores the previousresolv.conf.
Installation
install.shscript copies Systemd templates to their destination, and enables trigger (Systemd path).
TODO
- RAS
Description
Languages
Shell
100%