Skip to content

Commit

Permalink
Linux optimizations for subnet routers and exit nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
lmagyar committed May 9, 2024
1 parent f7d8711 commit 113bbe1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions tailscale/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ARG BUILD_ARCH=amd64
ARG TAILSCALE_VERSION="v1.66.0"
RUN \
apk add --no-cache \
ethtool=6.6-r0 \
ipcalc=1.0.3-r0 \
iproute2=6.6.0-r0 \
iptables=1.8.10-r3 \
Expand Down
6 changes: 6 additions & 0 deletions tailscale/rootfs/etc/s6-overlay/s6-rc.d/post-tailscaled/run
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ declare login_server
declare tags
declare keyexpiry

# Linux optimizations for subnet routers and exit nodes
# Based on: https://tailscale.com/kb/1320/performance-best-practices#linux-optimizations-for-subnet-routers-and-exit-nodes
# Note: Changes made via ethtool are not persistent and will be lost after the machine shuts down.
# Note: Executing it before "tailscale up" to avoid warning messages
ethtool -K $(ip route show 0/0 | cut -f5 -d' ') rx-udp-gro-forwarding on rx-gro-list off

# Default options
options+=(--hostname "$(bashio::info.hostname)")

Expand Down

0 comments on commit 113bbe1

Please sign in to comment.