Hi,
Should be ok to ignore that message, but if we can get using pia’s dns servers. It won’t be required.
If PIA have disabled their public dns servers, then it will be hard to make it work as before.
Talking about DNS, apologies I took us down the wrong path with dhcp-option DNS 10.0.0.243
. But I’ve done some testing this and got things working again. Please remove and restore:
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
And set the the dns servers in MyOSMC to cloudflare and then restart openvpn. Please now check the name servers in use by issuing: cat /etc/resolv.conf
output should be something like:
nameserver 10.0.0.243
As long as its a 10 address, that its working and there can’t be any leaks as its a private address. If not please provide the output of: sudo systemctl status openvpn
Also I think I’ve fixed the watchdog. Any chance can you please try and test this:
Create the following file: /usr/local/sbin/watchdog.sh
:
#!/bin/bash
GW=$(ip route show 0.0.0.0/1 dev tun0 | cut -d\ -f3)
ping -c1 $GW > /dev/null
if [ $? -eq 0 ]
then
echo ok
exit 0
else
systemctl restart openvpn
fi
Edit: issue: chmod u+x /usr/local/sbin/watchdog.sh
Update /etc/systemd/system/openvpn-watchdog.timer
to:
[Unit]
Description=OpenVPN Watchdog timer
[Timer]
OnCalendar=*:0/15
[Install]
WantedBy=timers.target
Update: /etc/systemd/system/openvpn-watchdog.service:
[Unit]
Description=OpenVPN Watchdog service
[Service]
ExecStart=/usr/local/sbin/watchdog.sh
[Install]
WantedBy=multi-user.target
Please issue the following commands:
sudo systemctl daemon-reload
sudo systemctl restart openvpn-watchdog.timer
Thanks Tom.