Skip to content

Instantly share code, notes, and snippets.

@stevefan1999-personal
Created February 28, 2024 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevefan1999-personal/f5ce7aa6904ea22b1544c59ce10401f2 to your computer and use it in GitHub Desktop.
Save stevefan1999-personal/f5ce7aa6904ea22b1544c59ce10401f2 to your computer and use it in GitHub Desktop.
Deny Tailscale to use Cilium as connection gateway
sudo curl https://raw.githubusercontent.com/fernandoenzo/tailgate/master/systemd/tailgate-deny%40.service -o /etc/systemd/system/tailgate-deny\@.service
sudo mkdir -p /etc/systemd/system/tailscaled.service.d/
sudo tee /etc/systemd/system/tailscaled.service.d/override.conf <<EOF
[Unit]
Wants=network-pre.target tailgate-deny@cilium_host.service
EOF
sudo systemctl daemon-reload
sudo systemctl restart tailscaled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment