Transparent mode with other router services
In 2.8.0, transparent mode shared the packet mark bit 0x20000000 with
Zapret's post-NAT marking. Its policy rule could route traffic carrying that
bit back to the router, including connections to services outside Telegram.
The policy now matches an exact mark and TCP entering the selected LAN
devices. Its routing table contains only the Telegram destinations covered
by the proxy. The scoped rule runs before Tailscale's usual policy lookup
so intercepted connections reach the transparent socket. The interception
rules also let DNS and DoT ports 53 and 853
through to the router's DNS policy. On startup the proxy can clean up its
2.8.0 rules using the previous instance's ownership journal.
Transparent mode uses 0x01000000 by default. If another service already
uses that bit, set an unused one with --transparent-mark,
TG_TRANSPARENT_MARK or Transparent firewall mark in LuCI.
The LuCI status page polls at intervals of at least 15 seconds in transparent
mode and requests firewall status without dumping the address sets.