From 47356e5333259b2fb2d34c7e2c21f1af67501583 Mon Sep 17 00:00:00 2001 From: olli <> Date: Sat, 12 Oct 2024 22:59:14 +0200 Subject: [PATCH] vpn --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index eb193d8..d004ae1 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,10 @@ bash -ex raspi.sh - copy the wireguard config file on your Pi (scp/USB-Stick,..) replace \ with your wireguard-config file ``` +# configure connection nmcli connection import type wireguard file +# (re)connect VPN on error - check every minute +echo '* * * * * root ping -c4 192.168.44.1 >/dev/null || ( nmcli connection down pi-kodi-mobile ; nmcli connection up pi-kodi-mobile )' # redirect some services for example a jellyfin hostname echo "192.168.44.1 jellyfin.myhost.tld" >>/etc/hosts ```