TailScale server on Subnet Router via two WAN Link Failover failed!

Dear Tailscale Developer,

I have came up with a bash script with runs every 15 minutes on crontab scheduler job to ensure that if TailScale loses connectivity to Internet it will reestablish back again!

You guys should code it into the binary of Tailscale to checks for WAN link every minutes to ensure this problem of not reporting to TailScale Server does not dies endlessly.

Here is my code logic to temporary resolves the issue on two WAN link acting as backup failover.

The problem is once both WAN link is down Tailscale just is not smart enough to establish it’s link back to the central TailScale Server.

Why can’t a check WAN IP be initiated every minute to avoild this enless dead connection problem?

Thanks.

Rodney Yeo
http://fb.com/rodyeo

— BOF tailscaleinit.sh —

Filename: tailscaleinit.sh

Description: Script to force update of Tailscale latest subnet routes via crontab scheduler

Command: crontab -e

Command: */15 * * * * /home/god/tailscaleinit.sh

clear
echo …
echo “Tailscale service initialize …”
echo …

sudo tailscale up --reset --advertise-routes=192.168.0.0/24
sleep 2
sudo systemctl restart tailscaled
sleep 2
sudo tailscale ip -4
sleep 2
ps -eaf | grep tailscaled | grep -v grep

echo …
echo “Tailscale service restart completed!”
echo …

— EOF tailscaleinit.sh —

— BOF tailscalechk.sh —

#!/bin/bash

Filename: tailscalechk.sh

Description: Script to check for Tailscale service active via crontab scheduler

Command: crontab -e

Command: * * * * * /home/god/tailscalechk.sh

clear
echo …
echo “Tailscale service active check …”
echo …

ps -eaf | grep tailscaled | grep -v grep

if not found - equals to 1, start it

if [ $? -eq 1 ]
then
sleep 2
sudo tailscale up --reset --advertise-routes=192.168.0.0/24
sleep 2
sudo systemctl restart tailscaled
sleep 2
sudo tailscale ip -4
sleep 2
ps -eaf | grep tailscaled | grep -v grep
echo “Service restart”
else
echo “Service running”
fi

echo …
echo “Tailscale service checks completed!”
echo …

— EOF tailscalechk.sh —

Can Tailscale Developer make a software bugs fix on this issue thanks :wink: