Skip to content

Commit

Permalink
Revert "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 22, 2024
1 parent cea1e9a commit 65db3a7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion tailscale/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ ARG BUILD_ARCH=amd64
ARG TAILSCALE_VERSION="v1.66.4"
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
15 changes: 0 additions & 15 deletions tailscale/rootfs/etc/s6-overlay/s6-rc.d/post-tailscaled/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# Home Assistant Community Add-on: Tailscale
# Runs after the machine has been logged in into the Tailscale network
# ==============================================================================
declare interface
declare -a options
declare -a routes=()
declare route
Expand All @@ -13,20 +12,6 @@ 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
for interface in $( \
{ ip -4 route show 0/0; ip -6 route show ::/0; } \
| { grep -E '^default\svia\s\S+\sdev\s\S+' || true ;} \
| cut -f5 -d' ' \
| sort -u)
do
bashio::log.info "Allow UDP GRO for forwarding on ${interface}"
ethtool -K "${interface}" rx-udp-gro-forwarding on rx-gro-list off
done

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

Expand Down

0 comments on commit 65db3a7

Please sign in to comment.