Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
lmagyar committed May 22, 2024
2 parents 05b4876 + 475b811 commit 9b68f08
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 25 deletions.
4 changes: 4 additions & 0 deletions tailscale/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.19.1.1 (forked)

- Revert "Linux optimizations for subnet routers and exit nodes"

## 0.19.0.1 (forked)

- Merge unreleased changes from community add-on
Expand Down
5 changes: 1 addition & 4 deletions tailscale/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
>
> Changes:
> - Release unreleased changes from community add-on:
> - Update tailscale/tailscale to v1.66.4
> - Stateful filtering is now off by default
> - Skip default networks without a gateway to enable UDP GRO for forwarding
> - Update Add-on base image to v15.0.9
> - Revert "Linux optimizations for subnet routers and exit nodes"
> - Release unmerged changes from community add-on:
> - Optionally copy Tailscale Proxy's certificate files to /ssl folder
Expand Down
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
5 changes: 1 addition & 4 deletions tailscale/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ Zero config VPN for building secure networks.
>
> Changes:
> - Release unreleased changes from community add-on:
> - Update tailscale/tailscale to v1.66.4
> - Stateful filtering is now off by default
> - Skip default networks without a gateway to enable UDP GRO for forwarding
> - Update Add-on base image to v15.0.9
> - Revert "Linux optimizations for subnet routers and exit nodes"
> - Release unmerged changes from community add-on:
> - Optionally copy Tailscale Proxy's certificate files to /ssl folder
Expand Down
2 changes: 1 addition & 1 deletion tailscale/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Tailscale with features
version: 0.19.0.1
version: 0.19.1.1
slug: tailscale
description: Zero config VPN for building secure networks
url: https://github.com/lmagyar/homeassistant-addon-tailscale
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 9b68f08

Please sign in to comment.