#!/bin/sh /usr/local/bin/containerboot & while ! tailscale status > /dev/null 2>&1; do sleep 1 echo '[+] Waiting for tailscale status to be up...' done echo '[+] Tailscale is up. Enabling NAT...' iptables -t nat -A POSTROUTING -o tailscale0 -j MASQUERADE echo '[+] Done.' tail -f /dev/null