Tailscale Exit Node

From Irregularpedia
Revision as of 05:34, 7 September 2024 by Maintenance script (talk | contribs) (Initial)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Set up Exit Node Setup

https://tailscale.com/kb/1103/exit-nodes?tab=linux https://tailscale.com/kb/1320/performance-best-practices#ethtool-configuration

<syntaxhighlight lang="shell">sudo tailscale up --advertise-exit-node</syntaxhighlight>

Auto Starting

<syntaxhighlight lang="shell">systemctl is-enabled networkd-dispatcher</syntaxhighlight> <syntaxhighlight lang="shell">sudo nano /etc/systemd/system/ethtool-tailscale-settings.service</syntaxhighlight>

[Unit]
Description=Apply ethtool settings for Tailscale optimizations
After=network.target

[Service]
Type=oneshot
ExecStart=/bin/sh -c 'NETDEV=$(ip route show 0/0 | cut -f5 -d" ") && ethtool -K $NETDEV rx-udp-gro-forwarding on rx-gro-list off'

[Install]
WantedBy=multi-user.target