This commit is contained in:
olli 2024-10-12 22:59:14 +02:00
parent 4894b1936b
commit 47356e5333

View File

@ -53,7 +53,10 @@ bash -ex raspi.sh
- copy the wireguard config file on your Pi (scp/USB-Stick,..)
replace \<wireguard-config-file.conf\> with your wireguard-config file
```
# configure connection
nmcli connection import type wireguard file <wireguard-config-file.conf>
# (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
```