[deleted] Hi, I have a openvpn client installed on orange pi. I have also maded a program that show the network interfaces status on a 20x4 display. The problem that i want solve is that after loosing conection to VPN server, the TAP interface continues UP with their ip. I Want that after the VPN client looses their connection to server, that the TAP interface go down or loose thei ip. What the better way to do this? Jonatas
[deleted] Hi, I created this script and put it on crontab to solve the problem: if ping -s 1 -c 1 -W 4 192.168.200.1 >> /dev/null; then echo "OK" >> /dev/null else `systemctl restart openvpn.service` >> /dev/null fi