Files
tslink/config.example.toml
2026-07-26 14:14:03 +08:00

37 lines
1.1 KiB
TOML

[core]
auth_key = "" # required
control_url = "https://controlplane.tailscale.com" # or your headscale instance
hostname = "" # leave blank to use machine name
ephemeral = true
accept_routes = true
[dns]
# Fallback DNS-over-HTTPS resolvers (RFC 8484), tried only when the tailnet
# resolver can't resolve a destination (e.g. the host has no working system DNS,
# or the name is outside the tailnet's split-DNS routes). Leave empty to disable.
doh_servers = []
# doh_servers = ["https://cloudflare-dns.com/dns-query", "https://dns.google/dns-query"]
[[forward.web]] # you -> others
protocol = "tcp"
tailscale_port = 8080
local_addr = "127.0.0.1:9090"
[[connect.web]] # others -> you
protocol = "tcp"
local_port = 9000
local_addr = "127.0.0.1" # default; set to 0.0.0.0 to expose on LAN
dst_addr = "any-client-in.ts.net:8080"
[[connect.minecraft]]
protocol = "minecraft"
local_port = 25565
dst_addr = "any-client-in.ts.net:25566"
lan_enable = true
lan_motd = "Minecraft via Tailscale"
[[connect.udp_example]]
protocol = "udp"
local_port = 24454
dst_addr = "any-client-in.ts.net:24454"