I don’t know, is there a way to manually test that?
Also I rember having a set on fail function in the auto start or something (it’s been a long time ago, sorry I don’t exectly remember how but I’m pretty sure you helped me with it).
That worked half of the times, but I often had to reboot to get connection again.
I did, but it doesn’t work as it should, it doesn’t infinitly try to reconnect, it kills sometimes (say a few times a week) and I have to reboot and it works fine again (testing with DNSleaktest program inside OSMC).
Lol awesome, you start with an SSH guide, then move on to a beginners guide to nano (know how that works) and then move on to the highly advanced timers guide.
That’s like step 1, 2, 100005 haha,
I have no idea what to do, I tried reading it but I don’t understand.
The third guide is just extra info on systemd timers, not essential reading. With the 2 other links provided and the post I linked about the watchdog timer, you should have everything you need to set it up. If not please let us know which point you are stuck at.
It would be easier if you only have one conf file, and just changing the remote line in the conf when you want to change server, for example mine looks like this:
I was talking about two instances of OSMC running, one with RO.conf and the other with SW.conf
I tried adding it in an empty file at the location you gave me on both devices, I did not restart my RO one yet but I added the same lines to the other device (I just changed openvpn@RO to openvpn@SW) and I restarted.
It seems like there is no internet at all now.
But I have no idea why…
osmc@osmc:~$ curl https://ipinfo.io/ip
curl: (7) Failed to connect to ipinfo.io port 443: Connection timed out
osmc@osmc:~$ sudo iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-A OUTPUT -o tun0 -m comment --comment vpn -j ACCEPT
-A OUTPUT -o eth0 -p icmp -m comment --comment icmp -j ACCEPT
-A OUTPUT -d 192.168.1.0/24 -o eth0 -m comment --comment lan -j ACCEPT
-A OUTPUT -o eth0 -p udp -m udp --dport 1198 -m comment --comment openvpn -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 22 -m comment --comment ssh -j ACCEPT
-A OUTPUT -o eth0 -p udp -m udp --dport 123 -m comment --comment ntp -j ACCEPT
-A OUTPUT -o eth0 -p udp -m udp --dport 53 -m comment --comment dns -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --dport 53 -m comment --comment dns -j ACCEPT
Edit: I think it might just be the ovpn port (should be the same as my other devices, which I think is 1197 instead of 1198 reading up, but i’m not sure) and I don’t exactly know how to delete this with the comment lines in them and add the right lines again.