Skip to content

Instantly share code, notes, and snippets.

@jcgillespie
jcgillespie / running-tailscale-on-ubiquiti-usg.md
Last active May 12, 2024 15:19
Running Tailscale on Ubiquiti USG

You will need ssh access to your USG. I suggest running sudo su so you're the root user throughout

Installation

  1. Download tailscale and put the files in /config/. Find the latest stable or unstable version for your USG's processor.
curl https://pkgs.tailscale.com/stable/tailscale_1.36.1_mips64.tgz | tar xvz -C /tmp
mv /tmp/tailscale_1.36.1_mips64 /config/tailscale
use strict;
use warnings;
use PIR;
use POSIX qw( O_RDONLY );
# The following values should be extracted from a .ph file, but my personal
# experience has shown me that gives the wrong results and yeilds lots of INVALID IOCTL garbage
# This can't be gotten from a .ph file, for some reason I can't work out yet
use constant _ULONG_MAX => 2147483647;
#!/usr/bin/bash
# Copyright (c) Joakim Reinert. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
API_URL='https://api.domrobot.com/xmlrpc/'
TMPDIR='/tmp/inwx-acme'