Hello,
I have been able to use many useful contents here and have applied one or the other.
I have a problem that annoys me.
I use two internet connections. Unfortunately, good internet is not available in my area, not even via mobile network.
The main line is via directional radio (60 GHz). The second line via copper is only used as a backup when the directional radio fails in bad weather.
In the event of a main line failure, which can sometimes last longer, I always have to manually disable the PPP PPTP client so that the traffic goes over the second backup line.
Can I solve this with a script that queries the directional radio counterpart via ping? If it does not respond after 2 minutes, the PPTP client should be disabled. If the counterpart responds again after 10 minutes, the PPTP client should be enabled.
Unfortunately, I am not very good at scripting.