Tailscale binding to only eth0 — how do others do this on DietPi?

Hi all,
I’m running DietPi with Tailscale and I want to force Tailscale traffic to go only through eth0 (not over other interfaces). I’ve tried systemd overrides with --bind=<eth0 IPv4> but it keeps failing to start.

Has anyone successfully restricted Tailscale to a specific interface on DietPi? What approach did you use — systemd bind, firewall rules (iptables/nftables), or something else?

Details:
eth0 IP: 192.168.178.28

Thanks in advance!

Can you give some more background? Why using a specific interface? How many interface you have? What is your use case? What is your current network configuration? Default route and gateway?

I have done it via ip tables now…

My use case is that I have a wifi hotspot which is connected via VPN to the world and a normal Ethernet connection via eth0. So the tailscale should be working without tunneling thriugh the von connection. In addition I have a wir guard vpn connection running to connect my phone from outside to my local network…

ah ok, so it’s to ensure tailscale not using the VPN. In this case iptables is the correct solution

1 Like