2025-03-23 17:49:03 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -eou pipefail
|
|
|
|
|
|
|
|
opkg update
|
|
|
|
|
|
|
|
# QEMU
|
|
|
|
opkg install qemu-ga
|
|
|
|
|
|
|
|
# TAILSCALE
|
2025-03-23 17:54:54 +00:00
|
|
|
# Ref: https://github.com/adyanth/openwrt-tailscale-enabler/tree/v1.60.0-e428948-autoupdate
|
2025-03-23 17:49:03 +00:00
|
|
|
opkg install ca-bundle kmod-tun iptables-nft kmod-ipt-conntrack kmod-ipt-conntrack-extra kmod-ipt-conntrack-label kmod-ipt-nat kmod-nft-nat
|
|
|
|
|
2025-03-23 17:55:22 +00:00
|
|
|
wget https://github.com/adyanth/openwrt-tailscale-enabler/releases/download/v1.60.0-e428948-autoupdate/openwrt-tailscale-enabler-v1.60.0-e428948-autoupdate.tgz -O /tmp/tailscale-enabler.tgz
|
2025-03-23 17:54:54 +00:00
|
|
|
|
|
|
|
tar x -zvC / -f /tmp/tailscale-enabler.tgz
|
|
|
|
|
2025-03-23 17:49:03 +00:00
|
|
|
/etc/init.d/tailscale start
|
|
|
|
/etc/init.d/tailscale enable
|
|
|
|
|
|
|
|
tailscale up --advertise-routes=10.0.0.0/16,fd74:6a6f:0::/48 --accept-dns=false --ssh
|