Skip to content

Instantly share code, notes, and snippets.

View mazunki's full-sized avatar
📚
Doing university homework

Mazunki Hoksaas mazunki

📚
Doing university homework
View GitHub Profile
@Seas0
Seas0 / multiple-tailnets.md
Last active December 3, 2025 06:12
Multiple Tailnets Guide

Running multiple tailscaled instances with netfilter integration disabled


This guide explains how to spawn multiple instances of tailscaled on a single system using a systemd.service(5) template and, optionally, customized configurations. By setting "netfilterMode": "off" in all configurations (or by manually configuring them using tailscale up --netfilter-mode off), you can connect to multiple Tailnets simultaneously without resorting to SOCKS proxy–based userspace networking, while preserving functionalities like Magic DNS integration with systemd-resolved (i.e. you can simutaneously have direct access to other machines in BOTH tailnets via their hostnames).

DISCLAIMER: This method completely disables Tailscale’s automatic (iptables/nftables) netfilter firewall rule creation and management. As firewall rules from an earlier tailscaled instance would be wiped out by a new one, potentially locking you out.

@Eight1911
Eight1911 / radix-2-fft.py
Last active March 28, 2022 20:54
Naive implementation of non-recursive radix-2 fast Fourier transform in Python.
import math
# iterative cooley tukey fft for dyadics
def fft(v):
n, h = len(v), len(v) >> 1
old, new = v[:], [0] * n
sublen, stride = 1, n
while sublen < n:
stride >>= 1