Install Tailscale on Wago cc100

Install Tailscale on Wago cc100
https://tailscale.com

Login via SSH

 ssh root@ipaddress
 pass: wago

Download the latest Tailscale client
https://pkgs.tailscale.com/stable/#static

arm: tailscale_1.62.1_arm.tgz
https://pkgs.tailscale.com/stable/tailscale_1.62.1_arm.tgz

mkdir tmp
cd tmp
curl https://pkgs.tailscale.com/stable/tailscale_1.62.1_arm.tgz --output tailscale_1.62.1_arm.tgz

Extract the package

tar x -zvC /root/tmp -f tailscale_1.62.1_arm.tgz

Delete the package when it’s extracted

rm tailscale_1.62.1_arm.tgz

Move the tailscale and tailscaled binaries to /usr/bin

cd tailsca~1
cp tailscale /usr/bin
cp tailscaled /usr/bin

Make a init script to start and stop the tailscale service

  cd /etc/init.d
  nano /etc/init.d/tailscale
  
  #!/bin/sh
  # Tailscale init script
  
  ### BEGIN INIT INFO
  # Provides:          tailscale
  # Required-Start:    $network $local_fs $remote_fs
  # Required-Stop:     $network $local_fs $remote_fs
  # Default-Start:     2 3 4 5
  # Default-Stop:      0 1 6
  # Short-Description: Tailscale VPN
  ### END INIT INFO
  
  case "$1" in
  start)
      echo "Starting Tailscale..."
      /usr/bin/tailscaled --state=/var/lib/tailscale/tailscaled.state
      ;;
  stop)
      echo "Stopping Tailscale..."
      /usr/bin/tailscale down
      ;;
  restart)
      $0 stop
      $0 start
      ;;
  *)
      echo "Usage: $0 {start|stop|restart}"
      exit 1
      ;;
  esac
  
  exit 0

Paste the script

chmod 775 /etc/init.d/tailscale
chmod 775 /usr/bin/tailscale
chmod 775 /usr/bin/tailscaled

Link the startup script to init

ln -s /etc/init.d/tailscale /etc/rc.d/S99_tailscale

Start tailscale service

/etc/init.d/tailscale start

See if the service is running.

ps aux |grep tailscale*

Login and connect tailscale

tailscale up

3 Likes

Nice !
There is a dockerized version but a binary is very interesting !

1 Like

We could create an IPK package

1 Like

Yes a IPK. that would be nice.

I would like a work opkg server that we could get packages from. Then It could be easier when updates is made.

1 Like

I have started to make a installscript for tailscale.

Please give feedback

2 Likes