more options, manual work ?
Some checks failed
Build and Push mikrotik-tailscale Container / merge-images-via-manifest (push) Blocked by required conditions
Build and Push mikrotik-tailscale Container / build-and-push-arch (amd64) (push) Has been cancelled
Build and Push mikrotik-tailscale Container / build-and-push-arch (arm64) (push) Has been cancelled
Some checks failed
Build and Push mikrotik-tailscale Container / merge-images-via-manifest (push) Blocked by required conditions
Build and Push mikrotik-tailscale Container / build-and-push-arch (amd64) (push) Has been cancelled
Build and Push mikrotik-tailscale Container / build-and-push-arch (arm64) (push) Has been cancelled
This commit is contained in:
parent
fce015279f
commit
de238e1dcd
1 changed files with 12 additions and 1 deletions
|
|
@ -25,11 +25,22 @@ esac
|
||||||
# Initialize and start Tailscale
|
# Initialize and start Tailscale
|
||||||
tailscaled > /dev/null 2>&1 &
|
tailscaled > /dev/null 2>&1 &
|
||||||
sleep 5
|
sleep 5
|
||||||
|
if [ -n "${up}" ]; then
|
||||||
tailscale up ${up}
|
tailscale up ${up}
|
||||||
|
fi
|
||||||
if [ -n "${set}" ]; then
|
if [ -n "${set}" ]; then
|
||||||
tailscale set ${set}
|
tailscale set ${set}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "${up}" ] && [ -z "${set}" ] && [ -z "${nat}" ]; then
|
||||||
|
echo "No 'up' or 'set' options provided"
|
||||||
|
echo "Use /container/shell CONTAINER to access the shell of this container"
|
||||||
|
echo "I hope you use a mountpoint for /var/lib/tailscale for persistence"
|
||||||
|
echo "Uncomment the line below to run iptables -t nat -A POSTROUTING -o tailscale0 -j MASQUERADE if you need NAT"
|
||||||
|
# iptables -t nat -A POSTROUTING -o tailscale0 -j MASQUERADE
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
tailscale netcheck
|
tailscale netcheck
|
||||||
sleep 600
|
sleep 600
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue