I want to restart wireguard network every day at 17:30. When I run this command in cmd, everything works correctly. ifdown wg0 && sleep 10 && ifup wg0
If I set it in crontab it doesn't work crontab -e
Sometimes I need to connect to the OpenWRT router remotely. Interface wg0 is wireguard VPN. However, many times I cannot connect. If I restart the wg0 interface, the connection is restored.
That's why I set the interface to restart once a day.