From 0e636ee5f361a9eb0f6d68618fdd191cd6583a63 Mon Sep 17 00:00:00 2001 From: Qubasa Date: Thu, 9 Apr 2026 16:47:46 +0200 Subject: [PATCH] remove interface name code --- Chapters/Results.tex | 35 ++++++++--------------------------- 1 file changed, 8 insertions(+), 27 deletions(-) diff --git a/Chapters/Results.tex b/Chapters/Results.tex index bfa248e..5901312 100644 --- a/Chapters/Results.tex +++ b/Chapters/Results.tex @@ -2054,39 +2054,20 @@ running inside \texttt{tailscaled} itself (Tailscale SSH, Taildrop, the metric endpoint). External processes such as iPerf3 cannot reach the Tailscale network in that mode. -The test rig does not use that mode. -Listing~\ref{lst:nixos_tailscale} shows the relevant line of -the upstream NixOS \texttt{services.tailscale} module, which -assembles the daemon command line as -\texttt{tailscaled --tun -\$\{cfg.interfaceName\}~\dots}, with -no \texttt{userspace-networking} fall-back unless -the operator -explicitly sets \texttt{interfaceName = -"userspace-networking"}. -Listing~\ref{lst:rig_interface_name} shows what -the benchmark -suite's Headscale module sets the interface name to: -\texttt{ts-\$\{instanceName\}}, truncated to fifteen -characters. The two together resolve to -\texttt{tailscaled --tun ts-headscale} on every -test machine, -a real kernel TUN. gVisor netstack is unreachable from any -external benchmark traffic in this rig. +The test rig does not use that mode. As shown in +Listing~\ref{lst:rig_interface_name}, the benchmark +suite's Headscale module sets the interface name to +\texttt{ts-\$\{instanceName\}}, resolving to +\texttt{tailscaled --tun ts-headscale}: a real kernel +TUN. gVisor netstack is therefore unreachable from +external benchmark traffic. -\lstinputlisting[language=Nix,caption={The NixOS - \texttt{services.tailscale} module passes \texttt{--tun - \$\{interfaceName\}} as the daemon's TUN argument. There is - no \texttt{--tun=userspace-networking} fall-back unless the - user explicitly sets \texttt{interfaceName = "userspace-networking"}. -\textit{nixpkgs/nixos/modules/services/networking/tailscale.nix:158}},label={lst:nixos_tailscale}]{Listings/nixos_tailscale.nix} \lstinputlisting[language=Nix,caption={The benchmark suite's Headscale module sets \texttt{interfaceName} to a real kernel TUN name (\texttt{ts-}, truncated to 15 characters). - Combined with Listing~\ref{lst:nixos_tailscale}, this means - \texttt{tailscaled} runs as \texttt{tailscaled --tun ts-headscale} + This means \texttt{tailscaled} runs as \texttt{tailscaled --tun ts-headscale} on every test machine. \textit{vpn-benchmark-suite/clanModules/headscale/shared.nix:19,273--277}},label={lst:rig_interface_name}]{Listings/rig_interface_name.nix}