tailscale
Environment variables
#disable logs TS_NO_LOGS_NO_SUPPORT=true #always use DERP relay TS_DEBUG_ALWAYS_USE_DERP=true
env file on Windows:
C:\ProgramData\Tailscale\tailscaled-env.txt
Use with Bird
create vxlan0:
#!/usr/bin/env bash
ip link delete vxlan0 2>/dev/null
ip link add vxlan0 type vxlan \
id 100 \
dstport 4789 \
local <local_tailscale_ip> \
nolearning
#proxy
ip addr add 192.168.100.1/24 dev vxlan0
ip link set vxlan0 up
bridge fdb append 00:00:00:00:00:00 dev vxlan0 dst <target_tailscale_node_ip>
bridge fdb append 00:00:00:00:00:00 dev vxlan0 dst <target_tailscale_node_ip>
iptables redirect:
iptables -t nat -A PREROUTING -i vxlan0 -d <ip> -p tcp --dport <port> -j DNAT --to-destination <tailscale_ip:port>
tailscale.txt · Last modified: by ealmr
